joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018120
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100182e4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
or ebp, 0xffffffff
jmp 0x1001814a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10018151
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10018140
mov eax, 1
add ebx, ebx
jne 0x10018163
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10018158
jne 0x10018174
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10018158
xor ecx, ecx
sub eax, 3
jb 0x10018188
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100181fa
mov ebp, eax
add ebx, ebx
jne 0x10018193
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100181a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100181c4
inc ecx
add ebx, ebx
jne 0x100181b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100181a5
jne 0x100181c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100181a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100181e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100181d5
jmp 0x10018146
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100181e4
add edi, ecx
jmp 0x10018146
pop esi
mov edi, esi
mov ecx, 0x3e1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10018202
cmp byte [edi], 7
jne 0x10018202
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 0x10018207
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x10018276
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x181dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18218]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10018234
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1821c]
or eax, eax
je 0x10018270
mov dword [ebx], eax
add ebx, 4
jmp 0x10018251
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100182a7
cmp al, 0xef
ja 0x1001829a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001827c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10018289
mov ebp, dword [esi + 0x18220]
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 0x100182db
sub esp, 0xffffff80
jmp 0x10001641
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4febfb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004eaa19
xor ebx, ebx
cmp dword [0x551f90], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4fecd0
push 0x51f0c8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4fec3b
xor eax, eax
jmp 0x4fed94
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x51f0bc
push edi
call esi
cmp eax, ebx
je 0x4fec34
push eax
call fcn.004ea9b6
mov dword [esp], 0x51f0ac
push edi
mov dword [0x551f90], eax
call esi
push eax
call fcn.004ea9b6
mov dword [esp], 0x51f098
push edi
mov dword [0x551f94], eax
call esi
push eax
call fcn.004ea9b6
mov dword [0x551f98], eax
lea eax, [ebp - 8]
push eax
call fcn.004e58b1
test eax, eax
pop ecx
pop ecx
je 0x4fec9e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e8e74
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4fecd0
push 0x51f07c
push edi
call esi
push eax
call fcn.004ea9b6
cmp eax, ebx
pop ecx
mov dword [0x551fa0], eax
je 0x4fecd0
push 0x51f064
push edi
call esi
push eax
call fcn.004ea9b6
pop ecx
mov dword [0x551f9c], eax
mov eax, dword [0x551f9c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4fed49
cmp dword [0x551fa0], esi
je 0x4fed49
push eax
call fcn.004eaa22
pop ecx
call eax
cmp eax, ebx
je 0x4fed16
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x551fa0]
call fcn.004eaa22
pop ecx
call eax
test eax, eax
je 0x4fed16
test byte [ebp - 0x18], 1
jne 0x4fed49
lea eax, [ebp - 0xc]
push eax
call fcn.004e58e8
test eax, eax
pop ecx
je 0x4fed31
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e8e74
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4fed40
or dword [ebp + 0x10], 0x200000
jmp 0x4fed7a
or dword [ebp + 0x10], 0x40000
jmp 0x4fed7a
mov eax, dword [0x551f94]
cmp eax, esi
je 0x4fed7a
push eax
call fcn.004eaa22
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4fed7a
mov eax, dword [0x551f98]
cmp eax, esi
je 0x4fed7a
push dword [ebp - 4]
push eax
call fcn.004eaa22
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x551f90]
call fcn.004eaa22
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030a7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
push eax
mov edi, ecx
mov dword [esp + 0x18], eax
call fcn.00412b13
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0040c9a3
add esp, 0xc
test eax, eax
je 0x403100
call fcn.0040dd78
push dword [eax]
push dword [edi + 0x10]
push 0x429a70
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 6
pop eax
jmp 0x4031dc
mov esi, dword [edi + 0x20]
push esi
cmp dword [esp + 0x30], esi
je 0x403125
push dword [esp + 0x30]
push 0x429ab0
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 2
jmp 0x4030fa
call fcn.0040be77
mov ebx, eax
mov dword [edi + 0x38], ebx
pop ecx
test ebx, ebx
jne 0x403138
push 0xd
jmp 0x4030fa
test esi, esi
je 0x403165
mov ebp, esi
cmp esi, 0x7fffffff
jb 0x40314b
mov ebp, 0x7fffffff
push dword [esp + 0x14]
push ebp
push 1
push ebx
call fcn.0040cede
add esp, 0x10
cmp eax, ebp
jne 0x4031bf
add ebx, eax
sub esi, eax
jne 0x40313c
mov esi, dword [edi + 0x38]
or edx, 0xffffffff
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add ecx, esi
mov eax, ecx
sub eax, esi
cmp ecx, esi
sbb ebx, ebx
not ebx
and ebx, eax
je 0x40319a
movzx eax, byte [esi]
mov ecx, edx
shr ecx, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [ecx*4 + 0x428390]
inc esi
inc ebp
cmp ebp, ebx
jne 0x403180
not edx
cmp edx, dword [edi + 0x24]
je 0x4031da
push dword [edi + 0x24]
push edx
push 0x429b30
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 4
jmp 0x4030fa
push dword [edi + 0x10]
push 0x429afc
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
jmp 0x4030f8
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x40
ret 4
Function at 0x40ffa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x46e226
call fcn.00453426
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x495070]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x410060
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040df99
add esp, 0xc
test eax, eax
jl 0x410060
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x410048
push edi
call fcn.0040e222
test al, al
pop ecx
je 0x410048
mov eax, edi
call fcn.00452f30
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x410051
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e465
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.0040e01d
cmp eax, ebx
jne 0x4100a5
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x410070
lea ecx, [ebp]
call fcn.0040ec5b
lea ecx, [ebp - 0x20]
call fcn.0040e167
mov eax, 0x8007000e
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004533e4
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x4100c4
call fcn.0040e595
mov esi, eax
jmp 0x410196
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4100e1
call fcn.0040e595
jmp 0x41018b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4100d7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x410128
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x410114
lea ecx, [ebp]
call fcn.0040ec5b
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.0040e167
mov eax, esi
jmp 0x41007d
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040f174
mov dword [ebp - 4], 1
jmp 0x410158
cmp dword [ebp], ebx
jne 0x410164
mov esi, 0x8007000e
jmp 0x41018d
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.0040e557
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.0040fe1d
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x410119
lea ecx, [ebp]
call fcn.0040ec5b
jmp 0x410119
Function at 0x41317a
Capabilities:
Create directory
Delete file

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
mov ebp, 0x180
push ebp
push 0x20
mov ebx, 0x502
push ebx
push edi
call fcn.0046589d
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4131ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4131f8
cmp eax, 3
je 0x4131b1
xor al, al
jmp 0x4131fa
push esi
push 0x5c
push edi
jmp 0x4131ca
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.00454660
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4131b7
push ebp
push 0x20
push ebx
push edi
call fcn.0046589d
add esp, 0x10
cmp eax, 0xffffffff
pop esi
je 0x4131ad
push eax
call fcn.00454f32
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop edi
pop ebp
pop ebx
ret

Function at 0x418595
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [esi + 0x204]
inc ebx
cmp byte [eax], 0
je 0x4185ea
push 0x476574
push eax
call fcn.00455b07
mov ebp, eax
test ebp, ebp
pop ecx
pop ecx
je 0x4185ea
push edi
push 0
push 0
push ebp
call fcn.004565ed
push ebp
mov edi, 0x200
push edi
push ebx
add esi, 4
push esi
call fcn.004564e4
add esp, 0x1c
cmp eax, edi
pop edi
je 0x4185e1
xor bl, bl
push ebp
call fcn.004559c7
pop ecx
jmp 0x4185ec
xor bl, bl
pop esi
pop ebp
mov al, bl
pop ebx
ret

Function at 0x41a832
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a907
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41a8f6
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x41a8e0
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x41a8f6
push eax
push edi
push dword [ebp - 0x110]
call fcn.0041a7cf
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x41a909
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004533e4
leave
ret 4
Function at 0x41aaac
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xe4]
sub esp, 0x164
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp + 0xe0], eax
mov eax, dword [ebp + 0xec]
push ebx
mov ebx, dword [ebp + 0xf4]
push esi
mov esi, dword [ebp + 0xf0]
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x28], eax
lea eax, [esi + 4]
push edi
mov dword [ebp - 0x2c], eax
jb 0x41aaed
mov eax, dword [eax]
cmp dword [ebx + 0x18], 0x10
lea edi, [ebx + 4]
jb 0x41aafa
mov ecx, dword [edi]
jmp 0x41aafc
mov ecx, edi
lea edx, [ebp - 0x24]
push edx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
ja 0x41abba
dec eax
dec eax
je 0x41ab7e
sub eax, 0x1d
je 0x41ab4c
lea eax, [ebp - 0x64]
push 0x7d2
push eax
call fcn.0041b081
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x41ab35
mov eax, dword [eax + 4]
jmp 0x41ab38
add eax, 4
push 0x10
xor esi, esi
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x64]
jmp 0x41abae
lea eax, [ebp - 0x80]
push 0x7d0
push eax
call fcn.0041b081
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x41ab67
mov eax, dword [eax + 4]
jmp 0x41ab6a
add eax, 4
push 0x10
xor esi, esi
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x80]
jmp 0x41abae
lea eax, [ebp - 0x48]
push 0x7d1
push eax
call fcn.0041b081
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x41ab99
mov eax, dword [eax + 4]
jmp 0x41ab9c
add eax, 4
xor esi, esi
push 0x10
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x48]
push esi
push 1
call fcn.00410bbf
xor al, al
jmp 0x41ac05
cmp dword [esi + 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jb 0x41abc5
mov eax, dword [eax]
cmp dword [ebx + 0x18], 0x10
jb 0x41abcd
mov edi, dword [edi]
push 1
push eax
xor esi, esi
push esi
push edi
push esi
push dword [ebp - 0x28]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x41ac03
lea eax, [ebp - 0x48]
push 0x7d2
push eax
call fcn.0041b081
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x41abfe
mov eax, dword [eax + 4]
jmp 0x41ab9e
add eax, 4
jmp 0x41ab9e
mov al, 1
mov ecx, dword [ebp + 0xe0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004533e4
add ebp, 0xe4
leave
ret

Function at 0x420014
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42004d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041ffd7
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041eab8
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x421ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x421d23
call fcn.004225f8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421d23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421d3e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00421897
test ebx, ebx
mov esi, eax
je 0x421d3c
test edi, edi
je 0x421d3c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x422c1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x422c5c
push 0x478048
push 4
push eax
call fcn.00401dd9
push eax
call fcn.0040df72
add esp, 0x10
jmp 0x422c6e
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x422cdc
push edi
call fcn.004574ab
mov edi, dword [eax]
call fcn.004574ab
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00453b7d
add esp, 0x18
mov ebx, eax
call fcn.004574ab
cmp dword [eax], 0
je 0x422cbc
call fcn.004574ab
push dword [eax]
call fcn.0041bd1d
pop ecx
jmp 0x422cc3
call fcn.004574ab
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x422cdc
cmp ebx, esi
jae 0x422cdc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x422cde
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004533e4
leave
ret
Function at 0x43de2a
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x471a62
call fcn.004533f3
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp dword [ecx + 4], esi
je 0x43de47
xor al, al
jmp 0x43df3c
push 0x10
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00452b30
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00452b30
mov dword [ebp - 0x84], ebx
mov bl, byte [ebp + 0xc]
add esp, 0x18
test bl, bl
je 0x43de7f
mov dword [ebp - 0x58], 1
mov word [ebp - 0x54], si
push dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
call fcn.004020cd
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 4], esi
test eax, 0xfffffffe
je 0x43dea6
lea ecx, [ebp - 0x20]
call fcn.004020fc
mov edi, eax
jmp 0x43dea8
xor edi, edi
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.004020cd
neg bl
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push edi
push esi
sbb ebx, ebx
xor ecx, ecx
and ebx, 8
cmp byte [ebp + 0x10], cl
push ebx
setne cl
mov byte [ebp - 4], 1
push ecx
push esi
push esi
mov ecx, eax
call fcn.004020fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp byte [ebp - 0x40], 0
mov edi, eax
je 0x43def7
push dword [ebp - 0x3c]
call fcn.00401990
pop ecx
cmp edi, esi
jne 0x43df19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x20], 0
je 0x43de40
push dword [ebp - 0x1c]
call fcn.00401990
pop ecx
jmp 0x43de40
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
je 0x43df3a
push dword [ebp - 0x1c]
call fcn.00401990
pop ecx
mov al, 1
call fcn.004534cb
ret 0x10

Function at 0x43ec48
Capabilities:
Get common file path

Disassembly:
push 0x418
mov eax, 0x471ba2
call fcn.0045345c
mov edi, ecx
xor ebx, ebx
lea esi, [edi + 8]
mov dword [edi], vtable.Ghost::Utilities::TempFile.0
mov byte [edi + 4], bl
mov dword [ebp - 0x424], edi
mov byte [esi], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov al, byte [ebp + 8]
mov byte [edi + 0x18], al
lea eax, [ebp - 0x218]
push eax
push 0x104
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x43ecc7
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x47b444
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x43ecc7
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.00419db6
mov byte [edi + 4], 1
mov eax, edi
call fcn.004534df
ret 4
Function at 0x43ecd1
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x471bdd
call fcn.004533f3
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Ghost::Utilities::TempFile.0
xor ebx, ebx
cmp byte [esi + 0x18], bl
mov dword [ebp - 4], ebx
je 0x43ed26
cmp byte [esi + 4], bl
je 0x43ed26
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004020cd
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004020fc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x20], bl
je 0x43ed23
push dword [ebp - 0x1c]
call fcn.00401990
pop ecx
mov byte [esi + 0x18], bl
cmp byte [esi + 8], bl
je 0x43ed34
push dword [esi + 0xc]
call fcn.00401990
pop ecx
call fcn.004534cb
ret

Function at 0x447181
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xff
lea eax, [ebp - 0x104]
push eax
mov edi, ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4471c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.gethostname_failed
mov edi, eax
call fcn.00446fee
pop ecx
xor al, al
jmp 0x447222
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4471e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.gethostbyname_failed
jmp 0x4471b9
cmp word [eax + 0xa], 4
je 0x4471f6
push 0x47ba38
call fcn.0044707b
jmp 0x4471c0
push esi
xor edx, edx
lea esi, [edi + 0x10c]
mov ecx, dword [eax + 0xc]
lea ecx, [ecx + edx*4]
cmp dword [ecx], 0
je 0x447219
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x10
jb 0x4471ff
mov dword [edi + 0x14c], edx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004533e4
leave
ret