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

Disassembly:
cmp ecx, dword [0x47617c]
jne 0x43e581
repz ret
jmp fcn.00447ecc

Function at 0x4450a4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4765a0]
je 0x4450bf
inc edi
cmp edi, 0x17
jb 0x4450b0
cmp edi, 0x17
jae 0x44523f
push ebp
push 3
call fcn.004514cf
cmp eax, 1
pop ecx
je 0x44520b
push 3
call fcn.004514cf
test eax, eax
pop ecx
jne 0x4450f3
cmp dword [0x47615c], 1
je 0x44520b
cmp ebx, 0xfc
je 0x44523e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x479c98
push ebp
call fcn.0043fbfb
add esp, 0xc
test eax, eax
je 0x445129
push esi
push esi
push esi
push esi
push esi
call fcn.00440345
add esp, 0x14
push 0x104
mov esi, 0x479cb1
push esi
push 0
mov byte [0x479db5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44516d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043fbfb
add esp, 0xc
test eax, eax
je 0x44516d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00440345
add esp, 0x14
push esi
call fcn.00448be0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4451b2
push esi
call fcn.00448be0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x479fac
push 0x466614
sub ecx, eax
push ecx
push eax
call fcn.0043fe4b
add esp, 0x14
test eax, eax
je 0x4451b2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00440345
add esp, 0x14
jmp 0x4451b4
xor esi, esi
push 0x466610
push ebx
push ebp
call fcn.00440198
add esp, 0xc
test eax, eax
je 0x4451d4
push esi
push esi
push esi
push esi
push esi
call fcn.00440345
add esp, 0x14
push dword [edi*8 + 0x4765a4]
push ebx
push ebp
call fcn.00440198
add esp, 0xc
test eax, eax
je 0x4451f6
push esi
push esi
push esi
push esi
push esi
call fcn.00440345
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00451312
add esp, 0xc
jmp 0x44523e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44523e
cmp ebp, 0xffffffff
je 0x44523e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4765a4]
push dword [esi]
call fcn.00448be0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x451312
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00445c54
xor ebx, ebx
cmp dword [0x47a7a0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4513e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4514c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4514c8
push eax
call fcn.00445be6
mov dword [esp], 0x4679dc
push edi
mov dword [0x47a7a0], eax
call esi
push eax
call fcn.00445be6
mov dword [esp], 0x4679c8
push edi
mov dword [0x47a7a4], eax
call esi
push eax
call fcn.00445be6
mov dword [0x47a7a8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004425f0
test eax, eax
pop ecx
pop ecx
je 0x4513b6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00440345
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4513e8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00445be6
cmp eax, ebx
pop ecx
mov dword [0x47a7b0], eax
je 0x4513e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00445be6
pop ecx
mov dword [0x47a7ac], eax
mov eax, dword [0x47a7ac]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45146d
cmp dword [0x47a7b0], ecx
je 0x45146d
push eax
call fcn.00445c5d
push dword [0x47a7b0]
mov esi, eax
call fcn.00445c5d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45146d
cmp edi, ebx
je 0x45146d
call esi
cmp eax, ebx
je 0x45143a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45143a
test byte [ebp - 0x18], 1
jne 0x45146d
lea eax, [ebp - 0x10]
push eax
call fcn.00442627
test eax, eax
pop ecx
je 0x451455
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00440345
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x451464
or dword [ebp + 0x10], 0x200000
jmp 0x4514a8
or dword [ebp + 0x10], 0x40000
jmp 0x4514a8
mov eax, dword [0x47a7a4]
cmp eax, dword [ebp - 8]
je 0x4514a8
push eax
call fcn.00445c5d
cmp eax, ebx
pop ecx
je 0x4514a8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4514a8
mov eax, dword [0x47a7a8]
cmp eax, dword [ebp - 8]
je 0x4514a8
push eax
call fcn.00445c5d
cmp eax, ebx
pop ecx
je 0x4514a8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47a7a0]
call fcn.00445c5d
cmp eax, ebx
pop ecx
je 0x4514c8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4514ca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x15001000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
test edi, edi
mov esi, ecx
je 0x15001010
mov eax, dword [edi]
mov cl, byte [esp + 0x10]
test cl, 1
je 0x1500101c
or eax, 0xffffffff
test cl, 2
je 0x15001050
test edx, edx
je 0x15001050
push ebx
jmp 0x15001030
movzx ebx, byte [esi]
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + section..data]
sub edx, 1
add esi, 1
test edx, edx
jne 0x15001030
pop ebx
test cl, 4
je 0x15001057
not eax
test edi, edi
je 0x1500105d
mov dword [edi], eax
pop edi
pop esi
ret 8

Function at 0x15001150
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
add dword [esi + 4], 1
cmp dword [esi], 0
je 0x15001163
mov eax, 1
pop esi
ret
push ebx
push edi
push 0x1504ba70
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1504ba70
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1500125d
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StackWalk
push edi
call ebx
test eax, eax
mov dword [esi + 8], eax
je 0x15001256
push str.SymFunctionTableAccess
push edi
call ebx
test eax, eax
mov dword [esi + 0xc], eax
je 0x15001256
push str.SymGetLineFromAddr
push edi
call ebx
test eax, eax
mov dword [esi + 0x10], eax
je 0x15001256
push str.SymGetModuleBase
push edi
call ebx
test eax, eax
mov dword [esi + 0x14], eax
je 0x15001256
push str.SymGetModuleInfo
push edi
call ebx
test eax, eax
mov dword [esi + 0x18], eax
je 0x15001256
push str.SymGetOptions
push edi
call ebx
test eax, eax
mov dword [esi + 0x1c], eax
je 0x15001256
push str.SymGetSymFromAddr
push edi
call ebx
test eax, eax
mov dword [esi + 0x20], eax
je 0x15001256
push str.SymInitialize
push edi
call ebx
test eax, eax
mov dword [esi + 0x24], eax
je 0x15001256
push str.SymCleanup
push edi
call ebx
test eax, eax
mov dword [esi + 0x28], eax
je 0x15001256
push str.SymSetOptions
push edi
call ebx
test eax, eax
mov dword [esi + 0x2c], eax
je 0x15001256
push str.SymEnumerateModules
push edi
call ebx
test eax, eax
mov dword [esi + 0x30], eax
je 0x15001256
push str.SymEnumerateSymbols
push edi
call ebx
test eax, eax
mov dword [esi + 0x34], eax
jne 0x15001279
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1504ba70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1504ba70
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop ebx
xor eax, eax
pop esi
ret
push str.MiniDumpWriteDump
push edi
call ebx
push 0x1504ba70
mov dword [esi + 0x38], eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, 1
pop esi
ret
Function at 0x15001740
Capabilities:
Get session user name

Disassembly:
sub esp, 0x10c
mov eax, dword [0x15049cf8]
xor eax, esp
mov dword [esp + 0x108], eax
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 8], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x1500178e
mov edx, dword [str._unknown_]
mov eax, dword [0x15041690]
mov cx, word [0x15041694]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov word [esp + 0xc], cx
lea edx, [esp + 4]
push edx
push str.User:
push str.__10s_s
push edi
call esi
mov ecx, dword [esp + 0x118]
add esp, 0x10
xor ecx, esp
call fcn.1503831e
add esp, 0x10c
ret

Function at 0x150017c0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x18
mov eax, dword [0x15049cf8]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x15001808
mov edx, dword [str._unknown_]
mov eax, dword [0x15041690]
mov cx, word [0x15041694]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov word [esp + 0xc], cx
lea edx, [esp + 4]
push edx
push str.Computer:
push str.__10s_s
push edi
call esi
mov ecx, dword [esp + 0x24]
add esp, 0x10
xor ecx, esp
call fcn.1503831e
add esp, 0x18
ret

Function at 0x15001aa0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push edi
mov ebx, eax
push ebx
push str._unknown_
push ebp
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0x1c
lea edx, [esp + 0x10]
push edx
mov dword [eax], 0
push edi
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x15001b8e
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x15001af7
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x15001b1b
push ebx
push str._unknown_
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
test esi, esi
je 0x15001b8d
cmp word [esi], 0x5a4d
jne 0x15001b8d
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x15001b8d
add eax, esi
cmp dword [eax], 0x4550
jne 0x15001b8d
movzx ebp, word [eax + 6]
movzx ecx, word [eax + 0x14]
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x15001b8d
lea eax, [ecx + 0x10]
mov edi, edi
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x15001b5e
mov ecx, edx
cmp edi, esi
jb 0x15001b68
add ecx, esi
cmp edi, ecx
jbe 0x15001b7c
add ebx, 1
add eax, 0x28
cmp ebx, ebp
jb 0x15001b50
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add ebx, 1
sub edi, esi
mov dword [edx], ebx
mov dword [eax], edi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x15002890
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x1504ba8c
jmp fcn.15001150
Function at 0x15002e10
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push 0x1504ba88
mov esi, edx
mov edi, ecx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x15002e84
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push 0x15002cc0
push ebx
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x15002e84
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x1c]
push 0x1504ba88
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret 8

Function at 0x15004d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1503fa48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x15049cf8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
push 0x15003240
push 0x15003640
push 0x10
push 0x14
lea ebx, [esi + 0x14]
push ebx
mov dword [esp + 0x30], edi
call fcn.1503857e
mov dword [ebx + 0x140], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], edi
mov dword [esi + 0x160], edi
mov dword [esi + 0x164], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x150083b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x31c
mov eax, dword [0x15049cf8]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push ebp
mov ebp, dword [esp + 0x328]
push esi
mov ebx, ecx
xor eax, eax
cmp ebx, 8
push edi
mov edi, edx
mov byte [esp + 0x10], 0
mov esi, 0x100
mov word [esp + 0x13], ax
jne 0x150083ff
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], 1
mov word [esp + 0x15], si
mov byte [esp + 0x17], 0x18
jmp 0x15008414
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 2
xor eax, eax
mov cx, word [esp + 0x338]
mov dx, word [esp + 0x33c]
mov word [esp + 0x1c], cx
cmp ebx, 0x20
setne cl
sub cl, 1
push eax
mov word [esp + 0x22], dx
lea edx, [esp + 0x28]
push edx
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
and ecx, 8
push 0x12
lea eax, [esp + 0x1c]
and cl, 0xf
push eax
or cl, 0x20
push ebp
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], cl
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, 8
jne 0x150084b5
mov eax, dword [esp + 0x334]
lea ecx, [esp + 0x29]
add eax, 1
lea esp, [esp]
movzx edx, byte [eax + 1]
mov byte [ecx - 1], dl
movzx edx, byte [eax]
mov byte [ecx], dl
movzx edx, byte [eax - 1]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
sub esi, 1
jne 0x15008480
push esi
lea eax, [esp + 0x28]
push eax
push 0x300
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
imul esi, dword [esp + 0x338]
cmp dword [esp + 0x340], esi
jne 0x150084ee
imul esi, dword [esp + 0x33c]
push 0
lea edx, [esp + 0x28]
push edx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1500851c
mov ebx, dword [esp + 0x33c]
test ebx, ebx
je 0x1500851c
lea esp, [esp]
push 0
lea eax, [esp + 0x28]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [esp + 0x340]
sub ebx, 1
jne 0x15008500
mov ecx, dword [esp + 0x328]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1503831e
add esp, 0x31c
ret 0x14
Function at 0x150086f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x398
mov eax, dword [0x15049cf8]
xor eax, esp
mov dword [esp + 0x394], eax
mov eax, dword [esp + 0x3a0]
push ebp
mov ebp, dword [esp + 0x3a8]
push esi
push edi
push 0x80
mov edi, ecx
lea ecx, [esp + 0x324]
push 0
push ecx
mov dword [esp + 0x18], eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [ebp - 1]
mov word [esp + 0x330], dx
push 0x80
lea eax, [edi - 1]
lea edx, [esp + 0x32c]
mov word [esp + 0x336], ax
mov eax, 0x48
push edx
push ebx
mov word [esp + 0x334], 0x50a
mov byte [esp + 0x336], 1
mov byte [esp + 0x337], 8
mov word [esp + 0x340], ax
mov word [esp + 0x342], ax
mov byte [esp + 0x375], 1
mov word [esp + 0x376], bp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, ebp
imul eax, edi
push 0
push 0x4eb
push str..SBmp.cpp
add eax, eax
push eax
call sym.Storm.dll_Ordinal_401
test edi, edi
mov ecx, dword [esp + 0xc]
mov esi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
jle 0x150087ec
mov dword [esp + 0x14], edi
lea edx, [esp + 0xc]
push edx
mov eax, ebp
lea edi, [esp + 0x14]
call fcn.15008690
sub dword [esp + 0x14], 1
jne 0x150087d1
mov eax, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x1c]
push ecx
sub eax, esi
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x4f2
push str..SBmp.cpp
push esi
call sym.Storm.dll_Ordinal_403
mov eax, dword [esp + 0x3a8]
mov byte [esp + 0x1c], 0xc
lea ecx, [esp + 0x1e]
add eax, 2
mov esi, 0x100
jmp 0x15008830
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
sub esi, 1
jne 0x15008830
push esi
lea eax, [esp + 0x1c]
push eax
push 0x301
lea ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x3a0]
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
xor ecx, esp
call fcn.1503831e
add esp, 0x398
ret 0xc
Function at 0x15008d60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x43c
push ebx
push ebp
mov ebp, dword [esp + 0x450]
push esi
mov esi, edi
imul esi, ebp
mov ebx, eax
xor eax, eax
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
lea ecx, [esp + 0x10]
push ecx
lea eax, [esi + 0x436]
push 0xe
lea edx, [esp + 0x1c]
mov dword [esp + 0x1e], eax
mov eax, dword [esp + 0x458]
push edx
push eax
mov word [esp + 0x24], 0x4d42
mov dword [esp + 0x2e], 0x436
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], eax
mov eax, 0x100
push 0x28
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x458]
push edx
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x40], 1
mov word [esp + 0x42], 8
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x48]
lea ebp, [esp + 0x49]
xor ecx, ecx
sub esi, ebx
lea eax, [ebx + 2]
sub ebp, ebx
lea esp, [esp]
movzx edx, byte [eax - 2]
mov byte [esi + eax], dl
movzx edx, byte [eax - 1]
mov byte [esp + ecx*4 + 0x49], dl
movzx edx, byte [eax]
mov byte [esp + ecx*4 + 0x48], dl
mov byte [eax + ebp], 0
add ecx, 1
add eax, 4
cmp ecx, 0x100
jl 0x15008e50
mov edx, dword [esp + 0x44c]
push 0
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
and eax, 3
mov ebp, edi
je 0x15008ea5
sub ebp, eax
add ebp, 4
mov esi, ebp
imul esi, dword [esp + 0x454]
push 0
push 0x294
push str..SBmp.cpp
push esi
call sym.Storm.dll_Ordinal_401
push edi
mov ebx, eax
mov eax, dword [esp + 0x454]
push ebp
push esi
push eax
mov eax, dword [esp + 0x464]
mov ecx, ebx
call fcn.15008540
mov edx, dword [esp + 0x44c]
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x29c
push str..SBmp.cpp
push ebx
call sym.Storm.dll_Ordinal_403
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x43c
ret 0xc
Function at 0x15009200
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x320
mov eax, dword [0x15049cf8]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [esp + 0x328]
push ebx
push ebp
mov ebp, dword [esp + 0x334]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ebx, ecx
lea ecx, [esp + 0x14]
push ecx
push 0xd
lea edx, [esp + 0x324]
push edx
push esi
mov dword [esp + 0x28], eax
mov byte [esp + 0x32c], 0x47
mov byte [esp + 0x32d], 0x49
mov byte [esp + 0x32e], 0x46
mov byte [esp + 0x32f], 0x38
mov byte [esp + 0x330], 0x37
mov byte [esp + 0x331], 0x61
mov word [esp + 0x332], bp
mov word [esp + 0x334], bx
mov byte [esp + 0x336], 0xf7
mov byte [esp + 0x337], 0
mov byte [esp + 0x338], 0
call edi
mov eax, dword [esp + 0x330]
lea ecx, [esp + 0x19]
add eax, 2
mov dword [esp + 0x10], 0x100
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
sub dword [esp + 0x10], 1
jne 0x150092b3
push 0
lea eax, [esp + 0x14]
push eax
push 0x300
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x1b]
push eax
push esi
mov byte [esp + 0x23], 0x2c
call edi
xor eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 0xa
lea edx, [esp + 0x324]
push edx
push esi
mov word [esp + 0x32c], ax
mov word [esp + 0x32e], ax
mov word [esp + 0x330], bp
mov word [esp + 0x332], bx
mov byte [esp + 0x334], al
mov byte [esp + 0x335], 8
call edi
imul ebp, ebx
push 0
push 0x3e8
push str..SBmp.cpp
lea eax, [ebp + ebp]
push eax
call sym.Storm.dll_Ordinal_401
mov ecx, dword [esp + 0x14]
push ecx
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.15009060
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebx
push esi
call edi
push 0
push 0x3ee
push str..SBmp.cpp
push ebx
call sym.Storm.dll_Ordinal_403
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1b]
push ecx
push esi
mov byte [esp + 0x23], 0
call edi
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1b]
push eax
push esi
mov byte [esp + 0x23], 0x3b
call edi
mov ecx, dword [esp + 0x328]
pop edi
pop ebp
pop ebx
mov eax, 1
xor ecx, esp
call fcn.1503831e
add esp, 0x320
ret 0xc
Function at 0x1500a080
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push edi
push 0
push 0x8000000
push 3
push 0
push 1
mov ebx, eax
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1500a0c2
test ebp, ebp
je 0x1500a0b9
push ebp
mov edi, 0x6e
call fcn.15009f50
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x153
mov ebx, eax
push str..SCmd.cpp
lea eax, [ebx + 1]
push eax
call sym.Storm.dll_Ordinal_401
push 0
lea ecx, [esp + 0x28]
push ecx
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push ebp
push eax
mov byte [edx + esi], 0
mov edx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.1500ab30
push 0
push 0x164
push str..SCmd.cpp
push esi
mov edi, eax
call sym.Storm.dll_Ordinal_403
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x1500ec00
Capabilities:
Enumerate files on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x104]
test eax, eax
jne 0x1500ec48
lea eax, [esi + 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x104], eax
je 0x1500ec80
lea eax, [esi + 0x248]
lea ecx, [esi + 0x134]
mov esi, eax
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x1500ec38
pop esi
ret 4
lea ecx, [esi + 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1500ec80
lea eax, [esi + 0x248]
lea ecx, [esi + 0x134]
mov esi, eax
sub esi, ecx
lea ebx, [ebx]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x1500ec70
pop esi
ret 4
xor eax, eax
pop esi
ret 4