joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f180
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x49f190
mov esi, 1
push esi
call fcn.0048a597
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49f1e2
call fcn.0048b09d
mov edi, eax
call fcn.004a1ce0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x49f1c6
mov edx, dword [0xb36e08]
mov dword [0xb36e04], edx
test al, 0x18
je 0x49f1d7
push esi
push 0x24
push 5
call fcn.004a2530
add esp, 0xc
test edi, edi
je 0x49f1fd
push 1
call fcn.0048c9c4
test byte [esp + 0x14], 0x20
je 0x49f1fd
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4a0300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x4a03f4
cmp byte [edx], 0
je 0x4a03e7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.004a0280
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004a0280
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004a01f0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x4a03b1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.004a0230
fmul qword [0xb0f400]
push ecx
fstp qword [esp]
call fcn.00488f08
fadd qword [0xb0f3f8]
add esp, 8
call fcn.00488fd8
mov byte [ebx], al
inc ebx
dec edi
jne 0x4a0384
lea ecx, [esp + 0x20]
push ecx
call fcn.004a0230
fmul qword [0xb0f400]
push ecx
fstp qword [esp]
call fcn.00488f08
add esp, 8
call fcn.00488fd8
cmp esi, ebx
je 0x4a03dd
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x4a03d6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a07c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x4a07f0
mov byte [edi + esi], 2
jmp 0x4a0827
test al, 4
je 0x4a07fa
mov byte [edi + esi], 0xd
jmp 0x4a0827
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x4a0813
mov byte [edi + esi], 2
jmp 0x4a0827
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x4a0823
mov byte [edi + esi], 0x19
jmp 0x4a0827
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x4a07d7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x4a089b
cmp dl, 0xd
je 0x4a089b
xor edx, edx
jmp 0x4a08a0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x4a088b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4a08c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0049f180
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a08e1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.004a1f20
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x4a0906
push esi
call fcn.0049f210
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004946ab
push ebx
push edi
mov ebp, eax
call fcn.004a1f90
push 0x4a0940
push ebp
push esi
call fcn.004a32c0
push esi
call fcn.0049f210
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4a1c50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0xc2e880
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xc2e7a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4a1ccb
push 0x4c
push 1
call fcn.0048b4c5
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a1c93
push 0xc2e880
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0xc2e7a8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0xc24bfc]
inc eax
lea edx, [esi + 0xc]
mov dword [0xc24bfc], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004a5750
add esp, 8
mov byte [esi + 0x3c], 1
push 0xc2e880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4a2150
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0048b09d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004946ab
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4a224a
call fcn.0048b09d
cmp dword [eax], 0
je 0x4a2197
call fcn.0048b09d
mov ebp, dword [eax]
jmp 0x4a219a
or ebp, 0xffffffff
call fcn.004a1ce0
test esi, esi
mov dword [eax], ebp
jne 0x4a21af
call fcn.0048b09d
cmp dword [eax], 4
je 0x4a21ff
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x4a21e2
cmp esi, 0xffffffff
je 0x4a2224
test al, 6
je 0x4a21e2
call fcn.004a1ce0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004a5780
add esp, 4
push eax
push 0x24
push 9
call fcn.004a2530
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4a2242
test al, 6
je 0x4a21f0
test ah, 2
je 0x4a2242
test esi, esi
jbe 0x4a224e
test ah, 2
je 0x4a224e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0048b09d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004946ab
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4a224a
jmp 0x4a2184
call fcn.004a1ce0
mov eax, dword [eax]
push eax
push ebx
call fcn.004a5780
add esp, 4
push eax
push 0x24
push 2
call fcn.004a2530
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x4a225b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x4a2264
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4b3054
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b3074
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048b02a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b3097
test byte [esp + 8], 2
je 0x4b3097
call fcn.0048b09d
mov dword [eax], 0xd
call fcn.0048b0a6
mov dword [eax], 5
jmp 0x4b3070
xor eax, eax
ret
Function at 0x4b7e94
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b7ecc
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.004b5f4b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b5f23
jmp 0x4b7ed8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b9585
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 0x4b95c7
call fcn.004bf1e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b95c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b95be
xor eax, eax
jmp 0x4b95cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b95d5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bf718
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 0x4bf746
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bf764
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bf67e
jmp 0x4bf764
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bf764
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bf67e
test edi, edi
mov eax, edi
jne 0x4bf74e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x41bda0
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.0040c980
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41be6b
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 0x41be6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41be1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41be29
or bh, 8
and edi, 0x8000000
je 0x41be44
mov eax, dword [0x43c33c]
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 0x41be6b
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 0x402510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4044b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40257a
push str.ReleaseFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402569
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x402569
push ecx
call eax
add esp, 4
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], 0
call fcn.00401180
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x57d150
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x128000]
push edi
jmp 0x57d16a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57d171
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57d160
mov eax, 1
add ebx, ebx
jne 0x57d183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57d194
jne 0x57d1b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57d1b3
dec eax
add ebx, ebx
jne 0x57d1a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57d178
add ebx, ebx
jne 0x57d1af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57d205
xor ecx, ecx
sub eax, 3
jb 0x57d1cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57d23a
sar eax, 1
mov ebp, eax
jmp 0x57d1d6
add ebx, ebx
jne 0x57d1d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57d1a4
inc ecx
add ebx, ebx
jne 0x57d1e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57d1a4
add ebx, ebx
jne 0x57d1f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57d1e6
jne 0x57d202
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57d1e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57d224
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57d216
jmp 0x57d166
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57d224
add edi, ecx
jmp 0x57d166
pop esi
mov edi, esi
mov ecx, 0x3eef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57d242
cmp byte [edi], 0x11
jne 0x57d242
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 0x57d247
lea edi, [esi + 0x176000]
mov eax, dword [edi]
or eax, eax
je 0x57d2bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2221e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x222364]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57d274
mov ecx, edi
jns 0x57d2a3
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 + 0x222368]
or eax, eax
je 0x57d2b9
mov dword [ebx], eax
add ebx, 4
jmp 0x57d291
call dword [esi + 0x222378]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57d2f0
cmp al, 0xef
ja 0x57d2e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x57d2c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x57d2d2
mov ebp, dword [esi + 0x22236c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x57d324
sub esp, 0xffffff80
jmp 0x426bf7
Function at 0x4021ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4021b6
repz ret
jmp fcn.004025dc
Function at 0x4040c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x33b]
test eax, eax
je 0x4040d3
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x204]
test eax, eax
je 0x4040e3
xor eax, eax
pop esi
ret 4
mov eax, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x404120
push 0
push 0
mov dword [esi + 0x33b], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x208], eax
test eax, eax
setne dl
mov eax, edx
pop esi
ret 4

Function at 0x4079b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b265b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4e641c]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x10], eax
xor edi, edi
lea ecx, [esi + 0x34]
push edi
push edi
push edi
mov dword [esp + 0x20], edi
call fcn.00476578
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 4], edi
mov dword [esi], 0x4bb648
mov dword [esi + 0x18], 0x2710
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4089f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b27c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4eb094]
test eax, eax
jne 0x408a9b
mov eax, dword [0x4e641c]
push esi
mov dword [esp + 4], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00491dfc
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00491e4b
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.00491da8
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x408a82
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x408a82
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x4eb094], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004919cc
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x408ab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408b12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x408d20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x408e09
lea eax, [esp + 0x10]
push eax
push str..htm
push SysReAllocStringLen
call fcn.00408ab0
add esp, 0xc
test eax, eax
jne 0x408e09
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push SysReAllocStringLen
call fcn.00408ab0
add esp, 0xc
test eax, eax
jne 0x408e09
lea ecx, [esp + 0x10]
push 0x4dcba4
push ecx
call fcn.00478550
mov esi, eax
add esp, 8
test esi, esi
jne 0x408de3
lea edx, [esp + 0x10]
push 0x4dcba0
push edx
call fcn.004784d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408de3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x408de6
mov byte [esi], 0
push 0x4dc604
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40a460
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4b2c1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x3c]
mov dword [esp + 0x10], 0xd
call fcn.004919cc
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 0xc
call fcn.004919cc
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 0xb
call fcn.004919cc
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 0xa
call fcn.004919cc
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 9
call fcn.004919cc
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 8
call fcn.004919cc
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 7
call fcn.004919cc
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 6
call fcn.004919cc
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 5
call fcn.004919cc
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 4
call fcn.004919cc
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 3
call fcn.004919cc
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 2
call fcn.004919cc
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.004919cc
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.004919cc
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004919cc
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40b3b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2d47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
xor ecx, ecx
push esi
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ecx
lea edx, [esp + 4]
mov dword [esp + 0x18], 1
mov eax, dword [eax - 8]
push edx
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00491dfc
push eax
call fcn.0041feb0
add esp, 0xc
lea ecx, [esp + 0x24]
mov esi, eax
push 0xffffffffffffffff
call fcn.00491e4b
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push eax
push esi
call fcn.0048e133
mov esi, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.00491741
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.004919cc
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call fcn.004919cc
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40bec0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2ee8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 0x10
call fcn.0049170d
add esp, 4
test eax, eax
je 0x40beff
mov ecx, dword [0x4e641c]
mov esi, eax
mov dword [eax], ecx
mov edx, dword [0x4e641c]
mov dword [eax + 4], edx
jmp 0x40bf01
xor esi, esi
mov eax, dword [esp + 0x24]
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call fcn.00491741
lea ecx, [esp + 0x28]
push ecx
call fcn.0040b3b0
add esp, 8
push eax
lea ecx, [esi + 4]
mov dword [esp + 0x1c], 0
call fcn.00491b05
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.004919cc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add edi, 0x40
mov ecx, esi
push edi
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
call fcn.00491b05
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x40bf90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40bf7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 0xc