joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402766
Capabilities:
Read file on windows

Disassembly:
jmp 0x406920
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp + 8]
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x8000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str..off
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00518246
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x40699c
pop edi
mov dword [ebp + 0x52c], 1
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push esi
call fcn.0051fac0
mov edi, eax
push edi
call fcn.0050ee68
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x4069c7
pop edi
mov dword [ebp + 0x52c], 3
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push edi
push eax
push esi
call fcn.005148d9
add esp, 0xc
cmp eax, edi
je 0x4069e9
pop edi
mov dword [ebp + 0x52c], 2
pop esi
pop ebp
xor al, al
pop ebx
ret 4
mov eax, edi
push esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 0x528], eax
call fcn.00513b3e
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
push 0x8000
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bin
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00518246
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x406a6f
pop edi
mov dword [ebp + 0x52c], 1
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push esi
call fcn.0051fac0
mov edi, eax
push edi
call fcn.0050ee68
add esp, 8
mov dword [ebp + 4], eax
test eax, eax
jne 0x406a9a
pop edi
mov dword [ebp + 0x52c], 3
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push edi
push eax
push esi
call fcn.005148d9
add esp, 0xc
cmp eax, edi
je 0x406abc
pop edi
mov dword [ebp + 0x52c], 2
pop esi
pop ebp
xor al, al
pop ebx
ret 4
push esi
call fcn.00513b3e
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4028a6
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
jmp 0x4a6e70
push 0xffffffffffffffff
push 0x526ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x50]
call fcn.004016cc
lea ecx, [esi + 0xcc]
call fcn.00402c89
xor edi, edi
lea ecx, [esi + 0x380]
mov dword [esp + 0x18], edi
call fcn.00402c89
lea ecx, [esi + 0x634]
mov byte [esp + 0x18], 1
call fcn.0040261c
lea ecx, [esi + 0x660]
mov byte [esp + 0x18], 2
call fcn.00401406
mov eax, 0x64
push 0x4c4
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0x320
mov dword [esi + 0xc], 0x258
mov dword [esi + 0x30], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0x2e
mov dword [esi + 0x1c], 0x1fe
mov dword [esi + 0x18], 0x179
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], 0x1a8
mov dword [esi + 0x2c], 0x1fe
mov dword [esi + 0x28], 0x2f7
call fcn.0050ef5f
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x18], 3
je 0x4a6f63
push 0x21
push edi
push 0x2000a
push 0x18
push edi
push 0x549b78
push 5
push 0xa8
push 0x110
push 0x1fe
mov ecx, eax
call fcn.004027ca
jmp 0x4a6f65
xor eax, eax
push 0x4c4
mov byte [esp + 0x1c], 2
mov dword [esi + 0x48], eax
call fcn.0050ef5f
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x18], 4
je 0x4a6fb1
push 0x21
push edi
push 0x2000a
push 0x18
push edi
push 0x549b78
push 5
push 0xa8
push pe_nt_image_headers32
push 0x82
mov ecx, eax
call fcn.004027ca
jmp 0x4a6fb3
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x65c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4029c8
Capabilities:
Read file on windows

Disassembly:
jmp 0x406b40
sub esp, 0x88
xor eax, eax
lea edx, [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0xa0]
or ecx, 0xffffffff
mov dword [ebx + 0xbb4], ebp
push 0x8000
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..tab
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00518246
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x406be1
pop edi
pop esi
mov dword [ebx + 0x52c], 1
pop ebp
xor al, al
pop ebx
add esp, 0x88
ret 8
lea ecx, [esp + 0x10]
push 4
push ecx
push esi
call fcn.005148d9
mov eax, dword [esp + 0x1c]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 2
push eax
call fcn.0050ee68
mov ecx, dword [ebx + 0xbb4]
mov dword [ebx + ecx*4 + 0x408], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0xbb4]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
mov edx, dword [ebx + ecx*4 + 0x408]
shl eax, 2
push eax
push edx
push esi
call fcn.005148d9
push esi
call fcn.00513b3e
mov eax, dword [ebx + 0xbc8]
add esp, 0x20
test eax, eax
je 0x406c6c
mov ecx, dword [esp + 0xa0]
push ecx
push ebp
call eax
add esp, 8
test al, al
jne 0x406c6c
pop edi
pop esi
mov dword [ebx + 0x52c], 5
pop ebp
pop ebx
add esp, 0x88
ret 8
mov al, 1
pop edi
mov byte [ebx + ebp + 0x488], al
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 8
Function at 0x402e96
Capabilities:
Get disk information

Disassembly:
jmp 0x448c50
sub esp, 0x800
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov eax, dword [0x546ac0]
test eax, eax
jmp 0x448c8b
mov eax, dword [0x55380c]
test eax, eax
jmp 0x448cad
mov ecx, 0xff
xor eax, eax
mov edi, 0x546ad0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov word [esp + 0x10], 0x5c2e
nop
nop
nop
nop
nop
lea ebx, [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
nop
nop
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.RiskInstall.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00518246
add esp, 8
cmp eax, 0xffffffff
jmp 0x448d78
push eax
call fcn.00513b3e
lea edi, [esp + ebp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x546ad0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.RiskII_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x546ad0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret
Function at 0x402f22
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x48fe60
push 0xffffffffffffffff
push 0x526ddf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebp, 1
mov dword [esp + 0x10], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
mov dword [esp + 0x1c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebp
push fcn.00401e1f
push 0x4018ac
push 0x30
lea eax, [esi + 0x44]
push 0x24
push eax
mov byte [esp + 0x30], 3
call fcn.00510531
mov byte [esp + 0x1c], 4
lea eax, [esi + 0x70c]
mov ecx, 0x30
or bl, 0xff
mov byte [eax], bl
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
mov dword [eax + 0x1c], edi
add eax, 0x20
dec ecx
jne 0x48fee9
push 0x600
call fcn.0050ef5f
add esp, 4
cmp eax, edi
je 0x48ff2c
lea ecx, [eax + 8]
mov edx, 0x30
mov byte [ecx - 8], bl
mov dword [ecx - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 0x14], edi
add ecx, 0x20
dec edx
jne 0x48ff16
jmp 0x48ff2e
xor eax, eax
push 0x600
mov dword [esi + 0x704], eax
call fcn.0050ef5f
add esp, 4
cmp eax, edi
je 0x48ff63
lea ecx, [eax + 8]
mov edx, 0x30
mov byte [ecx - 8], bl
mov dword [ecx - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 0x14], edi
add ecx, 0x20
dec edx
jne 0x48ff4d
jmp 0x48ff65
xor eax, eax
mov dword [esi + 0x708], eax
mov dword [esi + 0xc], edi
cmp dword [0x55380c], edi
je 0x48ffaa
cmp dword [0x551de0], edi
jne 0x48ffaa
push 0x24
call fcn.0050ef5f
add esp, 4
cmp eax, edi
je 0x48ffa0
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ebp
mov dword [esi + 0x40], eax
mov dword [eax + 0x20], edi
jmp 0x48ffad
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [eax + 0x20], edi
jmp 0x48ffad
mov dword [esi + 0x40], edi
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4033c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x428bc0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
mov eax, dword [0x546f84]
test eax, eax
jne 0x428c0d
push ebp
mov dword [0x546f84], 1
call edi
mov ebp, dword [esp + 0x10]
sub eax, ebx
cmp eax, ebp
ja 0x428c02
push esi
call edi
mov esi, eax
mov ecx, 0x5469b0
sub esi, ebx
call fcn.00402487
cmp esi, ebp
jbe 0x428bed
pop esi
mov dword [0x546f84], 0
pop ebp
pop edi
pop ebx
ret 4
Function at 0x4034bd
Capabilities:
Print debug messages

Disassembly:
jmp 0x48db00
push 0x24
call fcn.0050ef5f
add esp, 4
test eax, eax
je 0x48db4e
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], 0x421
mov dword [eax], 0x5297bc
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
jmp 0x48db50
xor eax, eax
push 0
push eax
mov ecx, 0x551a28
call fcn.00401dde
push str.Mad_:_Broadcasting_attack_order_to_clients_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret 0x1c
Function at 0x4036ca
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x466f10
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
call edi
mov esi, eax
lea eax, [esi + 0x17]
push eax
call fcn.0050ee68
mov ebx, eax
mov eax, dword [0x546a84]
add esp, 4
test eax, eax
je 0x466f51
mov edi, 0x534348
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
jmp 0x466f9b
push ebx
push esi
call edi
mov edi, 0x53435c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.gamesave_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.gamesave
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push 0x532510
push ecx
call fcn.0050fb85
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..gsv
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov esi, eax
call fcn.0050ee20
add esp, 4
test esi, esi
pop edi
pop esi
pop ebx
je 0x467059
mov eax, 1
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ecx
ret
Function at 0x4036f7
Capabilities:
Print debug messages

Disassembly:
jmp 0x4de9c0
mov eax, dword [0x5552b0]
mov ecx, dword [0x549d60]
cmp ecx, dword [eax + 0x5a14]
je 0x4dea1a
mov ecx, dword [0x553828]
test ecx, ecx
je 0x4dea0d
mov dword [eax + 0x5a0], 1
mov edx, dword [0x5552b0]
mov ecx, 0x5469b0
mov dword [edx + 0xe8], 1
call fcn.004031b6
mov ecx, dword [0x5552b0]
mov dword [ecx + 0x27c], eax
mov edx, dword [0x549d68]
mov dword [0x5552ac], edx
ret
mov dword [eax + 0x5a0], 0
mov eax, dword [0x549d5c]
test eax, eax
je 0x4dea37
cmp eax, 2
je 0x4dea37
cmp eax, 1
jne 0x4deaa0
mov eax, dword [0x549da0]
inc eax
test eax, eax
jle 0x4deaa0
mov ecx, dword [0x5552b0]
mov edx, dword [ecx + 0x5a14]
push edx
call fcn.0040317f
add esp, 4
cmp eax, 1
jne 0x4deaa0
mov eax, dword [0x5552b0]
push esi
push edi
push str._nAI_attempting_to_send_bid_through
mov esi, dword [eax + 0x5a04]
mov edi, dword [eax + 0x5a10]
mov dword [eax + 0x5a1c], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x5552b0]
mov eax, dword [0x5552ac]
push esi
push eax
mov edx, dword [ecx + 0x5a14]
push edi
push edx
mov ecx, 0x549c10
call fcn.004017b2
pop edi
pop esi
ret

Function at 0x4037bf
Capabilities:
Print debug messages

Disassembly:
jmp 0x48da70
push 0x24
call fcn.0050ef5f
add esp, 4
test eax, eax
je 0x48dabe
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], 0x421
mov dword [eax], 0x5297bc
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edx
jmp 0x48dac0
xor eax, eax
mov ecx, dword [0x551de4]
push ecx
push eax
mov ecx, 0x551a28
call fcn.00401dde
push str.Mad_:_Sending_attack_order_to_host_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret 0x18
Function at 0x4037ec
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x479760
sub esp, 0x9c
push ebx
push esi
mov esi, dword [esp + 0xac]
lea ecx, [esp + 0x14]
push edi
push ecx
mov eax, dword [esi]
xor ebx, ebx
push 0x52b180
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x320
mov dword [esp + 0x44], 0x258
call dword [eax + 0x10]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push 0x52b170
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [esp + 0xc]
push ebx
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x6c
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x24]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [0x5469b0]
push ebx
push edx
lea edx, [esp + 0x44]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
mov ecx, dword [eax]
push ebx
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
push esi
call dword [eax + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x20
call edi
test ah, 0x80
jne 0x479874
cmp dword [0x546a6c], ebx
jne 0x479837
push 0x1b
call edi
test ah, 0x80
jne 0x479874
push 1
call edi
test ah, 0x80
jne 0x479874
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x479874
mov eax, dword [0x5469b4]
push ebx
lea ecx, [esp + 0x20]
push 0x1000000
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [edx + 0x14]
jmp 0x47981d
mov edx, dword [esi]
push ebx
push esi
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x479889
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x47989b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x4798ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
pop edi
mov dword [esp + 8], ebx
pop esi
cmp eax, ebx
pop ebx
je 0x4798c2
mov edx, dword [eax]
push eax
call dword [edx + 8]
add esp, 0x9c
ret
Function at 0x506820
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 0x100
lea edx, [esp]
push eax
push ecx
push str._s_n_s_n_s_n
push edx
call fcn.0050fb85
mov ecx, dword [esp + 0x114]
add esp, 0x10
lea eax, [esp]
push 0
push str.ERROR_n
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0050fcc5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x506870
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push str.ERROR_n
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0050fcc5
nop
nop

Function at 0x516bae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x53cb30
cmp edx, dword [eax]
je 0x516bd0
add eax, 8
inc ecx
cmp eax, 0x53cbc0
jl 0x516bc1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x53cb30]
jne 0x516cfe
mov eax, dword [0x5e8bec]
cmp eax, 1
je 0x516cd8
test eax, eax
jne 0x516c01
cmp dword [0x53c3c8], 1
je 0x516cd8
cmp edx, 0xfc
je 0x516cfe
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x516c38
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00517880
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005179d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x516c7b
lea eax, [ebp - 0x1a4]
push eax
call fcn.005179d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x52b770
push edi
call fcn.00519e90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00517880
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00517890
lea eax, [ebp - 0xa0]
push 0x52b750
push eax
call fcn.00517890
push dword [esi + 0x53cb34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00517890
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00519df8
add esp, 0x2c
pop edi
jmp 0x516cfe
lea eax, [ebp + 8]
lea esi, [esi + 0x53cb34]
push 0
push eax
push dword [esi]
call fcn.005179d0
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 0x4aecc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa9000]
push edi
jmp 0x4aecda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4aece1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aecd0
mov eax, 1
add ebx, ebx
jne 0x4aecf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4aece8
jne 0x4aed04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4aece8
xor ecx, ecx
sub eax, 3
jb 0x4aed18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4aed8a
mov ebp, eax
add ebx, ebx
jne 0x4aed23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4aed30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4aed54
inc ecx
add ebx, ebx
jne 0x4aed40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4aed35
jne 0x4aed51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4aed35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4aed74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4aed65
jmp 0x4aecd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4aed74
add edi, ecx
jmp 0x4aecd6
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x4aedc5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x4aeda5
cmp al, 0x8f
ja 0x4aeda5
cmp byte [edi - 2], 0xf
je 0x4aedab
sub al, 0xe8
cmp al, 1
ja 0x4aedcf
cmp ecx, 4
jb 0x4aedd4
mov eax, dword [edi]
sub al, 1
jne 0x4aedcf
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x4aedd4
mov al, byte [edi]
inc edi
jmp 0x4aeda5
sub ecx, 1
jae 0x4aed94
lea edi, [esi + 0xac000]
mov eax, dword [edi]
or eax, eax
je 0x4aee25
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10f520]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10f5d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4aedda
mov ecx, edi
jns 0x4aee09
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 + 0x10f5e0]
or eax, eax
je 0x4aee1f
mov dword [ebx], eax
add ebx, 4
jmp 0x4aedf7
call dword [esi + 0x10f5dc]
mov ebp, dword [esi + 0x10f5e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4aee59
sub esp, 0xffffff80
jmp 0x4034a5