joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e983
Capabilities:
Get graphical window text

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

Function at 0x480075
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 0x4800b7
call fcn.00485f25
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4800b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4800ae
xor eax, eax
jmp 0x4800bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004800c5
pop edi
pop esi
pop ebx
ret 4

Function at 0x486455
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 0x486483
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4864a1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004863bb
jmp 0x4864a1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4864a1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004863bb
test edi, edi
mov eax, edi
jne 0x48648b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403bf2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov word [ebp - 8], 0
push 0x40a304
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406733
add esp, 0xc
test eax, eax
je 0x403c21
mov eax, 1
jmp 0x403ccb
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 1
push 2
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x403c5d
mov edx, dword [ebp - 8]
and edx, 0xffff
cmp edx, 0xfffe
jne 0x403c5d
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x403cc9
cmp dword [ebp - 4], 1
jne 0x403c7f
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp ecx, 0xfeff
jne 0x403c7f
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
jmp 0x403cc9
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 4
push 0x4000
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__setmode]
add esp, 8
cmp eax, 0xffffffff
jne 0x403cc9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
jmp 0x403ccb
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x404daa
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push 0x40
lea eax, [ebp - 0x80]
push eax
push str.username
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x404dde
mov word [0x40aa00], 0
jmp 0x404df0
lea ecx, [ebp - 0x80]
push ecx
push 0x40aa00
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x404df4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], str.OSQLUSER
mov dword [ebp - 0xc], str.OSQLPASSWORD
mov dword [ebp - 8], str.OSQLSERVER
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x404e29
cmp dword [ebp - 0x18], 1
je 0x404e39
cmp dword [ebp - 0x18], 2
je 0x404e49
jmp 0x404e57
mov dword [ebp - 4], 0x40bd80
mov dword [ebp - 0x14], 0x80
jmp 0x404e57
mov dword [ebp - 4], 0x40bb20
mov dword [ebp - 0x14], 0x80
jmp 0x404e57
mov dword [ebp - 4], 0x40c0c0
mov dword [ebp - 0x14], 0x3d
mov ecx, dword [ebp - 4]
mov word [ecx], 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + ecx*4 - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404e82
xor eax, eax
jmp 0x404eab
cmp dword [ebp + 8], 1
jne 0x404ea6
push 0x40a480
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x404ea6
mov ecx, dword [ebp - 4]
mov word [ecx], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40538e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
push 0x40a548
push 0x40c140
lea eax, [ebp - 8]
push eax
call fcn.00406733
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x4053e9
push 0x100
push 0x40ad00
push 0x1f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0040615e
push 0x40c140
push 0x40ad00
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
jmp 0x40553c
mov ecx, dword [0x40c13c]
mov dword [ecx + 4], 0
mov word [0x40a014], 1
mov edx, dword [ebp - 8]
push edx
push 0x3e8
push 0x40b140
call dword [sym.imp.MSVCRT.dll_fgetws]
add esp, 0xc
test eax, eax
je 0x405524
push 0xa
push 0x40b140
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40543f
mov eax, dword [ebp - 4]
mov word [eax], 0
cmp dword [0x40a010], 0
je 0x40547b
xor ecx, ecx
mov cx, word [0x40a014]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x40a54c
mov ax, word [0x40a014]
add ax, 1
mov word [0x40a014], ax
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x405482
mov dword [ebp - 0x10], 1
call fcn.0040630c
test eax, eax
je 0x4054a0
push 0x40b140
push str._s_r_n
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
jmp 0x4054b3
push 0x40b140
push 0x40a564
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x40b140
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x3e7
je 0x4054f9
cmp dword [0x40a944], 0
je 0x4054e6
push 0x40a56c
push 0x40b140
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
jmp 0x4054f9
push 0x40a570
push 0x40b140
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0xfffffffffffffffd
push 0x40b140
push 0x40c13c
call fcn.00405cc6
add esp, 0xc
mov cx, word [0x40b128]
add cx, 1
mov word [0x40b128], cx
jmp 0x4053ff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x40c140
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esp, ebp
pop ebp
ret
Function at 0x4057e8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7dc
push edi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
push 0
push 0x405705
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp dword [0x40a944], 0
jne 0x405845
cmp dword [ebp + 8], 0xffffffff
jne 0x405845
cmp dword [0x40a97c], 0x7f
je 0x405845
mov dword [ebp + 8], 1
jmp 0x405870
cmp dword [0x40a944], 0
jne 0x405870
cmp dword [0x40a97c], 0x7f
jne 0x405870
cmp dword [0x40a980], 0
jl 0x405870
cmp dword [0x40a980], 0xa
jg 0x405870
mov dword [ebp + 8], 0
cmp dword [ebp + 8], 0xffffffff
je 0x405939
cmp dword [0x40a9ac], 0
je 0x405939
xor edx, edx
mov dx, word [0x40b920]
test edx, edx
je 0x405939
mov word [ebp - 0x7d4], 0
mov ecx, 0x1f3
xor eax, eax
lea edi, [ebp - 0x7d2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x7dc], 0
mov dword [ebp - 0x7d8], 0
push str.___call_master.dbo.sp_bindsession_NULL_
lea eax, [ebp - 0x7d4]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x7d8]
push ecx
push 0
lea edx, [ebp - 0x7dc]
push edx
push 0
push 0
push 4
push 0xfffffffffffffff0
push 4
push 1
mov eax, dword [0x40a9ac]
push eax
call sub.ODBC32.dll_SQLBindParameter
mov word [ebp - 4], ax
push 0xfffffffffffffffd
lea ecx, [ebp - 0x7d4]
push ecx
mov edx, dword [0x40a9ac]
push edx
call sub.ODBC32.dll_SQLExecDirectW
mov word [ebp - 4], ax
movsx eax, word [ebp - 4]
cmp eax, 0xffffffff
jne 0x405939
mov ecx, dword [0x40a9ac]
push ecx
push 3
call fcn.00405dce
add esp, 8
cmp dword [0x40a9ac], 0
je 0x40596d
mov edx, dword [0x40a9ac]
push edx
call sub.ODBC32.dll_SQLCancel
mov word [ebp - 4], ax
mov eax, dword [0x40a9ac]
push eax
push 3
call sub.ODBC32.dll_SQLFreeHandle
mov word [ebp - 4], ax
mov dword [0x40a9ac], 0
cmp dword [0x40a9a8], 0
je 0x4059a2
mov ecx, dword [0x40a9a8]
push ecx
call sub.ODBC32.dll_SQLDisconnect
mov word [ebp - 4], ax
mov edx, dword [0x40a9a8]
push edx
push 2
call sub.ODBC32.dll_SQLFreeHandle
mov word [ebp - 4], ax
mov dword [0x40a9a8], 0
cmp dword [0x40a9a4], 0
je 0x4059c6
mov eax, dword [0x40a9a4]
push eax
push 1
call sub.ODBC32.dll_SQLFreeHandle
mov word [ebp - 4], ax
mov dword [0x40a9a4], 0
cmp dword [0x40a9c4], 0
je 0x4059e6
mov ecx, dword [0x40a9c8]
cmp ecx, dword [0x40a9c4]
jl 0x4059e6
mov edx, dword [0x40a9c8]
mov dword [ebp + 8], edx
cmp dword [0x40a9cc], 0
je 0x405a08
mov eax, dword [0x40a9cc]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [0x40a9cc], 0
cmp dword [0x40c13c], 0
je 0x405a2b
mov ecx, dword [0x40c13c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [0x40c13c], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406372
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x40a6cc
cmp dword [ebp + 0xc], 0
je 0x40647a
cmp dword [ebp + 0x10], 1
jne 0x40647a
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.MSVCRT.dll__wmktemp]
add esp, 4
push 0x40a6e0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00406733
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x4063e4
mov eax, 0x80004005
jmp 0x406489
push 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__dup2]
add esp, 8
test eax, eax
jne 0x406408
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040648d
add esp, 4
jmp 0x40640f
mov dword [ebp - 8], 0x80004005
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x20
push edx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
call fcn.004064db
add esp, 0xc
mov dword [ebp - 8], eax
push 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__dup2]
add esp, 8
test eax, eax
je 0x406454
mov dword [ebp - 8], 0x80004005
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x40bc24], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406486
mov eax, dword [ebp + 8]
push eax
call fcn.0040648d
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40648d
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
cmp dword [0x40a988], 0
je 0x4064ae
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__wsystem]
add esp, 4
jmp 0x4064d7
push 0x3e8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3e8]
push edx
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_system]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4064db
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jge 0x40651d
mov dword [ebp - 8], 0x80004005
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x406694
cmp dword [ebp - 8], 0x80004005
je 0x406694
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40658f
push 0xfaf
push 0x40a6e8
push 0x40a704
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x4065c7
push 0xfb2
push 0x40a71c
push str.count__1
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
mov eax, dword [ebp - 4]
shl eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4065f7
push 0xfb5
push 0x40a744
push str.NULL___lpWideCharStr
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
mov edx, dword [ebp - 4]
shl edx, 1
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 2
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x10]
je 0x406652
push 0xfbf
push 0x40a778
push str.count__cchWideCharStr
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
cmp dword [ebp - 0x10], 0
jne 0x40665f
mov dword [ebp - 8], 0x80004005
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x406c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
cmp dword [0x40bc24], 0
jne 0x406c79
push 0x98
push 0x40a7e8
push str.NULL___hConsoleOutput
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
call fcn.0040630c
test eax, eax
je 0x406cac
push 0
push 0x40a9d4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x40bc24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x406cc7
push 0x40a9d4
mov eax, dword [0x40bc24]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 1
call fcn.00406cc9
add esp, 0x14
pop ebp
ret

Function at 0x406cc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x100
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0xffffffff
jne 0x406cfd
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 1
cmp ecx, dword [ebp - 8]
jle 0x406d46
mov edx, dword [ebp + 0x10]
shl edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406d3d
push 0xc1
push 0x40a81c
push str.NULL___lpMultiByteStr
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
mov dword [ebp - 0xc], 1
jmp 0x406d4f
lea edx, [ebp - 0x10c]
mov dword [ebp - 4], edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], 0
je 0x406da4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x407091
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
call fcn.0040630c
test eax, eax
je 0x4070e2
push 0
push 0x40a9d0
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x40bc24]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x407100
push 0x40a9d0
mov edx, dword [0x40bc24]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
call fcn.00406cc9
add esp, 0x14
pop ebp
ret
Function at 0x408d60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409208
push 0x408e92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40c568], 0xffffffff
or dword [0x40c56c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40a9ec]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40a9e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40c570], eax
call fcn.00408e91
cmp dword [0x40a940], 0
jne 0x408de3
push 0x408e8e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00408e7c
push 0x40a00c
push 0x40a008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40a9e4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40a9e0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x40a004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x408c05
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411d74
push 0x411d6c
push str.FlsAlloc
push 0x1f
call fcn.00408b40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408c39
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f138]
call esi
jmp 0x408c3f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408c83
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411d84
push 0x411d7c
push str.FlsGetValue
push 0x21
call fcn.00408b40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408cba
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408cc2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411d8c
push 0x411d84
push str.FlsSetValue
push 0x22
call fcn.00408b40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408cfc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40a4d7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x417018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40a522
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040a672
test al, al
jne 0x40a51c
sub edx, 2
cmp edx, edi
jne 0x40a502
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40a544
lea eax, [edi + 2]
cmp edx, eax
je 0x40a544
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040a423
add esp, 0x10
jmp 0x40a63e
push esi
lea ecx, [ebp - 0x255]
call fcn.0040a672
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a587
push dword [ebp - 0x25c]
jmp 0x40a534
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40a5c4
cmp word [ebp - 0x226], 0
je 0x40a5e5
cmp word [ebp - 0x226], ax
jne 0x40a5c4
cmp word [ebp - 0x224], 0
je 0x40a5e5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040a423
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40a631
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40a59e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40a619
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40a63e
push 0x40a253
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040c3c0
add esp, 0x10
jmp 0x40a60e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402464
leave
ret

Function at 0x40de40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40de6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40de6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

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