joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403860
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, ecx
push esi
test ebx, ebx
je 0x4039f9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4039f4
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
cmp dword [eax], 0x11
je 0x4039f4
call esi
cmp dword [eax], 2
jne 0x4039f9
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edi, eax
add esp, 4
test edi, edi
je 0x403901
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4038b0
sub esi, ecx
cmp esi, 0x104
jb 0x4038d8
push 0x17
push 0x41e524
push str.len_sizeof_buffer_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x4038dc
test esi, esi
je 0x403901
mov al, byte [esi + edi - 1]
cmp al, 0x2f
je 0x4038e8
cmp al, 0x5c
jne 0x4038f0
add esi, 0xffffffff
je 0x403901
nop dword [eax]
mov al, byte [edi + esi - 1]
cmp al, 0x2f
je 0x40393a
cmp al, 0x5c
je 0x403936
sub esi, 1
jne 0x4038f0
mov eax, 0x2e
mov word [0x42c860], ax
mov ecx, 0x41e520
mov eax, 0x42c860
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403977
test dl, dl
je 0x403932
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403977
add eax, 2
add ecx, 2
test dl, dl
jne 0x403916
xor eax, eax
jmp 0x40397c
test esi, esi
je 0x403901
cmp esi, 1
jne 0x403950
mov al, byte [edi]
cmp al, 0x2f
je 0x403949
cmp al, 0x5c
jne 0x403901
mov eax, 0x2f
jmp 0x403906
lea eax, [esi - 1]
push eax
push edi
push 0x42c860
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 0x104
jae 0x4039ff
mov byte [esi + 0x42c860], 0
jmp 0x40390c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039e1
mov ecx, ebx
mov eax, 0x42c860
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4039a7
test dl, dl
je 0x4039a3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4039a7
add eax, 2
add ecx, 2
test dl, dl
jne 0x403987
xor eax, eax
jmp 0x4039ac
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039e1
mov edx, 0x1ed
mov ecx, 0x42c860
call fcn.00403860
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test esi, esi
jne 0x4039ee
mov edx, 0x1ed
mov ecx, ebx
call fcn.00403860
pop edi
mov eax, esi
pop esi
pop ebx
ret
push edi
or esi, 0xffffffff
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret
call fcn.0041c97c
int3
Function at 0x403f10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.VCRUNTIME140.dll_strchr]
xor esi, esi
test ecx, ecx
mov dword [ebp - 0x1c], str.TMPDIR
mov ebx, str.tmp_
mov dword [ebp - 0x18], 0x41ebcc
cmovne ebx, ecx
mov dword [ebp - 0x14], str.TEMP
push 0x2f
push ebx
mov dword [ebp - 0x10], str.TEMPDIR
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], ebx
call edi
add esp, 8
test eax, eax
jne 0x404080
push 0x5c
push ebx
call edi
add esp, 8
test eax, eax
jne 0x404080
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov eax, str.TMPDIR
nop dword [eax]
push eax
call edi
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x403f97
mov eax, dword [ebp + esi*4 - 0x18]
inc esi
test eax, eax
jne 0x403f80
jmp 0x403fa7
push 2
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
je 0x403fac
mov ebx, str.C:WINDOWSTEMP
push 2
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jne 0x404080
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x403fc5
sub esi, ecx
cmp esi, 1
jb 0x404080
mov edi, dword [ebp - 8]
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x403fe0
sub edi, ecx
xor ecx, ecx
lea eax, [edi + esi]
add eax, 8
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov al, byte [esi + ebx - 1]
add esp, 0xc
mov ebx, dword [ebp - 4]
cmp al, 0x2f
je 0x404024
cmp al, 0x5c
je 0x404024
mov byte [esi + ebx], 0x5c
inc esi
push edi
push dword [ebp - 8]
lea eax, [esi + ebx]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [str.XXXXXX]
lea ecx, [edi + esi]
mov dword [ecx + ebx], eax
add esp, 0xc
mov ax, word [0x41ebc0]
mov word [ecx + ebx + 4], ax
mov al, byte [0x41ebc2]
mov byte [ecx + ebx + 6], al
mov ecx, ebx
call fcn.00403a10
mov esi, eax
test esi, esi
jns 0x40406d
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4050b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov esi, eax
test esi, esi
jne 0x4050e8
push str.ERROR:_could_not_initialize_CURL_n
call fcn.004035a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x41ea64
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x405116
push ebx
push str.ERROR:_cannot_open__s_for_writing_n
call fcn.004035a0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x42c738], 0
mov edi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
mov dword [0x42c85c], 0
je 0x405139
push 1
push 0x29
push esi
call edi
add esp, 0xc
push 0
push 0x40
push esi
call edi
add esp, 0xc
push 0
push 0x4e2b
push esi
call edi
add esp, 0xc
push dword [ebp - 4]
push 0x2711
push esi
call edi
add esp, 0xc
cmp dword [ebp + 8], 0
jle 0x405174
push 0x405060
push 0x4e58
push esi
call edi
add esp, 0xc
xor eax, eax
cmp dword [ebp + 8], eax
setle al
push eax
push 0x2b
push esi
call edi
add esp, 0xc
push str.InetURL_1.0
push 0x2722
push esi
call edi
add esp, 0xc
push 1
push 0x34
push esi
call edi
add esp, 0xc
push dword [ebp - 0xc]
push 0x2712
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
push esi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov edi, dword [ebp - 4]
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push 1
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
cdq
push edi
mov esi, eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 0xc]
mov eax, esi
add esp, 0x14
or eax, ecx
je 0x4051fb
and esi, ecx
cmp esi, 0xffffffff
jne 0x40520c
push ebx
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f9d0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2074
call fcn.0041d5c0
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x40fac6
push ebx
push edi
mov dword [ebp - 0x2074], 0x67452301
mov dword [ebp - 0x2070], 0xefcdab89
mov dword [ebp - 0x206c], 0x98badcfe
mov dword [ebp - 0x2068], 0x10325476
mov dword [ebp - 0x2064], 0xc3d2e1f0
mov dword [ebp - 0x205c], 0
mov dword [ebp - 0x2060], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40fa84
push edi
push 0x2000
lea eax, [ebp - 0x2018]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push eax
lea edx, [ebp - 0x2018]
lea ecx, [ebp - 0x2074]
call fcn.004025c0
push edi
call ebx
add esp, 0x18
test eax, eax
je 0x40fa53
lea edx, [ebp - 0x2074]
lea ecx, [ebp - 0x18]
call fcn.00402670
lea ecx, [ebp - 0x18]
mov edx, 0x10
pop ebx
nop dword [eax + eax]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x40fac6
add esi, 4
add ecx, 4
sub edx, 4
jae 0x40faa0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
Function at 0x419590
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x128], eax
push esi
push edi
test eax, eax
jg 0x4195f1
cmp dword [0x42c754], 2
jl 0x4195db
push eax
push str.ERROR:_invalid_fd_in_check_fd__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00406e70
add esp, 0xc
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea ecx, [eax + 1]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x186a0
mov dword [ebp - 0x120], ecx
nop
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x11c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov edi, esi
test esi, esi
jns 0x419706
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
cmp eax, 4
jne 0x419680
cmp dword [0x42c754], 2
mov ecx, dword [ebp - 0x120]
jl 0x419620
push str.socket_check_fd
push str._s:_EINTR_n
push 2
call ebx
add esp, 4
push eax
call fcn.00406e70
mov ecx, dword [ebp - 0x120]
add esp, 0xc
jmp 0x419620
cmp eax, 0xb
jne 0x4196bb
cmp dword [0x42c754], 2
jl 0x419706
push str.socket_check_fd
push str._s:_EAGAIN_n
push 2
call ebx
add esp, 4
push eax
call fcn.00406e70
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
cmp dword [0x42c754], 2
jl 0x4196f0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push str.socket_check_fd
push str._s:_select_failed:__s_n
push 2
call ebx
add esp, 4
push eax
call fcn.00406e70
add esp, 0x10
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
mov edi, esi
test esi, esi
jg 0x41971f
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x128]
push 0
push 0x100000
push dword [ebp - 0x124]
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x419777
cmp dword [0x42c754], 3
jl 0x419761
push esi
push str.socket_receive_timeout
push str._s:_fd_d_recv_returned_0_n
push 2
call ebx
add esp, 4
push eax
call fcn.00406e70
add esp, 0x10
mov eax, 0xfffffff5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
jns 0x419783
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
neg eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
Function at 0x10014ed0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 2
mov dword [esi + 0x14], 0
mov byte [edi], 0
push dword [esi + 8]
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov edx, eax
test edx, edx
jne 0x10014f1a
cmp dword [ebp - 4], 1
jbe 0x10014f1a
xor ecx, ecx
cmp byte [edi], 0x3a
setne cl
mov dword [esi + 0x14], ecx
xor eax, eax
test edx, edx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10018d70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027424
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1002baa4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [edi + 0x10]
mov dword [eax], 0
mov dword [ebp - 0x1c], eax
add eax, 4
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSection]
lea esi, [edi + 0x18]
mov dword [edi], 0x100016c0
push esi
mov dword [edi + 4], 0x10001708
mov dword [edi + 8], 0x10001828
mov dword [edi + 0xc], 0x10001184
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSection]
add esp, 8
mov dword [esi + 4], 0xffffffff
lea ecx, [edi + 0x30]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.100210b0
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x1184]
mov edx, dword [0x1002d718]
mov dword [edi + 0x1180], 0x100016c0
mov dword [edi], 0x10001718
mov dword [edi + 4], 0x10001708
mov dword [edi + 8], 0x100016f4
mov dword [edi + 0xc], 0x10001184
mov dword [edi + 0x117c], 0x100016e4
mov dword [edi + 0x1180], 0x100016d4
mov dword [eax + 4], 0
mov dword [eax], 0x100016d0
mov ecx, dword [0x1002bb48]
cmp ecx, 0xffffffff
jne 0x10018e76
xor eax, eax
jmp 0x10018e8d
mov esi, dword [0x1002b03c]
push 0
push eax
push 6
push edx
push ecx
mov ecx, esi
call dword [0x1002c1a8]
call esi
mov dword [edi + 0x1188], eax
lea ecx, [edi + 0x118c]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x24], 1
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx], 0x10001698
mov byte [ebp - 4], 3
mov eax, dword [0x10002700]
mov dword [edi + 0x1158], eax
mov eax, dword [0x10002704]
mov dword [edi + 0x115c], eax
mov eax, dword [0x10002708]
mov dword [edi + 0x1160], eax
mov eax, dword [0x1000270c]
mov dword [edi + 0x1164], eax
mov eax, dword [0x1002bee4]
mov dword [edi + 0x1168], 0x100026a0
mov dword [edi + 0x30], eax
mov dword [edi + 0x116c], 0x1002bae8
push ecx
mov dword [edi + 0x1170], 0x10015da0
call fcn.100147d2
mov dword [edi + 0x11b0], 1
jmp 0x10018f64
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10026210
mov esp, ebp
pop ebp
ret
Function at 0x10026530
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002656e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10026566
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10026570
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10026556
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10026640
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10026656
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10026671
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x38547a41
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x4c0655d8
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4057d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x16680
call fcn.00407110
push ebx
mov ebx, dword [esp + 0x16690]
push esi
push edi
mov edi, dword [esp + 0x1669c]
xor esi, esi
xor ecx, ecx
mov eax, ecx
mov byte [esp + ecx + 0x14], cl
cdq
idiv edi
inc ecx
cmp ecx, 0xb33a
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0xb34f], al
jl 0x4057ef
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dl, byte [esp + ecx + 0xb350]
mov al, byte [esp + ecx + 0x14]
add esi, edx
add eax, esi
mov esi, 0xb33a
cdq
idiv esi
inc ecx
cmp ecx, 0xb33a
mov esi, edx
mov dl, byte [esp + ecx + 0x13]
mov al, byte [esp + esi + 0x14]
mov byte [esp + esi + 0x14], dl
mov byte [esp + ecx + 0x13], al
jl 0x40580d
mov eax, dword [esp + 0x16694]
xor edi, edi
test eax, eax
jle 0x4058ca
mov esi, dword [esp + 0x166a0]
push ebp
mov ebp, dword [esp + 0x16694]
mov dword [esp + 0x10], eax
sub ebp, esi
lea eax, [ecx + 1]
mov ecx, 0xb33a
cdq
idiv ecx
xor eax, eax
mov ebx, 0xb33a
mov ecx, edx
mov al, byte [esp + ecx + 0x18]
add eax, edi
mov edi, 0xb33a
cdq
idiv edi
mov edi, edx
mov dl, byte [esp + ecx + 0x18]
mov al, byte [esp + edi + 0x18]
mov byte [esp + edi + 0x18], dl
mov byte [esp + 0x14], al
mov byte [esp + ecx + 0x18], al
mov edx, dword [esp + 0x14]
xor eax, eax
mov al, byte [esp + edi + 0x18]
and edx, 0xff
add eax, edx
cdq
idiv ebx
mov bl, byte [esi + ebp]
mov al, byte [esp + edx + 0x18]
xor al, bl
mov byte [esi], al
mov eax, dword [esp + 0x10]
inc esi
dec eax
mov dword [esp + 0x10], eax
jne 0x405865
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x16680
ret
Function at 0x40a2b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x425e60
cmp edx, dword [eax]
je 0x40a2d3
add eax, 8
inc ecx
cmp eax, 0x425ef0
jl 0x40a2c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x425e60]
jne 0x40a401
mov eax, dword [0x428ac0]
cmp eax, 1
je 0x40a3db
test eax, eax
jne 0x40a304
cmp dword [0x425884], 1
je 0x40a3db
cmp edx, 0xfc
je 0x40a401
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a33b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409170
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a37e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4205c4
push edi
call fcn.00409070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409170
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409180
lea eax, [ebp - 0xa0]
push 0x4205a4
push eax
call fcn.00409180
push dword [esi + 0x425e64]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409180
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b828
add esp, 0x2c
pop edi
jmp 0x40a401
lea eax, [ebp + 8]
lea esi, [esi + 0x425e64]
push 0
push eax
push dword [esi]
call fcn.00409260
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 0x4123e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00407110
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4124ab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4124ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41245e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x412469
or bh, 8
and edi, 0x8000000
je 0x412484
mov eax, dword [0x42a6bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4124ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4128ab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4128cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4128ea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x415cf2
Capabilities:
Get graphical window text

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