joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b81
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
and dword [ebp - 0x2b4], 0
push 0x2b0
lea eax, [ebp - 0x2b0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x111
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp - 0x2b4], 0
je 0x406bd8
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x2b0]
leave
ret 4

Function at 0x406c8d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, edi
call fcn.00406212
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x406d1a
cmp dword [ebp + 8], 0
je 0x406cd8
mov eax, dword [ebp - 4]
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x406cd8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
ja 0x406d1a
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 8]
jl 0x406cec
test byte [esi + 0x10], 0x20
je 0x406d1a
sub ebx, dword [ebp - 8]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push edi
mov eax, ebx
call fcn.004069ee
test eax, eax
je 0x406d0f
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00406bfe
test eax, eax
jne 0x406d24
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x406cb5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, ebx
jmp 0x406d1d

Function at 0x407258
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.0040e200
push ebx
push esi
mov esi, 0x7fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x8003]
push ebx
push eax
mov byte [ebp - 0x8004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x8004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x8004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x8004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x4072c7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040e200
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x40855d
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2d4], ebx
push edi
je 0x40862c
cmp dword [esi + 0x2dc], ebx
je 0x4085ee
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2c8], eax
push eax
jmp 0x40861d
call fcn.00404ad7
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x2c8]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x2c0]
call ebp
cmp dword [esi + 0x2d8], ebx
je 0x408671
call fcn.00404ad7
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x2cc]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push ebx
push 0x1003
push dword [esi + 0x2c0]
call ebp
call fcn.00404ad7
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
mov dword [esi + 0x2c4], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x2c4]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x2c4]
call edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x2c4]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x14]
call edi
mov eax, dword [esi + 0x2c4]
mov esi, dword [esi + 0x2c0]
push eax
push ebx
push 0x1208
push esi
call fcn.00402925
pop ecx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x408e22
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 0x2bc]
cmp word [esp + 0x10], ax
push edi
jb 0x408e75
movzx edi, word [esp + 0x14]
movzx eax, ax
add eax, dword [esi + 0x2f8]
cmp edi, eax
jge 0x408e75
push 0x10
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x408e58
inc ebx
movzx ecx, word [esi + 0x2bc]
push ebx
mov eax, edi
push 0
sub eax, ecx
call fcn.0040675d
call fcn.00408e7e
xor eax, eax
inc eax
jmp 0x408e77
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x40a21a
Capabilities:
Open clipboard

Disassembly:
push esi
push 1
push 2
push 2
mov esi, eax
mov eax, dword [esi + 0x69c]
push 0x40f480
push eax
call fcn.0040a150
test eax, eax
je 0x40a264
mov eax, dword [esi + 0x69c]
mov eax, dword [eax + 0x2e4]
push edi
call fcn.00404d15
push dword [esi + 0x208]
mov edi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40a263
push edi
call fcn.00403cba
pop ecx
pop edi
pop esi
ret

Function at 0x40bca1
Capabilities:
Terminate process

Disassembly:
cmp dword [0x413454], 2
jne 0x40bcb2
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
ret
Function at 0x40cea6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.0040e200
cmp dword [ebp + 8], 0
je 0x40cf0b
test esi, esi
je 0x40cef9
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x40cef9
and word [ebp - 0x20000], 0
push esi
push 0x410acc
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x40cefd
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret

Function at 0x40cf23
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0040e200
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x40cf82
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00404587
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x40cfc3
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x40f480
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00404610
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40cfc9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40cfe7
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ce59
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x40d5fc
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 0x18], 0
jne 0x40d664
push edi
push str.advapi32.dll
call fcn.00404a52
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], 0x410c18
push eax
mov dword [esi + 0x18], eax
call edi
push str.ProcessTrace
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.ControlTraceW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.StartTraceW
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.CloseTraceW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
push str.EnableTraceEx2
push dword [esi + 0x18]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
pop edi
ret
Function at 0x40dcf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x40de82
push ebx
mov eax, edi
call fcn.00405108
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x40f9ac
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40dd73
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ddc2
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x40f480
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.0040dc61
test eax, eax
jne 0x40ddd2
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x410d0c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.0040dc61
push 0x410d24
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.0040dc61
push 0x410d44
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.0040dc61
push 0x410d5c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.0040dc61
push 0x410d7c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.0040dc61
push 0x410d94
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.0040dc61
push 0x410db0
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.0040dc61
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.0040dc61
xor esi, esi
push ebx
inc esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x40df70
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40f430
call fcn.0040e180
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40dfab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dfab
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40dfc3
cmp eax, 0x20b
je 0x40dfb0
mov dword [ebp - 0x1c], edi
jmp 0x40dfd7
cmp dword [ecx + 0x84], 0xe
jbe 0x40dfab
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40dfd1
cmp dword [ecx + 0x74], 0xe
jbe 0x40dfab
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x414984], 0xffffffff
or dword [0x414988], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41344c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x413448]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x414980], eax
call fcn.004025f3
cmp dword [section..data], edi
jne 0x40e034
push fcn.004025f3
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040e16c
push 0x40f400
push 0x40f3fc
call sub.msvcrt.dll__initterm
mov eax, dword [0x413444]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x413440]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x40f3f8
push 0x40f3c4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40e09a
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40e154
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40e0e8
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40e0b6
cmp ax, 0x22
jne 0x40e0a3
cmp word [esi], 0x22
jne 0x40e0c1
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40e0cf
cmp ax, 0x20
jbe 0x40e0bc
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40e0f5
movzx eax, word [ebp - 0x48]
jmp 0x40e0f8
cmp word [esi], 0x20
jbe 0x40e0c1
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40e0e8
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40e119
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40e14e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040e1b9
ret
Function at 0x402889
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xa
mov edi, ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x402966
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x402966
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x402966
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x402966
push dword [ebp - 4]
push ebx
push edi
call fcn.0040c3e0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp - 8], esi
je 0x40292e
lea eax, [ebp - 0xc]
push eax
push 0x418498
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x402966
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 4
push esi
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_CopyImage]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x402968
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a22
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x415cd4
call fcn.0040cb20
sub esp, 0x158
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x405b21
cmp byte [eax], 0
je 0x405b21
push 0x41c470
call fcn.00403195
test eax, eax
jne 0x405b21
push 0x41cfd8
mov ecx, esi
call fcn.00403195
test eax, eax
jne 0x405b21
push edi
push 0x41cffc
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.004022df
and dword [ebp - 4], 0
lea ecx, [ebp - 0x164]
push ecx
mov ecx, eax
call fcn.004031e5
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov edi, eax
call fcn.00402ed0
test edi, edi
je 0x405b12
lea eax, [ebp - 0x138]
push eax
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.004022df
test byte [ebp - 0x164], 0x10
mov dword [ebp - 4], 1
je 0x405ade
cmp byte [ebp - 0x138], 0x2e
je 0x405aed
lea ecx, [ebp - 0x18]
call fcn.00405a22
jmp 0x405aed
lea ecx, [ebp - 0x18]
call fcn.004031e5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402ed0
lea eax, [ebp - 0x164]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405aaa
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
call fcn.004031e5
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x407344
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x28
mov edi, edx
mov ebx, ecx
call fcn.0040e3b6
mov esi, eax
test esi, esi
pop ecx
jne 0x407377
push str.out_of_dynamic_memory_in_yy_create_buffer__
push 0x41d038
push 0x41e3a0
call fcn.0040e0a6
add esp, 0xc
push 2
call fcn.0040dfb3
lea eax, [edi + 2]
push eax
mov dword [esi + 0xc], edi
call fcn.0040e3b6
test eax, eax
pop ecx
mov dword [esi + 4], eax
jne 0x4073a9
push str.out_of_dynamic_memory_in_yy_create_buffer__
push 0x41d038
push 0x41e3a0
call fcn.0040e0a6
add esp, 0xc
push 2
call fcn.0040dfb3
push 1
pop edi
mov ecx, esi
mov dword [esi + 0x14], edi
call fcn.004073c5
and dword [esi + 0x18], 0
mov dword [esi + 0x20], edi
pop edi
mov dword [esi], ebx
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4073f7
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebp, edx
cmp ebp, 2
push edi
mov edi, ecx
jb 0x40746d
xor ebx, ebx
cmp byte [edi + ebp - 2], bl
jne 0x40746d
cmp byte [edi + ebp - 1], bl
jne 0x40746d
push 0x28
call fcn.0040e3b6
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x40743e
push str.out_of_dynamic_memory_in_yy_scan_buffer__
push 0x41d038
push 0x41e3a0
call fcn.0040e0a6
add esp, 0xc
push 2
call fcn.0040dfb3
lea eax, [ebp - 2]
mov ecx, esi
mov dword [esi + 0xc], eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call fcn.004072cc
mov eax, esi
jmp 0x40746f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407474
Capabilities:
Terminate process

Disassembly:
xor edx, edx
cmp byte [ecx], dl
je 0x407481
inc edx
cmp byte [edx + ecx], 0
jne 0x40747a
jmp fcn.00407486
Function at 0x40baa6
Capabilities:
Create http request

Disassembly:
mov eax, 0x415fcc
call fcn.0040cb20
sub esp, 0xff4
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 4], esi
jne 0x40bb9b
push esi
push esi
push esi
push esi
push str.Wildfire
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, esi
mov dword [edi + 4], eax
jne 0x40bb9b
push ebx
call fcn.00403b51
lea ecx, [ebp - 0x24]
call fcn.0040bd03
mov edi, eax
push 0x41e164
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], esi
call fcn.00402e4c
mov esi, eax
push 0xa
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00404c04
mov ebx, eax
push str.Couldnt_initialise_wininet_service__
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00402e4c
push ebx
mov edx, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040389b
push esi
mov edx, eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0040389b
push edi
mov edx, eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.0040389b
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004031e5
push eax
lea ecx, [ebp - 0x830]
call fcn.00402337
push 0x7d0
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.0040c3e0
add esp, 0xc
push 0x41a3b8
lea eax, [ebp - 0x1000]
push eax
call fcn.0040cb3f
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40fb41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41e768
cmp edx, dword [eax]
je 0x40fb63
add eax, 8
inc ecx
cmp eax, 0x41e7f8
jl 0x40fb54
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41e768]
jne 0x40fc91
mov eax, dword [0x41f760]
cmp eax, 1
je 0x40fc6b
test eax, eax
jne 0x40fb94
cmp dword [0x41e334], 1
je 0x40fc6b
cmp edx, 0xfc
je 0x40fc91
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fbcb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040dd20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cb80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40fc0e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cb80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4181bc
push edi
call fcn.00412a70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040dd20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040dd30
lea eax, [ebp - 0xa0]
push 0x41819c
push eax
call fcn.0040dd30
push dword [esi + 0x41e76c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dd30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004129d8
add esp, 0x2c
pop edi
jmp 0x40fc91
lea eax, [ebp + 8]
lea esi, [esi + 0x41e76c]
push 0
push eax
push dword [esi]
call fcn.0040cb80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414a96
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret