joyce8/EMBER2024-capa huggingface dataset:
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 0x485e44
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 [sym.imp.USER32.dll_CreateWindowExW]
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 [sym.imp.USER32.dll_ShowWindow]
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 0x4203de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48fcf4]
jne 0x4203e8
repz ret
jmp fcn.00427090
Function at 0x4244a8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004188d7
and dword [ebp - 4], 0
cmp dword [0x492800], 0
mov ebx, eax
jne 0x424559
push 0x482dc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42460a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x482db4
push edi
call esi
test eax, eax
je 0x42460a
push eax
call fcn.00418865
mov dword [esp], 0x482da4
push edi
mov dword [0x492800], eax
call esi
push eax
call fcn.00418865
mov dword [esp], 0x482d90
push edi
mov dword [0x492804], eax
call esi
push eax
call fcn.00418865
mov dword [esp], 0x482d74
push edi
mov dword [0x492808], eax
call esi
push eax
call fcn.00418865
pop ecx
mov dword [0x492810], eax
test eax, eax
je 0x424559
push 0x482d5c
push edi
call esi
push eax
call fcn.00418865
pop ecx
mov dword [0x49280c], eax
mov eax, dword [0x49280c]
cmp eax, ebx
je 0x4245b1
cmp dword [0x492810], ebx
je 0x4245b1
push eax
call fcn.004188e0
push dword [0x492810]
mov esi, eax
call fcn.004188e0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4245b1
test edi, edi
je 0x4245b1
call esi
test eax, eax
je 0x4245a8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4245a8
test byte [ebp - 0xc], 1
jne 0x4245b1
or dword [ebp + 0x10], 0x200000
jmp 0x4245ea
mov eax, dword [0x492804]
cmp eax, ebx
je 0x4245ea
push eax
call fcn.004188e0
pop ecx
test eax, eax
je 0x4245ea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4245ea
mov eax, dword [0x492808]
cmp eax, ebx
je 0x4245ea
push eax
call fcn.004188e0
pop ecx
test eax, eax
je 0x4245ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x492800]
call fcn.004188e0
pop ecx
test eax, eax
je 0x42460a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42460c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435e8f
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
xor esi, esi
push edi
mov dword [esp + 0x3c], esi
cmp word [eax], si
je 0x435fb8
push esi
push esi
push 3
push esi
push esi
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x435ed2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
push 0x481a00
push 0
push 0
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x435ec6
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [ebp], 0
mov eax, dword [esp + 0x44]
jne 0x435f8d
cmp dword [eax], 0
jne 0x435f8d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [ebp], ecx
mov dword [eax], edx
mov eax, dword [eax]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x40]
push 0x2000
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x435fbc
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x435fce
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x40]
push eax
push 0
mov dword [esi + 0x60], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
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 [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x436085
cmp byte [esp + 0x34], 0
je 0x43606a
push 0
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x17c], 0
jl 0x436085
cmp byte [edi + 0x188], 0
je 0x436085
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
ret 0x2c
Function at 0x436969
Capabilities:
Create process on windows

Disassembly:
push 0x44
push 0
push 0x4a4b98
call fcn.00414fc0
push 0x10
push 0
push 0x4a4b88
call fcn.00414fc0
mov ecx, dword [esp + 0x1c]
add esp, 0x18
push 0x4a4b88
push 0x4a4b98
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
mov eax, 1
push 0
mov dword [0x4a4b98], 0x44
mov dword [0x4a4bc4], 1
mov word [0x4a4bc8], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4369de
mov edx, dword [0x4a4b88]
mov dword [esp + 4], edx
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4

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 [sym.imp.USER32.dll_GetDC]
push ebx
mov ebp, eax
push edi
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebp
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x50]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
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 [sym.imp.GDI32.dll_BitBlt]
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 [sym.imp.GDI32.dll_GetDIBits]
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 [sym.imp.GDI32.dll_GetDIBits]
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
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 0x437285
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4373c9
nop
lea edx, [esp + 0x3c]
push 0x485f34
push edx
call fcn.004151ce
add esp, 8
test eax, eax
je 0x43730a
lea eax, [esp + 0x3c]
push 0x488e38
push eax
call fcn.004151ce
add esp, 8
test eax, eax
je 0x43730a
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
not edx
and eax, edx
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4373c2
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4372b5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp + 0x14]
test bl, bl
je 0x4373b7
lea edx, [esp + 0x10]
push edx
push 0x488e30
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4373b0
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x10], 0x10
je 0x4373a0
lea eax, [esp + 0x3c]
push 0x485f34
push eax
call fcn.004151ce
add esp, 8
test eax, eax
je 0x4373a0
lea ecx, [esp + 0x3c]
push 0x488e38
push ecx
call fcn.004151ce
add esp, 8
test eax, eax
je 0x4373a0
lea edx, [esp + 0x3c]
push edx
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00437285
test al, al
je 0x4373c2
push 0x488e38
call edi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x437345
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x437615
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x210]
push ecx
push 0
push 0x4863f8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add esp, 0x20c
ret 4

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 0x438dd5
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x438e85
jne 0x438df6
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret
cmp esi, 0xf
jae 0x438e7e
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x438e7e
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x48b538]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x438e1b
pop edi
pop esi
add esp, 0x28
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
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 0x439222
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20c
push 0x104
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00438e8b
lea edx, [esp + 0xc]
push edx
call fcn.0041503a
add esp, 0x10
test eax, eax
je 0x43925e
cmp word [esp + eax*2 - 2], 0x5c
lea eax, [esp + eax*2 - 2]
jne 0x43925e
xor ecx, ecx
mov word [eax], cx
push ebp
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x439307
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 2
jne 0x43929b
push 0
lea eax, [esp + 8]
push eax
call ebp
test eax, eax
je 0x4392a0
mov al, 1
pop ebp
add esp, 0x20c
ret
cmp eax, 3
jne 0x43930b
push esi
push edi
lea edi, [esp + 0xc]
call fcn.00411c60
mov esi, eax
push 0x5c
push esi
call fcn.00417566
add esp, 8
test eax, eax
jne 0x4392d1
push esi
call fcn.00412f61
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x20c
ret
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00439222
push esi
mov bl, al
call fcn.00412f61
add esp, 8
test bl, bl
je 0x4392fa
push 0
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
test al, 0x10
jne 0x439291
xor al, al
pop ebp
add esp, 0x20c
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43963f
test al, 0x10
je 0x43963f
mov al, 1
ret
xor al, al
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x439681
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x439676
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret