joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4133e0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1b08
call fcn.004116f0
cmp dword [0x926bd4], 0x37
push esi
jne 0x4134da
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
lea ecx, [esp + 0x30c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
call esi
push 0x403f04
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea eax, [esp + 0xb0c]
push eax
push 0x403f44
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea ecx, [esp + 0x130c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0xe8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call esi
push 0x403f64
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.0040e6b0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov edx, dword [0x929338]
mov dword [esp + 8], edx
mov eax, 0x5d1
add dword [esp + 8], eax
mov eax, dword [esp + 8]
mov cl, byte [eax + edi]
mov edx, dword [0x9253cc]
mov byte [edx + edi], cl
pop esi
add esp, 0x1b08
ret
Function at 0x404aff
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404b20
jl 0x404b17
test edi, edi
jne 0x404b20
xor eax, eax
xor edx, edx
jmp 0x404be1
cmp dword [ebx + 0x38], 0
je 0x404b35
push eax
push edi
push dword [ebp + 8]
call fcn.00404be7
jmp 0x404be1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404b7c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404b7c
cmp eax, edi
jb 0x404b56
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406570
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404b82
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404bd6
mov ecx, ebx
call fcn.004042c0
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404bc1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040b195
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404bd6
jmp 0x404b94
test edx, edx
je 0x404bd6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040b195
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x404cd6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x404cf8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404dbb
jmp 0x404db6
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x404d1e
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x404d23
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x404d83
jg 0x404d38
test esi, esi
je 0x404d83
test ecx, ecx
jl 0x404d7e
jg 0x404d42
test eax, eax
je 0x404d7e
cmp edi, ecx
jg 0x404d54
jl 0x404d4c
cmp esi, eax
jae 0x404d54
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.00406570
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x404d86
mov ecx, dword [ebp + 8]
jmp 0x404d90
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404daa
jg 0x404d90
test esi, esi
je 0x404daa
cmp dword [ebx + 0x4c], 0
je 0x404daa
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040b801
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x405d19
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405d58
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405d58
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405d58
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405d58
cmp dword [ecx + 0x74], 0xe
jbe 0x405d58
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411b1b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411991

Function at 0x419f80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419fad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419fad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401750
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push edi
push eax
push ebx
mov esi, ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
jne 0x40179b
push str.GetFileVersionInfoSize_error_n
call fcn.004016d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.0041155b
add esp, 4
mov dword [esi], eax
push eax
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x4017ef
push dword [esi]
call fcn.0041151e
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
push str.GetFileVersionInfo_error_n
call fcn.004016d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push dword [esi]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x401848
push dword [esi]
call fcn.0041151e
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerQueryValue_error:_d_n
call fcn.004016d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
pop edi
movzx ecx, word [eax + 2]
movzx eax, word [eax]
shl eax, 0x10
or ecx, eax
mov eax, 1
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041150d
mov esp, ebp
pop ebp
ret 4
Function at 0x402840
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2860
call fcn.00459270
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 0
push 0
push str.RookIE_1.0
mov dword [ebp - 0x2850], edx
mov esi, ecx
mov dword [ebp - 0x2854], eax
mov dword [ebp - 0x2848], 1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x2858], eax
test eax, eax
je 0x4029fa
push ebx
push 0
push 0x4000000
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x4029ed
push edi
xor edi, edi
mov dword [ebp - 0x284c], 0x40
push edi
lea eax, [ebp - 0x284c]
xor esi, esi
push eax
lea eax, [ebp - 0x44]
push eax
push 5
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4028f4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov esi, eax
push esi
push 0x465164
call fcn.00410e60
add esp, 0xc
push 0x465170
push dword [ebp - 0x2850]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x2850], eax
test eax, eax
je 0x4029e5
cmp dword [ebp - 0x2848], edi
jbe 0x4029db
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
addsd xmm0, qword [esi*8 + 0x466030]
movsd qword [ebp - 0x2860], xmm0
nop
lea eax, [ebp - 0x2848]
push eax
push 0x400
lea eax, [ebp - 0x2844]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
add edi, dword [ebp - 0x2848]
mov eax, edi
shr eax, 0x1f
push 0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x466030]
divsd xmm0, qword [ebp - 0x2860]
mulsd xmm0, qword [0x466028]
cvttsd2si esi, xmm0
push esi
push 0x402
push dword [ebp - 0x2854]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x2850]
lea eax, [ebp - 0x2844]
push dword [ebp - 0x2848]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
push esi
push str._d__d
call fcn.00410e60
add esp, 0x1c
cmp dword [ebp - 0x2848], 0
ja 0x402940
mov eax, dword [ebp - 0x2850]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
push dword [ebp - 0x2858]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x402ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0x44]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44]
push 0x40
push eax
push 0x406
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov eax, 0x4651d8
lea ecx, [ebp - 0x44]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402d40
test dl, dl
je 0x402d3c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402d40
add ecx, 2
add eax, 2
test dl, dl
jne 0x402d20
xor eax, eax
jmp 0x402d45
sbb eax, eax
or eax, 1
push 0
test eax, eax
jne 0x402d88
push eax
push esi
push 0x402a10
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x406
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret

Function at 0x4030d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459632
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
mov ecx, edx
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
lea esi, [ecx + 1]
mov dword [ebp - 0x78], 0x67452301
mov dword [ebp - 0x74], 0xefcdab89
mov dword [ebp - 0x70], 0x98badcfe
mov dword [ebp - 0x6c], 0x10325476
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403148
sub ecx, esi
push ecx
lea ecx, [ebp - 0x80]
call fcn.00403ba0
add esp, 4
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x80]
call fcn.00403c60
xor eax, eax
mov byte [ebp - 0x24], 0
push eax
mov word [ebp - 0x23], ax
mov ecx, edi
mov byte [ebp - 0x21], al
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
push 0x464fb2
mov byte [edi], al
call fcn.00401b60
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x84], 1
movzx eax, byte [ebp + esi - 0x20]
push eax
lea eax, [ebp - 0x24]
push str._02x
push eax
call fcn.00403b50
add esp, 0xc
cmp byte [ebp - 0x24], 0
jne 0x4031c2
xor eax, eax
jmp 0x4031d1
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031c8
sub eax, edx
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00402570
inc esi
cmp esi, 0x10
jl 0x4031a1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x404540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
push 0x400
lea eax, [ebp - 0x514]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x914]
call fcn.00401700
add esp, 0xc
lea eax, [ebp - 0x924]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x914]
push eax
movzx eax, word [ebp - 0x918]
push eax
movzx eax, word [ebp - 0x91a]
push eax
movzx eax, word [ebp - 0x91c]
push eax
movzx eax, word [ebp - 0x91e]
push eax
movzx eax, word [ebp - 0x922]
push eax
lea eax, [ebp - 0x514]
push str.__2d__2d__2d:_2d:_2d_:_s_n
push eax
call fcn.004020f0
movups xmm0, xmmword [0x4652e8]
push 0xf4
lea eax, [ebp - 0x104]
push 0
push eax
movups xmmword [ebp - 0x114], xmm0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
lea eax, [ebp - 0x114]
add esp, 0x2c
mov dword [ebp - 0x928], 0
push 0x4652f8
push eax
lea eax, [ebp - 0x928]
push eax
call edi
mov eax, dword [ebp - 0x928]
add esp, 0xc
test eax, eax
je 0x4046bd
push 2
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push dword [ebp - 0x928]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
cmp eax, 0x3e8000
jle 0x404681
push dword [ebp - 0x928]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebp - 0x928], 0
lea eax, [ebp - 0x114]
push 0x4652fc
push eax
lea eax, [ebp - 0x928]
push eax
call edi
add esp, 0xc
mov edx, dword [ebp - 0x928]
test edx, edx
je 0x4046bd
lea ecx, [ebp - 0x514]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404694
push edx
sub ecx, edi
lea eax, [ebp - 0x514]
push 1
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x928]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x4046d0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459770
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x46b00c]
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 - 0x374], edx
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], 0xffffffff
push esi
push 2
mov dword [ebp - 0x370], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x140]
push 0x124
push esi
push eax
mov dword [ebp - 0x144], 0x128
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40485e
cmp dword [ebp - 0x13c], esi
jne 0x404792
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x40485e
cmp dword [ebp - 0x13c], esi
jne 0x404792
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x18]
call fcn.004111b0
test eax, eax
je 0x40485e
mov ebx, dword [sym.imp.KERNEL32.dll_Module32Next]
push dword [ebp - 0x13c]
mov dword [ebp - 0x1c], 0xffffffff
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x368]
push 0x220
push 0
push eax
mov dword [ebp - 0x36c], 0x224
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x36c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x404818
mov ecx, dword [ebp - 0x358]
cmp edi, ecx
jb 0x40480a
mov eax, dword [ebp - 0x354]
add eax, ecx
cmp edi, eax
jbe 0x40488b
lea eax, [ebp - 0x36c]
push eax
push esi
call ebx
test eax, eax
jne 0x4047f0
mov esi, dword [ebp - 0x370]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00411170
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x40485e
cmp dword [ebp - 0x13c], 0
jne 0x404856
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x18]
call fcn.004111b0
test eax, eax
jne 0x4047a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00411170
mov eax, esi
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.0041150d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34c]
push eax
push 0x40
push dword [ebp - 0x374]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov esi, dword [ebp - 0x358]
add esp, 0xc
mov dword [ebp - 0x370], esi
jmp 0x40481e
Function at 0x405d10
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xc], eax
mov esi, ecx
push str.MODULES
movzx eax, dx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x405d5f
push str.FindResource_error
call fcn.00410e60
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405d96
push str.LoadResource_error
call fcn.00410e60
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x405dc3
push str.LockResource_error
call fcn.00410e60
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push 0
push 0x100
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405e0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_error:_d
call fcn.00410e60
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405e41
cmp dword [ebp - 8], ebx
jne 0x405e41
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push str.WriteFile_error
call fcn.00410e60
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x405e80
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40
mov dword [ebp - 0x570], eax
mov esi, edx
lea eax, [ebp - 0x554]
mov edi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x558], 4
lea eax, [ebp - 0x110]
xorps xmm0, xmm0
movups xmmword [ebp - 0x56c], xmm0
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x510]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
push 0x4654c8
call fcn.00410e60
push 0x4654d8
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
push esi
push esi
push edi
lea eax, [ebp - 0x510]
push str._s__Window__Run:vHigh__LoginServer:chdlogin_d.sdo.com:10000__WorldID:_d__IGWLogin__Pack
push eax
call fcn.004020f0
add esp, 0x34
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0x4000004
push 0
push 0
push 0
lea eax, [ebp - 0x510]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x405f97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x465548
call fcn.00410e60
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push 0x1d4
call fcn.00411523
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 4
mov edi, eax
mov dword [ebp - 0x55c], edi
push 0x46bc88
push 0x104
push edi
call esi
add esp, 0xc
lea eax, [edi + 0x100]
push ebx
push 0x40
push eax
call esi
add esp, 0xc
lea eax, [edi + 0x180]
push dword [ebp - 0x570]
push 0x40
push eax
call esi
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [0x46b974]
mov dword [edi + 0x1c4], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x1c0], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ecx + 0x28]
mov dword [edi + 0x1cc], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x1d0], eax
lea eax, [ebp - 0x55c]
push eax
call fcn.004090b0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x564]
call fcn.00410f00
push dword [ebp - 0x568]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041150d
mov esp, ebp
pop ebp
ret