joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [esp + 4], str.SoftwareWineMenuFiles
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x4010b0
mov eax, dword [ebp - 4]
leave
ret
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
xor eax, eax
leave
ret

Function at 0x4012c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathSkipRootW]
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 4
test eax, eax
je 0x401330
mov ebx, eax
movzx eax, word [eax]
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
test ax, ax
jne 0x401300
jmp 0x401330
add ebx, 2
je 0x401330
movzx eax, word [ebx]
test ax, ax
je 0x401330
cmp ax, 0x5c
jne 0x4012f3
xor eax, eax
mov word [ebx], ax
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, 0x5c
sub esp, 8
mov word [ebx], dx
add ebx, 2
jne 0x4012f8
lea esi, [esi]
nop
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, 1
sub esp, 8
test eax, eax
jne 0x40135b
xor edx, edx
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
sete dl
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x18
call dbg.open_menus_reg_key
test eax, eax
je 0x4013e1
cmp word [esi], 0
mov edi, eax
je 0x4013f4
mov eax, esi
add eax, 2
cmp word [eax], 0
jne 0x401390
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x4013a1
Function at 0x402190
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x4021a5
leave
ret
test byte [0x40d000], 2
jne 0x4021bb
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], global___func__.3
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x4021ae

Function at 0x402270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0x10], edx
movzx edx, word [edx]
test dx, dx
je 0x402352
lea edi, [eax + 2]
xor eax, eax
mov ecx, 0x10
lea esi, [esi]
nop
mov esi, eax
shr ax, 1
xor esi, edx
mov ebx, eax
xor bx, 0xa001
and esi, 1
cmovne eax, ebx
shr dx, 1
sub ecx, 1
jne 0x4022a0
add edi, 2
movzx edx, word [edi - 2]
test dx, dx
jne 0x402292
movzx ebx, ax
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call esi
mov dword [esp + 4], 0x2e
test eax, eax
lea edx, [eax + 2]
cmove edx, edi
mov edi, edx
mov dword [ebp - 0x10], edx
mov dword [esp], edx
call esi
mov edx, eax
sub edx, edi
sar edx, 1
test eax, eax
je 0x40232f
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], str._04X__.s._d
mov dword [esp + 0xc], eax
call dbg.heap_wprintf
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
je 0x402359
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402340
sub eax, dword [ebp - 0x10]
sar eax, 1
mov edx, eax
jmp 0x402305
xor ebx, ebx
jmp 0x4022cb
xor edx, edx
jmp 0x402305

Function at 0x4023f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, 0x800
push ebx
sub esp, 0x28
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x800
jmp 0x402429
cmp eax, 0xea
jne 0x402480
mov eax, dword [ebp - 0x10]
mov dword [esp], ebx
lea esi, [eax + eax]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, esi
call dbg.xmalloc
mov dword [esp + 0x1c], 0
mov ebx, eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x402410
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4026c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp - 0x10]
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
mov ecx, dword [sym.imp.advapi32.dll_RegGetValueW]
mov dword [esp + 4], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp], eax
mov dword [ebp - 0x18], ecx
call ecx
xor edx, edx
sub esp, 0x1c
test eax, eax
jne 0x40274e
mov eax, dword [ebp - 0x10]
call dbg.xmalloc
mov dword [esp + 0x18], edi
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x1c]
sub esp, 0x1c
test eax, eax
jne 0x402760
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
Function at 0x402d10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
xor esi, esi
push ebx
sub esp, 0x20
mov dword [ebp - 0x18], edx
mov dword [esp + 4], eax
mov dword [esp], str._smimeglobs
call dbg.heap_wprintf
mov dword [esp + 4], 0x40f6ea
mov dword [ebp - 0x1c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wfopen]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x402e90
nop
test edi, edi
je 0x402e00
xor ebx, ebx
jmp 0x402d9a
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0xa
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
jne 0x402e20
add esi, esi
mov dword [esp], edi
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov edi, eax
test eax, eax
je 0x402ead
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, esi
sub eax, ebx
add ebx, edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fgets]
mov dword [esp], edi
test eax, eax
jne 0x402d60
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_feof]
test eax, eax
setne al
movzx eax, al
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fclose]
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x1000
call dbg.xmalloc
mov edi, eax
test eax, eax
je 0x402ea0
mov esi, 0x1000
jmp 0x402d58
mov byte [eax], 0
cmp byte [edi], 0x23
je 0x402d50
mov dword [esp + 4], 0x3a
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strchr]
mov ebx, eax
test eax, eax
je 0x402d50
mov eax, 0x10
call dbg.xmalloc
mov byte [ebx], 0
mov dword [ebp - 0x14], eax
mov eax, edi
call dbg.utf8_chars_to_wchars
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
lea eax, [ebx + 1]
call dbg.utf8_chars_to_wchars
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 4]
mov dword [edx + 4], eax
lea eax, [edx + 8]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov dword [ecx], eax
mov dword [ebx + 4], eax
jmp 0x402d50
mov esi, 1
mov ebx, dword [sym.imp.ucrtbase.dll_free]
jmp 0x402de5
xor esi, esi
mov ebx, dword [sym.imp.ucrtbase.dll_free]
jmp 0x402dd9
test byte [0x40d000], 2
jne 0x402ec3
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xrealloc
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x402eb6
Function at 0x40c460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x40c4b8
cmp byte [ebx + esi - 1], 0xa
je 0x40c48c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41b2a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x40cad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x40cc94
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x41b2a4]
cmp dword [edx + 0x24], edi
je 0x40cbb7
test byte [0x40d018], 8
jne 0x40cc40
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x40d028], 8
jne 0x40cc03
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40cb59
cmp esi, 3
jbe 0x40cbc2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40cb6a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x418220]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x40cb59
mov dword [esp], 0x40d028
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40cb30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40cb30
mov dword [esp], 0x40d018
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40cb1b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40cb23
mov eax, 0xffffffff
jmp 0x40cbb7

Function at 0x40cd00
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x40cd70
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40cdf6
cmp ax, 9
je 0x40cde4
cmp ax, 0x20
je 0x40cde4
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x40ce42
cmp ax, 0x22
je 0x40ce50
mov dword [ebp - 0x54], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x40cdf6
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40cda0
test edi, 1
jne 0x40cda0
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40cde4
cmp ax, 0x20
je 0x40cde4
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40ce62
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40cdbb
and dword [ebp - 0x54], 1
jne 0x40cdb4
xor edi, 1
jmp 0x40cdbb
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40ce0f
Function at 0x402278
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x404608
call fcn.004029fb
push 1
call fcn.00402540
pop ecx
test al, al
jne 0x40212f
push 7
call fcn.004027bd
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040250b
mov byte [ebp - 0x24], al
mov eax, dword [0x4063c4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x402128
test eax, eax
jne 0x402199
mov dword [0x4063c4], ecx
push 0x404164
push 0x404154
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40217c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402272
push 0x404150
push 0x404148
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4063c4], 2
jmp 0x40219e
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004026ad
pop ecx
call fcn.004027b1
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4021ce
push esi
call fcn.00402623
pop ecx
test al, al
je 0x4021ce
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004029f5
call esi
call fcn.004027b7
mov esi, eax
cmp dword [esi], edi
je 0x4021ec
push esi
call fcn.00402623
pop ecx
test al, al
je 0x4021ec
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.004028d3
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00402906
test al, al
jne 0x402217
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x402220
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004026ca
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402272
call fcn.00402a40
ret
call fcn.00401fc1
jmp 0x402110

Function at 0x438c92
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edi
and ecx, eax
and eax, ecx
call fcn.00438cc5
sub eax, ecx
xor dword [edx], edi
mov eax, ecx
inc edx
or eax, ecx
sub eax, 0x8a90334f
cmp edx, esi
jne fcn.00438c92
mov ecx, 0xf1dad9f1
sub eax, eax
ret
Function at 0x402800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x58
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00413db0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
movzx ecx, byte [ebp - 5]
test ecx, ecx
jne 0x402880
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00402b40
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x402880
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00431cf0
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 8
Function at 0x404720
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x404784
mov edx, dword [ebp - 0x14]
shr edx, 8
and edx, 0xffffff
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 0x14]
and ecx, 0xff
mov edx, dword [ecx*4 + 0x458060]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x404738
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x406500
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x406549
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406549
movzx eax, byte [ebp + 8]
test eax, eax
je 0x40653a
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x406549
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 4

Function at 0x407af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov dword [ebp - 0x808], ecx
mov ecx, dword [ebp - 0x808]
call fcn.00407bc0
mov eax, dword [ebp - 0x808]
cmp dword [eax], 0xffffffff
je 0x407bb4
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x407b2d
mov dword [ebp - 0x80c], 0xc00000
jmp 0x407b3c
mov edx, dword [ebp - 0x808]
mov eax, dword [edx + 4]
mov dword [ebp - 0x80c], eax
mov ecx, dword [ebp - 0x80c]
push ecx
push str._06X
lea edx, [ebp - 0x800]
push edx
call fcn.004359bd
add esp, 0xc
push 0x7fa
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x7fa]
push ecx
call fcn.00435db0
add esp, 0xc
mov byte [ebp - 1], 0
push 0
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x800]
push eax
call fcn.00435fa0
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x800]
push ecx
mov edx, dword [ebp - 0x808]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407bb4
mov ecx, dword [ebp - 0x808]
call fcn.00406fd0
mov esp, ebp
pop ebp
ret 8
Function at 0x409840
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fe4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040ca00
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x444d70
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.004015a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
call fcn.004015a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x30], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ad0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.004024f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004015c0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401ad0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
call fcn.004024f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004015c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4099b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x20], 0
je 0x4099d1
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x30]
test edx, edx
je 0x4099d6
jmp 0x409a6b
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409a6b
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x10]
jne 0x409a6b
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
jne 0x409a1c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x20], 0
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 0x64
div ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x409a47
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp + 0x14]
je 0x409a47
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [eax + 0x2c]
cmp ecx, dword [ebp - 0xc]
jbe 0x409a67
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x2c], eax
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00409a80
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x10