joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403902
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
lea ebp, [eax + 7]
push esi
shr ebp, 3
and eax, 7
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
jne 0x403935
mov dword [esp + 0x20], 8
xor edx, edx
cmp ebp, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
jbe 0x403a1e
lea eax, [ebp - 2]
xor esi, esi
cmp eax, edx
mov dword [esp + 0x24], esi
jbe 0x403a1e
jmp 0x403965
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x4039d5
push edx
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.00403b7d
mov esi, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x38], esi
lea eax, [esp + 0x38]
mov edi, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
add ecx, edx
mov ebp, esi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, esi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x3c]
xor ebp, edx
dec edi
mov dword [esp + 0x3c], ebp
jne 0x403996
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x4039e3
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004036c1
add esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor eax, edx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add ebx, 8
inc esi
lea eax, [ebp - 2]
cmp esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], esi
jb 0x403963
xor edx, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp ecx, edx
mov dword [esp + 0x14], edx
jbe 0x403a43
mov eax, ecx
lea esi, [ebx + 8]
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebp, 1
jne 0x403a58
push edx
push edx
push ebx
call fcn.00403b7d
add esp, 0xc
jmp 0x403ae0
cmp ebp, 2
jne 0x403a6a
push edx
push edx
push ebx
call fcn.00403b7d
add esp, 0xc
jmp 0x403a7d
lea ecx, [esp + 0x38]
push ecx
push ebx
call fcn.004036c1
add esp, 8
cmp ebp, 1
jbe 0x403ae0
mov edx, dword [ebx]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x20]
xor esi, edx
mov edx, dword [esp + 0x14]
xor edx, eax
xor eax, eax
test edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
jbe 0x403abe
mov ecx, ebx
lea edx, [esp + 0x10]
sub ecx, edx
mov dl, byte [eax + ebx + 8]
lea esi, [esp + eax + 0x10]
inc eax
mov byte [esi + ecx], dl
mov dl, byte [esi]
mov byte [eax + ebx + 7], dl
cmp eax, edi
jb 0x403aa8
cmp ebp, 2
jne 0x403ad2
push 0
push 0
push ebx
call fcn.00403b7d
add esp, 0xc
jmp 0x403ae0
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004036c1
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x1c]
xor eax, edx
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
Function at 0x404fb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push ecx
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 4]
pop edi
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x54
ret

Function at 0x4058b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406608
push 0x405ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4082d0], 0xffffffff
mov dword [0x4082d4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4082c4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4082c0]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4082cc], ecx
call fcn.00405590
mov eax, dword [0x4081e0]
test eax, eax
jne 0x405941
push 0x405aa0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00405a80
push 0x408014
push 0x408010
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4082bc]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x4082b8]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40800c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x405a4f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4059b5
cmp al, 0x22
jne 0x4059a7
cmp byte [esi], 0x22
jne 0x4059be
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4059ce
cmp al, 0x20
ja 0x4059ce
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4059be
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4059ef
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4059f4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x405a34
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4059be
inc esi
mov dword [ebp - 0x74], esi
jmp 0x405a4f
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4340e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x4340f8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x4341d6
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00434a50
add esp, 8
sar eax, 0xc
cmp eax, 3
jne 0x4341d1
mov dword [ebp - 0x10], 0xfff
mov dword [ebp - 0xc], 0x9922c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00434a50
add esp, 8
and eax, dword [ebp - 0x10]
add eax, 0x8702
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
cmp dword [ebp - 4], 0
jne 0x4341aa
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x4341aa
xor eax, eax
jmp 0x4341d6
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx - 0x8702]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx - 0x8702], eax
jmp 0x4340ef
mov esp, ebp
pop ebp
ret

Function at 0x434a50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x240be8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x240be8
push 0x15b9
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x434a85
xor eax, eax
jmp 0x434a8f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx eax, word [eax + edx*2]
mov esp, ebp
pop ebp
ret
Function at 0x4ca879
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004ca8f8
jae 0x4ca885
xor ecx, ecx
call fcn.004ca8f8
jae 0x4ca8af
xor eax, eax
call fcn.004ca8f8
jae 0x4ca8c0
mov al, 0x10
call fcn.004ca8f8
adc al, al
jae 0x4ca8a1
jne 0x4ca8ed
stosb byte es:[edi], al
jmp 0x4ca886
call fcn.004ca904
dec ecx
loop 0x4ca8cc
mov eax, ebp
call fcn.004ca902
jmp 0x4ca8ee
lodsb al, byte [esi]
shr eax, 1
je 0x4ca914
adc ecx, 2
mov ebp, eax
jmp 0x4ca8ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004ca902
cmp eax, 0x7d00
jae 0x4ca8ec
cmp eax, 0x500
jae 0x4ca8ed
cmp eax, 0x7f
ja 0x4ca8ee
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ca886
pop ebp
ret 8
Function at 0x446d90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
or ebp, 0xffffffff
jmp 0x446db2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x446db9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x446da8
mov eax, 1
add ebx, ebx
jne 0x446dcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x446dc0
jne 0x446ddc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x446dc0
xor ecx, ecx
sub eax, 3
jb 0x446df0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x446e62
mov ebp, eax
add ebx, ebx
jne 0x446dfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x446e08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x446e2c
inc ecx
add ebx, ebx
jne 0x446e18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x446e0d
jne 0x446e29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x446e0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x446e4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x446e3d
jmp 0x446dae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x446e4c
add edi, ecx
jmp 0x446dae
pop esi
mov edi, esi
mov ecx, 0x16ae
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x446e6a
cmp byte [edi], 0xe
jne 0x446e6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x446e6f
lea edi, [esi + 0x43000]
mov eax, dword [edi]
or eax, eax
je 0x446ede
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4e430]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4e50c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x446e9c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4e510]
or eax, eax
je 0x446ed8
mov dword [ebx], eax
add ebx, 4
jmp 0x446eb9
call dword [esi + 0x4e520]
mov ebp, dword [esi + 0x4e514]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x446f12
sub esp, 0xffffff80
jmp 0x42c49c
Function at 0x401130
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x423af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.004204a8
mov edi, dword [eax + 0x10]
push str.CInstanceChecker_MMF_
lea ecx, [esp + 0xc]
call fcn.004187d9
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.00418a6d
mov eax, dword [esp + 8]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4011d5
mov ecx, dword [esp + 8]
push ecx
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 6
push eax
mov dword [0x431128], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea edx, [esi + 4]
push 1
push edx
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00402d00
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0xc]
call fcn.00402d3c
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
setne al
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.0041876b
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x401210
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x423b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov esi, ecx
push 4
push 0
mov eax, dword [esi + 0xc]
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esi + 4]
push 1
push ecx
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00402d00
mov edx, dword [0x42f214]
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], edx
push 0xe000
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00418b8e
mov eax, dword [esp + 0xc]
push eax
push 0x42f0e8
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x40129b
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esi + 0xc], 0
mov byte [esp + 0x24], 0
call fcn.0041876b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00402d3c
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x401de0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret 4
Function at 0x401e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00417ce3
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ebp
mov dword [esp + 0x30], 0
call fcn.004187d9
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00401c40
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x401e74
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.00401de0
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x401e5c
push ebp
mov ecx, esi
call fcn.00401de0
push ebp
mov ecx, esi
call fcn.00401ec0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0041876b
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00417d16
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x401ec0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x423ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebp
lea ecx, [esp + 0x10]
call fcn.00403b4a
mov ebp, dword [esp + 0x35c]
lea eax, [esp + 0xf4]
push ebp
push 0x42f15c
push eax
mov dword [esp + 0x360], 0
call fcn.0040b31a
add esp, 0xc
lea ecx, [esp + 0xf4]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00403c0d
test eax, eax
je 0x40200d
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00403e2d
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00403df4
test eax, eax
jne 0x401fff
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.00404025
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 1
call fcn.00418ac1
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x35c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041876b
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
lea eax, [esp + 0x34]
push eax
push ebp
push 0x42f154
je 0x401fe1
lea ecx, [esp + 0x1d0]
push ecx
call fcn.0040b31a
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x1c4]
push edx
call fcn.00401ec0
jmp 0x401fff
lea ecx, [esp + 0x298]
push ecx
call fcn.0040b31a
add esp, 0x10
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401f2e
pop edi
pop esi
lea ecx, [esp + 0x10]
call fcn.00403bc3
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40204f
call fcn.00403b87
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.00403b87
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4
Function at 0x40efed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4303e0
cmp edx, dword [eax]
je 0x40f00f
add eax, 8
inc ecx
cmp eax, 0x430470
jl 0x40f000
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4303e0]
jne 0x40f13d
mov eax, dword [0x433254]
cmp eax, 1
je 0x40f117
test eax, eax
jne 0x40f040
cmp dword [0x42ffb4], 1
je 0x40f117
cmp edx, 0xfc
je 0x40f13d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f077
lea eax, [ebp - 0x1a4]
push 0x427f3c
push eax
call fcn.00410120
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f0ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410210
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x427f38
push edi
call fcn.00411cb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x427f1c
push eax
call fcn.00410120
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410130
lea eax, [ebp - 0xa0]
push 0x427f18
push eax
call fcn.00410130
push dword [esi + 0x4303e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410130
push 0x12010
lea eax, [ebp - 0xa0]
push 0x427ef0
push eax
call fcn.00411c20
add esp, 0x2c
pop edi
jmp 0x40f13d
lea eax, [ebp + 8]
lea esi, [esi + 0x4303e4]
push 0
push eax
push dword [esi]
call fcn.00410210
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x401aa9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004840ae
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ab2
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x401ae9
push 0x4f4f28
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.0048464a
add esp, 0xc
test eax, eax
jne 0x401a99
push esi
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.0048464a
add esp, 0xc
test eax, eax
jne 0x401a99
lea eax, [ebp - 0x210]
push eax
call fcn.00403b30
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.004840ae
mov esp, ebp
pop ebp
ret
Function at 0x403e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x403e3b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x403e72
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403e6e
jmp 0x403e60
cmp esi, eax
jae 0x403e72
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403e60
cmp esi, eax
jb 0x403e79
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4057f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x510a50]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], esi
call fcn.0040c8d0
cmp eax, 5
jbe 0x405821
push esi
push esi
call dword [sym.imp.WINMM.dll_waveOutSetVolume]
mov ecx, ebx
call fcn.0046b82f
lea eax, [ebx + 0xcc]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [ebx + 0x98]
mov edx, dword [ebx + 0x20]
push eax
push esi
push 0x80
push edx
call edi
push esi
push 0x8000080
push 0x40000
mov ecx, ebx
call fcn.0046dbff
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
push 1
call edi
push eax
push esi
call edi
push eax
push 1
call edi
add eax, 0x64
push eax
push esi
mov ecx, ebx
call fcn.0046dc8d
mov edi, dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push 0xfffffffffffffff6
call edi
push 0xfffffffffffffff5
mov dword [ebx + 0xa8], eax
call edi
mov dword [ebx + 0xa4], eax
cmp dword [ebx + 0xa8], esi
je 0x4058ca
cmp eax, esi
je 0x4058ca
call fcn.00405c90
cmp eax, 0xfffffff9
jne 0x4058ef
call fcn.00406670
mov eax, dword [ebx + 0x20]
push esi
push esi
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004840ae
mov esp, ebp
pop ebp
ret
cmp eax, esi
jl 0x4058ca
mov ecx, dword [ebx + 0xa0]
lea eax, [ebx + 0x94]
mov dword [ecx + 0x84], eax
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0x9c]
mov dword [edx + 0x88], eax
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xb4]
mov dword [ecx + 0x100], edx
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 0xa0]
add dword [esp + 0x18], 0x32
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
push esi
push esi
push ebx
lea eax, [esp + 0x20]
push eax
push 0x50000000
push esi
push esi
call edx
mov ecx, dword [ebx + 0xa0]
push 5
call fcn.0046dccd
mov eax, dword [ebx + 0x9c]
push eax
call fcn.00409fa0
test al, al
je 0x4059af
mov ecx, dword [ebx + 0xa0]
push ecx
call fcn.0040e3c0
push esi
push esi
push ebx
push 0x406700
push esi
push esi
call fcn.004851bb
add esp, 0x18
mov dword [ebx + 0xac], eax
jmp 0x4058d8
mov edi, dword [ebx + 0xa0]
call fcn.0040add0
test al, al
jne 0x405992
mov edx, dword [ebx + 0x20]
push esi
push esi
push 0x10
push edx
jmp 0x4058d2