joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dfa0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b638
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42dfd9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42e0ec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42dfed
mov eax, 0xffffffc7
jmp 0x42e0ee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42dffe
cmp dword [esi + 8], eax
jne 0x42dfed
cmp dword [esi + 8], eax
jne 0x42e017
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42e017
mov eax, 0xffffffc7
jmp 0x42e0ee
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42e02b
push eax
mov ecx, ebx
call fcn.0042d7d0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401770
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42e05c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401790
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042cf40
test eax, eax
mov dword [esp + 0x38], eax
je 0x42e08f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46ea50
call fcn.00401970
mov eax, dword [esp + 0x38]
jmp 0x42e0ee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042de00
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42e0d3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042de20
mov esi, eax
test esi, esi
jne 0x42e103
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042de00
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42e0a5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46ea50
call fcn.00401970
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46ea50
call fcn.00401970
mov eax, esi
jmp 0x42e0ee

Function at 0x4311d0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x431230
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x431230
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x431230
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x431230
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x431270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x437150
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46bc68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00464e1f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436af0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00464d4d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00461611
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00461611
push 1
push 0
push 0
mov ecx, esi
call fcn.004615b9
push 1
push 0
push 1
mov ecx, esi
call fcn.004615b9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464e91
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4372d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46bc88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00464e1f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436af0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00464d4d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x437394
cmp dword [esp + 0x40], 1
jne 0x437392
cmp ecx, eax
jge 0x437394
mov eax, ecx
cmp eax, 0xc8
jge 0x4373a0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00437150
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464e91
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437b20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46bcf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045fa2e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004650c7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004665e3
test eax, eax
je 0x437c3c
mov ecx, dword [esp + 0x3c]
call fcn.004650f4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x437c00
push edi
mov ecx, esi
call fcn.0046275b
mov ecx, esi
call fcn.00437da0
cmp dword [esp + 0x38], 1
jne 0x437c35
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00462896
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43a670
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a6a3
push esi
call fcn.0043d770
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a69c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43a729
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a712
mov eax, dword [esi + 8]
test eax, eax
je 0x43a6c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43a70e
cmp eax, 2
je 0x43a712
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a6ba
cmp eax, 3
je 0x43a6ed
cmp eax, 1
jne 0x43a6ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43a6ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a6ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a750
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a738
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a750
add esp, 4
pop esi
ret

Function at 0x460824
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46085c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045e88e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e866
jmp 0x460868
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461f15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x461f57
call fcn.004679ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461f57
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461f4e
xor eax, eax
jmp 0x461f5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461f65
pop edi
pop esi
pop ebx
ret 4

Function at 0x467efd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x467f2b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467f49
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467e63
jmp 0x467f49
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467f49
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467e63
test edi, edi
mov eax, edi
jne 0x467f33
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4883a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x56000]
push edi
or ebp, 0xffffffff
jmp 0x4883c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4883c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4883b8
mov eax, 1
add ebx, ebx
jne 0x4883db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4883ec
jne 0x48840b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48840b
dec eax
add ebx, ebx
jne 0x4883f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4883d0
add ebx, ebx
jne 0x488407
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48845d
xor ecx, ecx
sub eax, 3
jb 0x488423
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x488492
sar eax, 1
mov ebp, eax
jmp 0x48842e
add ebx, ebx
jne 0x48842e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4883fc
inc ecx
add ebx, ebx
jne 0x48843c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4883fc
add ebx, ebx
jne 0x488449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48843e
jne 0x48845a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48843e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48847c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48846e
jmp 0x4883be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48847c
add edi, ecx
jmp 0x4883be
pop esi
mov edi, esi
mov ecx, 0x36c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48849a
cmp byte [edi], 0xc
jne 0x48849a
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 0x48849f
lea edi, [esi + 0x86000]
mov eax, dword [edi]
or eax, eax
je 0x488517
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8a40c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8a448]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4884cc
mov ecx, edi
jns 0x4884fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8a44c]
or eax, eax
je 0x488511
mov dword [ebx], eax
add ebx, 4
jmp 0x4884e9
call dword [esi + 0x8a450]
popal
jmp 0x4021c8
Function at 0x402090
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x27
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4020e9
lea ecx, [esp + 8]
push ecx
call eax
jmp 0x4020f4
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x3c], 2
jne 0x402135
mov eax, dword [esp + 0x30]
cmp eax, 4
jbe 0x402135
cmp eax, 6
jb 0x402135
mov eax, dword [esp + 8]
and eax, 0xffff
cmp eax, 6
je 0x402127
cmp eax, 9
je 0x402127
pop edi
xor eax, eax
pop esi
add esp, 0xc0
ret
pop edi
mov eax, 1
pop esi
add esp, 0xc0
ret
mov eax, esi
pop edi
pop esi
add esp, 0xc0
ret

Function at 0x4026a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x32c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x340]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x23c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov esi, dword [sym.imp.MSVCRT.dll__strlwr]
lea ecx, [esp + 0x23c]
push ecx
call esi
add esp, 4
mov edi, eax
mov dword [esp + 0x14], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x14]
mov ebx, eax
push edx
push ebx
mov dword [esp + 0x18], ebx
call sub.KERNEL32.dll_Process32First
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
jne 0x40277a
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x13c]
push ecx
push 0x40d15c
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x13c]
push eax
call ebp
lea ecx, [esp + 0x13c]
push ecx
call esi
push eax
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0xc
test eax, eax
je 0x402790
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x402728
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x32c
ret 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret 4
Function at 0x403ce0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x408f60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x403d29
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403ed4
push 0x40d800
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push 0x40d800
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x50]
push 0
mov bl, 3
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], bl
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x403db4
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 2
call fcn.004067c6
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403ed4
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x24]
mov esi, eax
call sub.MFC42.DLL_CFileFind::IsDots
cmp eax, 1
je 0x403e4f
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [edx + 0x40]
test eax, eax
je 0x403e33
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push 0x40d4ac
push edx
mov byte [esp + 0x54], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00406514
mov ecx, edi
call fcn.00403ce0
jmp 0x403e4f
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x403dba
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CFileFind::GetRoot
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x48], 2
call fcn.004067c6
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 4
Function at 0x405110
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405133
test al, 1
je 0x405133
and al, 0xfe
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
ret 4
Function at 0x405430
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x13c
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x150]
push edi
push 0x40d800
mov dword [esp + 0x14], 0
mov bl, 1
call fcn.00406850
mov ebp, dword [esp + 0x150]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x24]
push 0x12c
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4054de
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov edi, eax
mov byte [esp + eax + 0x1c], 0
jle 0x405499
cmp byte [esp + esi + 0x1c], 0xa
je 0x4054ee
inc esi
cmp esi, eax
jl 0x40548d
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x1c]
push eax
call fcn.0040685c
cmp edi, 0x12c
jge 0x4054b4
xor bl, bl
mov ecx, dword [esp + 0x10]
add ecx, esi
test bl, bl
mov dword [esp + 0x10], ecx
je 0x40552a
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x24]
push 0x12c
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40547c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x13c
ret 8
mov ecx, dword [esp + 0x154]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + esi + 0x21], 0
call fcn.0040685c
xor bl, bl
cmp esi, edi
jge 0x405499
mov eax, esi
mov ecx, dword [esp + 0x18]
sub eax, edi
push 1
inc eax
cdq
push edx
push eax
push ebp
call fcn.004053d0
test edx, edx
jl 0x4054de
jg 0x4054aa
test eax, eax
jb 0x4054de
jmp 0x4054aa
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 8

Function at 0x406ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x406cf3
cmp dword [esi + 0x2b], 0
je 0x406d01
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x406d8a
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
or eax, eax
jne 0x406d25
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x406d8a
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop ecx
or eax, eax
jne 0x406d40
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x406d8a
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
or eax, eax
jne 0x406d5f
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x406d8a
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.00408180
or eax, eax
jne 0x406d7e
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x406d8a
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x401390
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013a2
mov eax, dword [0x48008b]
shl eax, 2
mov dword [0x48008f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0045fa94
pop edx
call fcn.0045f9f8
call fcn.0045fad4
push 0
call fcn.00460fc8
pop ecx
push 0x480034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x480093], eax
push 0
jmp fcn.0046728c
Function at 0x40241c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push dword [ebp + 8]
push 0x20
push 0
mov eax, dword [ebp + 8]
push dword [eax + 0xb4]
call fcn.004023b4
add esp, 0x10
movsx edx, al
dec edx
je 0x40244a
mov eax, 0xfffffffe
jmp 0x4024f3
push 0
push 0
mov edx, dword [ebp + 8]
push dword [edx + 0x80]
call fcn.0046299c
add esp, 0xc
push 0x20
lea ecx, [ebp - 0x24]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x80]
call fcn.00461b64
add esp, 0xc
push 0x20
push 0
push dword [ebp + 8]
call fcn.004024f8
add esp, 0xc
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
xor byte [ebp + ecx - 0x24], 8
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x20
jl 0x40248a
lea eax, [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x90], edx
lea eax, [ebp - 0x1c]
movsx edx, word [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x94], edx
lea eax, [ebp - 0x1a]
movsx edx, word [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x98], edx
movsx eax, byte [ebp - 0x23]
mov edx, dword [ebp + 8]
mov dword [edx + 0x84], eax
movsx ecx, byte [ebp - 0x22]
mov eax, dword [ebp + 8]
mov dword [eax + 0x88], ecx
movsx edx, byte [ebp - 0x21]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x8c], edx
mov eax, 1
mov esp, ebp
pop ebp
ret