joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462510
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46255a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x462589
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4625cb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x478b9d
Capabilities:
Get graphical window text

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

Function at 0x47a290
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 0x47a2d2
call fcn.0047fd85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47a2d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47a2c9
xor eax, eax
jmp 0x47a2da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047a2e0
pop edi
pop esi
pop ebx
ret 4

Function at 0x4802b5
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 0x4802e3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x480301
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048021b
jmp 0x480301
mov eax, dword [esi + 0x14]
test eax, eax
je 0x480301
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048021b
test edi, edi
mov eax, edi
jne 0x4802eb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40ec90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x438
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
push 0x104
call dword [0x481330]
push edi
call fcn.004076d0
call dword [0x48130c]
test eax, eax
jne 0x43455d
mov eax, dword [0x4a36cc]
test eax, eax
je 0x434576
mov byte [esp + 0xf], 0
mov esi, 0x4a4728
cmp eax, 1
je 0x43458a
push 0x4a36cc
lea ecx, [esp + 0x13]
mov eax, 0x4a36e4
call fcn.00411ba0
test al, al
je 0x4345ab
mov dl, byte [0x4a4728]
mov bl, byte [0x4a4729]
push 0x4a36c8
lea eax, [esp + 0x234]
push eax
push 0x104
push 0x4a36e4
mov byte [0x4a36d0], dl
call dword [0x481304]
mov ecx, dword [0x4a36cc]
push ecx
push 0x4a36e4
call fcn.0040e720
test eax, eax
jne 0x4345bf
cmp bl, 1
je 0x4345e3
call fcn.00412310
call fcn.00412280
cmp byte [0x4a36d0], 0
jne 0x40ed68
mov esi, 0x4a3d50
call fcn.0040f320
push 1
mov ecx, 0x4a38f0
call fcn.00402490
cmp byte [0x4a36d0], 0
jne 0x40ed87
mov ecx, 0x4a3d50
call fcn.0040f420
mov ebx, 0x4a4728
call fcn.0040ff90
lea eax, [esp + 0x20]
push eax
call dword [0x481308]
pop edi
pop esi
pop ebx
add esp, 0x438
ret
push 0x10
push 0x4836ae
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [0x4816f0]
jmp 0x40ed9c
lea ecx, [esp + 0x20]
mov dword [0x492ba4], 0xffffffff
push ecx
jmp 0x40ed96
mov edx, dword [0x4a36d4]
push 0xffffffffffffffff
push edx
push 1
xor bl, bl
call fcn.00411a30
mov al, byte [0x492b98]
mov byte [0x4a472b], al
jmp 0x40ed29
lea ecx, [esp + 0x20]
mov dword [0x492ba4], 1
push ecx
jmp 0x40ed96
mov ebx, 0x4a4728
call fcn.0040ff90
lea edx, [esp + 0x20]
push edx
call dword [0x481308]
mov dword [0x492ba4], 1
jmp 0x40ed9c
call fcn.00438bae
test al, al
jne 0x40ed4b
push 0x104
lea eax, [esp + 0x234]
push eax
push 0
call dword [0x481300]
cmp byte [esp + 0xf], 0
je 0x434664
mov edi, 0x483718
lea esi, [esp + 0x10]
call fcn.00406780
mov edi, 0x4a36e4
mov eax, esi
call fcn.0040dec0
mov edi, 0x483718
mov eax, esi
call fcn.0040dec0
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x23c]
push eax
push 0x48371c
call dword [0x4816ec]
push eax
call dword [0x481484]
mov ecx, esi
call fcn.004066f0
jmp 0x40ed87
push 1
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x23c]
push edx
push 0x48371c
call dword [0x4816ec]
push eax
call dword [0x481484]
jmp 0x40ed87
Function at 0x410500
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
lea eax, [esp]
push eax
xor edx, edx
push 1
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov word [esi], dx
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [0x481040]
test eax, eax
jne 0x41054f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [0x48103c]
mov eax, dword [esp]
push eax
call dword [0x481038]
pop ecx
ret

Function at 0x4105f0
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
mov edi, dword [0x48164c]
xor ebx, ebx
push ebx
push 0x5b
mov dword [esi], 5
mov dword [esi + 4], 5
mov dword [esi + 0x10], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0xa0
call edi
push ebx
push 0x10
mov byte [esi + 0x1d], al
call edi
mov byte [esi + 0x1a], al
mov eax, dword [esi + 0x20]
push ebx
push eax
call edi
push ebx
push 0xa1
mov byte [esi + 0x1b], al
call edi
push ebx
push 0x11
mov byte [esi + 0x1c], al
call edi
push ebx
push 0x12
mov byte [esi + 0x18], al
call edi
lea ecx, [esp + 0xc]
push ecx
mov byte [esi + 0x19], al
call dword [0x4815c4]
mov edi, dword [0x4815c0]
mov esi, 1
mov bl, 0x20
mov edi, edi
movzx edx, byte [esi + 0x491d80]
push edx
call edi
cmp ax, 0xffff
je 0x4106df
inc esi
cmp esi, 7
jle 0x410670
lea eax, [esp + 0x10]
push str.0409
push eax
call fcn.00415d80
add esp, 8
test eax, eax
je 0x42a8b9
lea edx, [esp + 0x10]
push str.0809
push edx
call fcn.00415d80
add esp, 8
test eax, eax
jne 0x42a8e6
mov byte [0x491d82], bl
mov byte [0x491d85], bl
mov byte [0x491d86], bl
mov byte [0x491d83], bl
mov byte [0x491d84], bl
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x491d80], bl
jmp 0x410680
push 4
lea ecx, [esp + 0x10]
push str.0002
push ecx
call fcn.00415e08
add esp, 0xc
mov byte [0x491d82], bl
mov byte [0x491d85], bl
test eax, eax
je 0x4106d8
jmp 0x4106c6
lea eax, [esp + 0x12]
push 0x4845bc
push eax
call fcn.00415d80
add esp, 8
test eax, eax
jne 0x42a907
mov byte [0x491d85], bl
jmp 0x4106d2
lea ecx, [esp + 0x12]
push 0x4845c0
push ecx
call fcn.00415d80
add esp, 8
test eax, eax
je 0x4106ba
lea edx, [esp + 0x12]
push 0x4845c4
push edx
call fcn.00415d80
add esp, 8
test eax, eax
je 0x4106d2
lea eax, [esp + 0x12]
push 0x4845c8
push eax
call fcn.00415d80
add esp, 8
test eax, eax
jne 0x4106d8
jmp 0x4106c0
Function at 0x4114f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
call fcn.00411460
cmp eax, 0xffffffff
je 0x4115ec
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor ebx, ebx
lea edi, [ebx + 1]
call fcn.004113c0
mov edi, dword [esp + 0x18]
dec edi
test edi, edi
jle 0x411566
jmp 0x411520
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x5c], eax
je 0x411573
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
cmp eax, 0xd
je 0x411558
cmp eax, 0xffffffff
je 0x411566
cmp eax, 0xa
je 0x411566
mov byte [ebx + ebp], al
inc ebx
cmp ebx, edi
jl 0x411520
pop edi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
mov al, 1
pop esi
ret 8
call fcn.00411460
cmp eax, 0xa
jne 0x42a6c8
pop edi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
mov al, 1
pop esi
ret 8
cmp eax, 4
jle 0x42a692
mov dword [esp + 0x14], 4
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x10]
mov edx, 4
sub edx, eax
push edx
add eax, ecx
push eax
push ecx
call fcn.00416980
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x58]
mov ecx, esi
sub ecx, eax
lea ecx, [ecx + edx + 0x14]
push eax
mov edx, esi
sub edx, eax
push ecx
add edx, 0x14
push edx
call fcn.004135d0
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x2c]
push ecx
push 0x40
lea edx, [esi + 0x14]
push 1
push edx
mov dword [esi + 0x54], eax
call fcn.00416737
add esp, 0x28
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
test eax, eax
jne 0x411528
jmp 0x42a69b
xor al, al
pop esi
ret 8
mov dword [esp + 0x14], eax
jmp 0x411588
mov eax, dword [esi + 4]
push eax
call fcn.00416754
add esp, 4
test eax, eax
jne 0x411566
mov ecx, dword [esi + 4]
push ecx
call fcn.00416788
add esp, 4
test eax, eax
jne 0x411566
jmp 0x411543
cmp eax, 0xffffffff
je 0x411566
mov edi, 1
call fcn.004113c0
jmp 0x411566

Function at 0x411e60
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi]
sub esp, 8
test al, 3
jne 0x42a774
add esp, 8
ret
test al, 1
je 0x42a796
mov ecx, dword [esi + 4]
lea eax, [esp]
push eax
push ecx
call fcn.00416152
mov edx, dword [esp + 8]
add esp, 8
or edx, dword [esp + 4]
jne 0x411e6d
mov eax, dword [esi]
test al, 0x20
je 0x42a7bc
mov eax, dword [esi + 4]
push eax
push 2
push 1
push 0x484aec
call fcn.00416322
mov dword [esi + 0xc], 1
add esp, 0x10
add esp, 8
ret
test al, 0x40
je 0x42a7e0
mov ecx, dword [esi + 4]
push ecx
push 2
push 1
push 0x485e40
call fcn.00416322
mov dword [esi + 0xc], 2
add esp, 0x10
add esp, 8
ret
test al, al
jns 0x411e6d
mov edx, dword [esi + 4]
push edx
push 3
push 1
push str.rb
call fcn.00416322
mov dword [esi + 0xc], 4
add esp, 0x10
add esp, 8
ret
Function at 0x411eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp]
mov dword [ebp + 0xc], 0
mov byte [ebp + 8], 0
test al, 0x14
jne 0x411f36
test al, al
js 0x42a6e0
test al, 0x20
jne 0x42a6ec
test al, 0x40
jne 0x42a6f8
mov eax, dword [esp + 0xc]
push 0x485e48
push eax
call fcn.0041602c
add esp, 8
test eax, eax
je 0x411f36
push esi
push edi
mov esi, eax
push esi
push 3
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.00416737
push esi
mov edi, eax
call fcn.0041641b
mov al, byte [esp + 0x24]
add esp, 0x14
cmp edi, 2
jb 0x411f2c
cmp al, 0xff
je 0x42a704
cmp al, 0xfe
je 0x42a71f
cmp al, 0xef
je 0x42a73a
pop edi
pop esi
pop ebp
ret 8
mov dword [ebp + 0xc], 4
jmp 0x411edf
mov dword [ebp + 0xc], 1
jmp 0x411edf
mov dword [ebp + 0xc], 2
jmp 0x411edf
cmp byte [esp + 0x11], 0xfe
jne 0x411f2c
mov dword [ebp + 0xc], 1
mov byte [ebp + 8], 1
jmp 0x411f34
cmp byte [esp + 0x11], 0xff
jne 0x411f2c
mov dword [ebp + 0xc], 2
mov byte [ebp + 8], 1
jmp 0x411f34
cmp edi, 3
jb 0x411f34
cmp byte [esp + 0x11], 0xbb
jne 0x411f34
cmp byte [esp + 0x12], 0xbf
jne 0x411f34
mov dword [ebp + 0xc], 4
mov byte [ebp + 8], 1
jmp 0x411f34

Function at 0x412280
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x492bd0]
push esi
push 0
mov esi, dword [0x4816d8]
push eax
push 0
push 0
push 0x64
push 0x12c
push accept
push accept
push 0xcf0000
push str.AutoIt_v3
push str.AutoIt_v3
push 0
call esi
mov ecx, dword [0x492bd0]
push 0
push ecx
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50b008c4
push 0
push str.edit
push 0
mov dword [0x492bc8], eax
call esi
mov edx, dword [0x492bc8]
mov esi, dword [0x4816d4]
push 0
push edx
mov dword [0x492bc4], eax
call esi
mov eax, dword [0x492bc8]
push 0
push eax
call esi
pop esi
ret
Function at 0x435ff2
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
push esi
or ecx, 0x50000000
push edi
mov edi, dword [esp + 0xc]
test eax, 0x80000
je 0x436012
and eax, 0xfff7ffff
mov edx, dword [0x4a3624]
push 0
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [edi]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push edx
push eax
call dword [0x4816d8]
mov esi, eax
test esi, esi
je 0x436085
cmp byte [esp + 0x34], 0
je 0x43606a
push 0
push 0x11
call dword [0x481140]
push eax
push 0x30
push esi
call dword [0x481648]
cmp dword [edi + 0x17c], 0
jl 0x436085
cmp byte [edi + 0x188], 0
je 0x436085
push 0
push esi
call dword [0x4816d4]
pop edi
mov eax, esi
pop esi
ret 0x2c
Function at 0x436da2
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x38
push esi
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jge 0x436dd0
xor eax, eax
pop esi
add esp, 0x38
ret 0x10
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00412f61
add esp, 4
xor eax, eax
pop esi
add esp, 0x38
ret 0x10
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x48], 0xffffffff
jge 0x436df0
mov dword [esi + 4], eax
mov dword [esi + 0xc], ecx
mov dword [esp + 0x48], 1
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ebx
push ebp
push edi
push ecx
mov ecx, dword [eax + 0xfc]
lea edx, [esp + 0x18]
push edx
push ecx
call fcn.00436d53
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add dword [esi + 4], ecx
add dword [esi + 0xc], ecx
add dword [esi], eax
mov ebx, dword [esi + 4]
add dword [esi + 8], eax
mov edx, dword [esi]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, ebx
sub edi, edx
inc ecx
inc edi
push 0
mov dword [esp + 0x50], edi
mov ebx, ecx
call dword [0x481688]
push ebx
mov ebp, eax
push edi
push ebp
call dword [0x4810e8]
push ebp
mov dword [esp + 0x54], eax
call dword [0x4810ec]
mov edx, dword [esp + 0x50]
mov edi, eax
push edx
push edi
call dword [0x4810f0]
mov ecx, dword [esi]
push 0xcc0020
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x50]
push eax
push ecx
push ebp
push ebx
push esi
push 0
push 0
push edi
call dword [0x4810f4]
mov edx, ebx
imul edx, dword [esp + 0x54]
push 0
mov dword [esp + 0x28], edx
lea edx, [esp + 0x20]
push edx
push 0
push 0
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x60]
push 0
push esi
mov eax, 1
mov ecx, 0x20
push edi
mov dword [esp + 0x38], 0x28
mov word [esp + 0x44], ax
mov word [esp + 0x46], cx
mov dword [esp + 0x48], 0
call dword [0x4810f8]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
push eax
mov dword [ecx], eax
call fcn.00412dbe
add esp, 4
push 0
lea edx, [esp + 0x20]
push edx
push eax
push ebx
push 0
push esi
push edi
mov dword [esp + 0x70], eax
call dword [0x4810f8]
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [0x4810f0]
push esi
call dword [0x4810c8]
push edi
call dword [0x481148]
push ebp
push 0
call dword [0x481684]
pop edi
pop ebp
test ebx, ebx
pop ebx
je 0x436dba
mov eax, dword [esp + 0x48]
pop esi
add esp, 0x38
ret 0x10
Function at 0x436f36
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [ecx + edx]
mov edx, edi
imul edx, esi
add edx, edx
add esi, esi
or eax, 0xffffffff
add edx, edx
add esi, esi
lea edi, [ecx + edi*4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov esi, ecx
movzx ebp, byte [ecx + 2]
add ecx, 2
mov edi, eax
and edi, 0xff
xor edi, ebp
movzx ebp, byte [ecx - 1]
shr eax, 8
xor eax, dword [edi*4 + 0x490da8]
dec ecx
mov edi, eax
and edi, 0xff
xor edi, ebp
movzx ebp, byte [ecx - 1]
shr eax, 8
xor eax, dword [edi*4 + 0x490da8]
dec ecx
mov edi, eax
and edi, 0xff
xor edi, ebp
shr eax, 8
xor eax, dword [edi*4 + 0x490da8]
add ecx, edx
cmp ecx, ebx
jb 0x436fc3
add esi, dword [esp + 0x20]
mov ecx, esi
cmp esi, dword [esp + 0x1c]
jb 0x436f6a
not eax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
test eax, eax
jge 0x436fdd
fadd qword [0x48b510]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x4377be
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4377d4
cmp eax, 0x10000
jne 0x4377f8
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00416737
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret 4

Function at 0x437812
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x437841
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.00416322
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 4

Function at 0x437845
Capabilities:
Write file on windows

Disassembly:
mov dl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x458]
mov ecx, dword [esi + 0x460]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
mov eax, dword [esi + 0x460]
cmp eax, 0x10000
jne 0x437894
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00416322
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 8

Function at 0x43793d
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x14], 1
jne 0x437963
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004135d0
add esp, 0xc
jmp 0x437978
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00416737
add esp, 0x10
movzx ecx, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xb]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [esp + 4]
push str.EA06
push ecx
mov byte [esp + 0x10], 0
call fcn.00415d80
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 8
Function at 0x437a20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x4a2bf0], eax
mov edx, 1
mov eax, 0x4a2bf0
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a35ac
jl 0x437a34
mov dword [0x49121c], 1
mov dword [0x4a35c0], 1
pop edi
ret

Function at 0x4390e5
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x29c
push esi
mov esi, dword [esp + 0x2a4]
push edi
mov edi, dword [esp + 0x2ac]
lea eax, [esp + 0x110]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4391c4
push 0x100
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x10]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4391c4
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x43914e
mov ecx, eax
lea esp, [esp]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x439145
cmp esi, edx
jle 0x43916e
push str.0.0.0.0
push edi
call fcn.004131c5
add esp, 8
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
mov eax, dword [eax + esi*4 - 4]
push 4
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004135d0
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00415760
lea ecx, [esp + 0x18]
push ecx
or eax, 0xffffffff
call fcn.004113e0
mov esi, eax
push esi
push edi
call fcn.004131c5
push esi
call fcn.00412f61
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
push 0x4838c0
push edi
call fcn.004131c5
add esp, 8
pop edi
pop esi
add esp, 0x29c
ret
Function at 0x439a2c
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x102c
call fcn.004203f0
push ebp
mov ebp, dword [esp + 0x103c]
lea eax, [esp + 4]
push eax
push 0x800
lea ecx, [esp + 0x838]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x439a63
xor al, al
pop ebp
add esp, 0x102c
ret
mov edx, dword [esp + 0x1034]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edx
shr esi, 2
mov byte [ebp], 0
call fcn.004399f0
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
jbe 0x439b77
push edi
cmp byte [ebp], 0
jne 0x439b76
mov eax, dword [esp + ebx*4 + 0x83c]
push eax
push 0
push 0x410
call dword [0x48117c]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
mov edi, eax
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x22c]
push eax
push ecx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x439b66
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x640]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x238]
push eax
call fcn.00415b80
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00413197
mov eax, dword [esp + 0x105c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00413104
add esp, 0x24
test eax, eax
jne 0x439b46
mov edx, dword [esp + ebx*4 + 0x83c]
mov eax, dword [esp + 0x1044]
mov dword [eax], edx
jmp 0x439b62
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x439b66
mov eax, dword [esp + ebx*4 + 0x83c]
cmp ecx, eax
jne 0x439b66
mov ecx, dword [esp + 0x1044]
mov dword [ecx], eax
mov byte [ebp], 1
push edi
call dword [0x4812f4]
inc ebx
cmp ebx, esi
jb 0x439a8f
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x102c
ret