joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a240
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x44]
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x41a270
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x70]
xor edx, edx
test eax, eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
setle dl
dec edx
and eax, edx
xor edx, edx
test eax, eax
setne dl
mov eax, edx
test eax, eax
mov dword [ebp - 8], eax
jne 0x41a2aa
push edx
push edi
push ebx
push ecx
call dword [sym.imp.wsock32.dll_send]
cmp eax, 0xffffffff
je 0x41a2cf
cmp eax, edi
jge 0x41a2e3
add ebx, eax
sub edi, eax
push edi
push ebx
mov ecx, esi
call fcn.0041a0a0
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x41a2e3
test eax, eax
je 0x41a2e3
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.wsock32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41a2aa
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a5c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x14]
xor ecx, ecx
lea eax, [esi + 0x634]
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [eax + 0x14], ecx
mov edx, dword [0x45c428]
test edx, edx
mov ecx, dword [esi + 0x74]
je 0x41a645
push ebx
push 0
push eax
mov ebx, 0x5b4
sub ebx, ecx
lea ecx, [ecx + esi + 0x78]
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 4]
push 1
lea eax, [ebp - 0x10]
push eax
push ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
call edx
cmp eax, 0xffffffff
pop ebx
jne 0x41a67e
call dword [sym.imp.wsock32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x41a670
pop esi
mov esp, ebp
pop ebp
ret
push eax
push 0
mov edx, 0x5b4
sub edx, ecx
push edx
lea eax, [ecx + esi + 0x78]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x41a67e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41a67e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, edx
push edi
mov dl, 0x3a
mov esi, ecx
call sub.storm.dll_Ordinal_571
mov edi, eax
test edi, edi
je 0x41b8ae
sub eax, esi
inc eax
cmp eax, 0x20
jbe 0x41b897
mov eax, 0x20
push eax
push esi
lea ecx, [ebp - 0x20]
push ecx
call sub.storm.dll_Ordinal_501
inc edi
push edi
lea esi, [ebp - 0x20]
call sub.storm.dll_Ordinal_575
mov ebx, eax
mov edi, dword [ebp + 8]
push ebx
mov word [edi], 2
call dword [sym.imp.wsock32.dll_htons]
push esi
mov word [edi + 2], ax
call dword [sym.imp.wsock32.dll_inet_addr]
mov dword [edi + 4], eax
xor edx, edx
add edi, 8
mov dword [edi], edx
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x422260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push esi
mov edi, edx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x422362
test al, 0x10
je 0x422362
push 0x421d20
call dword [sym.imp.mss32.dll__AIL_mem_use_malloc_4]
push 0x421e10
call dword [sym.imp.mss32.dll__AIL_mem_use_free_4]
push esi
push str.Setting_MP3_redist_directory_to__s
push edi
call sub.storm.dll_Ordinal_548
add esp, 0xc
push esi
call dword [sym.imp.mss32.dll__AIL_set_redist_directory_4]
call fcn.00449840
call dword [sym.imp.mss32.dll__AIL_startup_0]
mov eax, dword [0x45d088]
test eax, eax
je 0x4222c9
push eax
call dword [sym.imp.mss32.dll__AIL_close_digital_driver_4]
mov ebx, dword [ebp + 8]
xor eax, eax
test bl, 0x10
je 0x4222d8
mov eax, 1
push eax
mov eax, dword [0x454830]
mov ecx, dword [eax*4 + 0x44bac0]
push 2
push 0x10
push ecx
call dword [sym.imp.mss32.dll__AIL_open_digital_driver_16]
test eax, eax
mov dword [0x45d088], eax
jne 0x422317
call fcn.0042bf60
mov edx, dword [eax]
push str.Error__cannot_open_Miles_digital_sound_driver_
push 0
push eax
call dword [edx + 0xc]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push 0x422430
push 0x4223d0
push 0x4223c0
push 0x422390
call dword [sym.imp.mss32.dll__AIL_set_file_callbacks_16]
mov eax, dword [0x45d088]
push eax
push str.DIG_handle_is_0x_08x
push edi
call sub.storm.dll_Ordinal_548
add esp, 0xc
test bl, 4
jne 0x422351
mov ecx, ebx
call fcn.00422460
call fcn.00428130
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
call fcn.0042bf60
mov ecx, dword [eax]
push str.Error__invalid_redist_directory_specified_
push 0
push eax
call dword [ecx + 0xc]
push str._Failed_to_get_attributes_for_redist_directory___n_your_MSDEV_working_directory_setting_is_probably_wrong__n
call sym.War3.exe_HR
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x433f80
Capabilities:
Check os version

Disassembly:
call sym.War3.exe_Fx
mov dword [0x45d704], edx
mov dword [0x45d700], eax
mov edx, 2
xor ecx, ecx
jmp sym.War3.exe_HQ
Function at 0x4441a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
xor ecx, ecx
call fcn.0043fd10
mov eax, dword [ebp + 8]
test eax, eax
je 0x4441bb
mov eax, dword [0x45e8e4]
jmp 0x4441c0
call fcn.00444620
push ebx
push esi
push edi
push 0xffffffffffffffff
mov ecx, 0x45e88c
mov dword [ebp + 8], eax
call sym.War3.exe_L9
call sub.kernel32.dll_GetCurrentThreadId
push eax
push str.Engine__x
lea ecx, [ebp - 0x48]
push 0x40
push ecx
call sub.storm.dll_Ordinal_578
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.004120e0
call fcn.004134c0
mov ecx, dword [0x45e888]
cmp eax, ecx
je 0x444207
call fcn.004134d0
push 0
mov ecx, 0x45e8e8
call sym.War3.exe_L9
test eax, eax
je 0x4443a9
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004449a0
mov esi, eax
or edi, 0xffffffff
test esi, esi
je 0x44423c
mov edi, dword [esi + 0x3c]
call sym.War3.exe_G0
sub edi, eax
jns 0x44423c
xor edi, edi
mov eax, dword [0x45e8d0]
test eax, eax
je 0x44425d
cmp edi, 0xffffffff
jne 0x44424f
mov edi, 0x64
mov ecx, edi
call fcn.0041b510
mov edi, 0x102
jmp 0x44426e
mov ecx, ebx
call fcn.00444ae0
push edi
mov ecx, eax
call sym.War3.exe_L9
mov edi, eax
test esi, esi
je 0x4441f3
mov ecx, dword [esi + 0x208]
call fcn.0043fd10
mov edx, dword [esi + 0xc]
xor ecx, ecx
call sym.War3.exe_I2
mov ecx, dword [esi + 0x20c]
call fcn.00412590
call sym.War3.exe_G0
cmp edi, 0x102
mov dword [ebp - 8], eax
mov dword [esi + 0x28], eax
jne 0x444311
mov ecx, esi
call fcn.004443d0
mov ecx, esi
call fcn.00448520
test byte [esi + 0x44], 2
mov dword [ebp - 4], 0
je 0x4442f5
lea edx, [ebp - 4]
mov ecx, esi
call fcn.00446ae0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4442f5
lea edi, [esi + 0x10]
mov ecx, edi
call sym.War3.exe_Co
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4442e9
mov dword [esi + 0x2c], 1
mov ecx, edi
call sym.War3.exe_F4
call fcn.004454d0
mov ecx, esi
call fcn.00444590
mov ecx, esi
call fcn.00447c00
mov ecx, esi
call fcn.00444510
mov ecx, esi
call fcn.004445d0
lea edi, [esi + 0x10]
mov ecx, edi
call sym.War3.exe_Co
mov ecx, dword [esi + 0x2c]
xor ebx, ebx
cmp ecx, 1
mov ecx, edi
sete bl
call sym.War3.exe_F4
test ebx, ebx
je 0x444347
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.004448e0
mov ecx, esi
call fcn.00444400
jmp 0x4441f3
test byte [esi + 0x44], 4
mov ebx, dword [ebp - 8]
je 0x444354
xor edi, edi
jmp 0x444381
mov edx, ebx
mov ecx, esi
call fcn.004486d0
mov ecx, dword [esi + 0x48]
mov edi, eax
cmp ecx, dword [esi + 0x4c]
je 0x444369
mov edi, ecx
mov eax, dword [esi + 0x40]
sub eax, ebx
add eax, ecx
mov edx, 0
sets dl
dec edx
and eax, edx
cmp edi, eax
jb 0x444381
mov edi, eax
mov ecx, dword [esi + 0x20c]
call fcn.00412620
xor ecx, ecx
call fcn.0043fd10
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp + 8]
push eax
add edi, ebx
push edi
mov edx, esi
call fcn.00444af0
jmp 0x4441f3
mov ecx, dword [ebp + 8]
call fcn.00444770
call fcn.00412260
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x446d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x45e900]
test eax, eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
je 0x446d5a
push esi
lea esi, [eax - 1]
xor esi, eax
and esi, eax
call sym.War3.exe_G0
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push edi
mov edx, esi
mov ecx, ebx
call fcn.00447250
mov eax, dword [0x45e900]
test eax, eax
jne 0x446d33
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x288e60f2
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..rdata
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6e0b7f18
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x73c85e86
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x77c84e42
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1ea87ec0
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x76f65099
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x9eb920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9eb96c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9eb932
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9eb9d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9eba22
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9eba28
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa03f15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a03bd5

Function at 0xa08d0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a08b8e

Function at 0xa0e2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa0e2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa0e2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x2c195f82
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x54182d6e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941

Function at 0x402f2e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x408310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00401e87
and dword [ebp - 0x14], 0
cmp dword [0x40941c], 0
mov dword [ebp - 0x18], eax
jne 0x402fe1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403089
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403089
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40941c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x409420], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x409424], eax
call edi
push eax
call esi
mov dword [0x40942c], eax
test eax, eax
je 0x402fe1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x409428], eax
mov eax, dword [0x409428]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40303a
cmp dword [0x40942c], ecx
je 0x40303a
push eax
call esi
push dword [0x40942c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40303a
test ebx, ebx
je 0x40303a
call edi
test eax, eax
je 0x403031
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403031
test byte [ebp - 8], 1
jne 0x40303a
or dword [ebp + 0x10], 0x200000
jmp 0x40306d
mov eax, dword [0x409420]
cmp eax, dword [ebp - 0x18]
je 0x40306d
push eax
call esi
test eax, eax
je 0x40306d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40306d
mov eax, dword [0x409424]
cmp eax, dword [ebp - 0x18]
je 0x40306d
push eax
call esi
test eax, eax
je 0x40306d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40941c]
call esi
test eax, eax
je 0x403089
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40308b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403299
leave
ret

Function at 0x403299
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408310]
jne 0x4032a3
repz ret
jmp fcn.00404506
Function at 0x410eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ecx + 0x3c]
mov esi, ecx
mov dword [esp + 4], edx
mov eax, dword [eax + ecx + 0x78]
mov edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov ecx, dword [eax + ecx + 0x1c]
add edi, esi
add ebx, esi
mov dword [esp], ecx
mov ebp, dword [edi]
add ebp, esi
push ebp
call fcn.004296f0
pop ecx
lea ecx, [esp + 8]
mov edx, ebp
push eax
call fcn.004176ec
pop eax
cmp dword [esp + 8], 1
je 0x410f26
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
call fcn.004152e8
cmp eax, dword [esp + 4]
je 0x410f11
add edi, 4
add ebx, 2
jmp 0x410ed7
mov ecx, dword [esp]
movzx eax, word [ebx]
add ecx, esi
add esi, dword [ecx + eax*4]
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esp + 0xc]
lea eax, [esp + 0x14]
movsd qword [eax], xmm0
push 0x2b
pop edx
mov ecx, 0x406a30
push 0x401144
push 0x4010e8
push eax
call fcn.0043399c
Function at 0x415b10
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0x424980
lea eax, [esi + 0x60]
mov ecx, dword fs:[0]
mov dword [esi + 0x60], ecx
mov dword fs:[0], eax
push 0x4200c9
push 0
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
lea eax, [esi + 0x3c]
mov dword [esi + 0x3c], 0x5000
push eax
call dword [sym.imp.kernel32.dll_SetThreadStackGuarantee]
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov ecx, dword [0x436054]
push 0x408710
push eax
call ecx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x68], 0
call fcn.0041edae
movsd xmm0, qword [eax + 8]
mov ebx, eax
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x30], eax
movsd qword [esi + 0x18], xmm0
mov eax, dword [0x436a38]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
movzx eax, byte [eax + 0x3c]
test eax, eax
je 0x415beb
cmp eax, 1
je 0x415c31
lea ecx, [esi + 0x2c]
call fcn.0041ed25
lea eax, [esi + 4]
mov ecx, 0x406e73
mov edx, 0x46
push 0x406f30
push 0x406a10
push eax
call fcn.0043399c
add esp, 0xc
ud2
mov dword [esi + 8], ebx
mov byte [esi + 3], 1
mov dword [esi + 0x68], 1
mov edx, 0x41f004
mov eax, dword [0x436a38]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 0x38]
call fcn.0041f011
mov eax, dword [0x436a38]
mov ecx, dword fs:[0x2c]
mov ebx, dword [esi + 8]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x3c], 1
mov eax, dword [0x436a38]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x38], 0
jne 0x415cc2
mov eax, dword [0x436a38]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
lea ecx, [edi + 0x38]
call fcn.0041ed66
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [edi + 0x38], ebx
mov dword [esi + 0xc], 0
mov dword [edi + 0x34], ecx
lea ecx, [esi + 0xc]
mov dword [edi + 0x30], eax
call fcn.0041ed66
mov ecx, 0x411030
mov dword [esi + 0x68], 7
call fcn.0040e7e2
mov dword [esi + 8], 0
mov dword [esi + 0x68], 0xe
call fcn.0041faeb
mov eax, dword [esi + 0x60]
mov dword fs:[0], eax
mov eax, dword [esi + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [esi + 0x3c]
lea eax, [esi + 4]
mov dword [esi + 0x10], 0
mov dword [esi + 0x3c], 0x407004
mov dword [esi + 0x40], 1
mov dword [esi + 0x4c], 0
mov dword [esi + 0xc], ebx
mov byte [esi + 0x14], 0
mov dword [esi + 0x68], 2
lea ecx, [esi + 0x34]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0
lea eax, [esi + 0x10]
push edx
push eax
push ecx
call fcn.0041e6aa
add esp, 0xc
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
call fcn.0041e69b
mov ecx, 7
int 0x29
ud2
Function at 0x418b5b
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov dword [esp], ecx
push 0x20
pop ebp
xor eax, eax
mov edi, dword [esp]
test al, 1
jne 0x418ba9
lea eax, [edi + ebp]
mov esi, ebp
mov dword [esp], eax
push 2
push ebp
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ebx, eax
xor ebp, ebp
mov al, 1
cmp ebx, 0xbfffffff
jbe 0x418b68
push esi
push edi
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
mov al, 1
jne 0x418b68
and ebx, 0x7fffffff
mov eax, ebx
jmp 0x418bab
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41e3d7
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov edi, edx
lea edx, [esp + 4]
mov eax, dword [esp + 0x44]
mov esi, ecx
mov ecx, dword [esp + 0x48]
mov ebx, 0x103
and dword [edx + 4], 0
mov dword [edx], ebx
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, ebx
jne 0x41e424
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x41e448
test eax, eax
js 0x41e434
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x41e441
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
and dword [esi], 0
mov dword [esi + 4], eax
add esp, 0x34
pop esi
pop edi
pop ebx
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
mov edx, esp
lea esi, [esp + 0x14]
and dword [eax], 0
mov dword [ecx], 0x4083fc
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
and dword [ecx + 0xc], 0
mov byte [eax + 4], 0
push ecx
push eax
push esi
call fcn.0041e6aa
add esp, 0xc
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.0041e69b
push 7
pop ecx
int 0x29
ud2

Function at 0x422343
Capabilities:
Terminate process

Disassembly:
call fcn.0041faeb
call 0x42234d
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4258e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x425922
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425922
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425922
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x425922
cmp dword [ecx + 0x74], 0xe
jbe 0x425922
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret