joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b3c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xac
mov eax, dword [0x422980]
mov ecx, dword [ebp + 0x7c]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
test eax, eax
push esi
push edi
mov edi, dword [ebp + 0x78]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], ecx
je 0x402d82
test edi, edi
je 0x402d82
test ecx, ecx
je 0x402d82
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.unknown_Windows_version
push eax
call esi
and dword [edi], 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402d82
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
push ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
and ebx, 0xffff
push ebx
push eax
push ecx
push str._u._u._u
push dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [ebp - 0x3c], 1
jne 0x402ccb
cmp dword [ebp - 0x38], 4
jne 0x402d7c
cmp dword [ebp - 0x34], 0xa
jae 0x402c4c
mov eax, 0x3b6
cmp ebx, eax
jne 0x402c0c
push str.Windows_95
push dword [ebp - 0x30]
call esi
mov dword [edi], 1
jmp 0x402d7c
jbe 0x402c2b
cmp ebx, 0x438
ja 0x402c33
push str.Windows_95_SP1
push dword [ebp - 0x30]
call esi
mov dword [edi], 2
jmp 0x402d7c
cmp ebx, 0x438
jbe 0x402c48
push str.Windows_95_OSR2
push dword [ebp - 0x30]
call esi
mov dword [edi], 3
jmp 0x402d7c
cmp dword [ebp - 0x34], 0xa
jne 0x402cac
mov eax, 0x7ce
cmp ebx, eax
jne 0x402c6c
push str.Windows_98
push dword [ebp - 0x30]
call esi
mov dword [edi], 4
jmp 0x402d7c
jbe 0x402c8b
cmp ebx, 0x887
jae 0x402c97
push str.Windows_98_SP1
push dword [ebp - 0x30]
call esi
mov dword [edi], 5
jmp 0x402d7c
cmp ebx, 0x887
jb 0x402d7c
push str.Windows_98_SE
push dword [ebp - 0x30]
call esi
mov dword [edi], 6
jmp 0x402d7c
cmp dword [ebp - 0x34], 0x5a
jne 0x402d7c
push str.Windows_ME
push dword [ebp - 0x30]
call esi
mov dword [edi], 7
jmp 0x402d7c
cmp dword [ebp - 0x3c], 2
jne 0x402d66
cmp dword [ebp - 0x38], 3
jne 0x402cfa
cmp dword [ebp - 0x34], 0x33
jne 0x402d7c
push str.Windows_NT_3.51
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x65
jmp 0x402d7c
cmp dword [ebp - 0x38], 4
jne 0x402d18
cmp dword [ebp - 0x34], 0
jne 0x402d7c
push str.Windows_NT_4
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x66
jmp 0x402d7c
cmp dword [ebp - 0x38], 5
jne 0x402d7c
cmp dword [ebp - 0x34], 0
jne 0x402d36
push str.Windows_2000
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x67
jmp 0x402d7c
cmp dword [ebp - 0x34], 1
jne 0x402d4e
push str.Windows_XP
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x68
jmp 0x402d7c
cmp dword [ebp - 0x34], 2
jne 0x402d7c
push str.Windows_2003_Server
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x69
jmp 0x402d7c
cmp dword [ebp - 0x3c], 3
jne 0x402d7c
push str.Windows_CE
push dword [ebp - 0x30]
call esi
mov dword [edi], 0xc9
xor eax, eax
inc eax
pop ebx
jmp 0x402d84
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
xor ecx, ebp
pop esi
call fcn.00408280
add ebp, 0x6c
leave
ret
Function at 0x402fd9
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x41a9e5
call fcn.004081d8
sub esp, 0x28
mov eax, dword [0x422980]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor eax, ebp
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x30], esi
jne 0x403195
xor edi, edi
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x403021
xor eax, eax
jmp 0x40319a
push 4
lea ecx, [ebp - 0x34]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 0x34], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402ad9
mov dword [ebp - 4], edi
call fcn.004148ce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 0xc]
cmp bx, di
mov byte [ebp - 4], 1
jne 0x4030ee
push edi
push 0x3a
lea ecx, [ebp - 0x28]
call fcn.00402e7f
mov esi, eax
cmp esi, edi
jle 0x4030e0
push esi
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402f00
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00402f69
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00402628
inc esi
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402fb6
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004028a3
push eax
call fcn.004092b7
pop ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00402628
mov esi, dword [ebp - 0x30]
jmp 0x4030fa
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402f69
jmp 0x4030db
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402f69
cmp bx, di
jne 0x403102
push 0x50
pop ebx
push ebx
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], edi
jge 0x403125
push 0x80070057
call fcn.00402584
movsx eax, byte [eax]
cmp eax, 0x2f
jle 0x403147
cmp eax, 0x3a
jge 0x403147
push edi
lea ecx, [ebp - 0x24]
call fcn.004028a3
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
jmp 0x403167
push edi
lea ecx, [ebp - 0x24]
call fcn.004028a3
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x403164
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x403142
mov dword [ebp - 0x1c], edi
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 0x24]
mov esi, eax
neg esi
sbb esi, esi
add ecx, 0xfffffff0
inc esi
call fcn.00402628
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00402628
jmp 0x403198
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408280
leave
ret 8
Function at 0x4033f9
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x422980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
xor esi, esi
push esi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x403430
push 4
pop eax
jmp 0x40348e
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x44]
push str.Agent_ld
push eax
call fcn.004081f7
add esp, 0xc
test byte [ebp - 0x50], 4
push esi
push esi
lea eax, [ebp - 0x44]
push esi
jne 0x403459
push 4
jmp 0x40345a
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
je 0x40348a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push edi
call fcn.004031b5
add esp, 0x18
push edi
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
jmp 0x40348d
push 4
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408280
leave
ret

Function at 0x4034fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push str.ppstreamvod_
push connect
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403576
and dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0x41b50c
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40356d
cmp dword [ebp - 4], 2
je 0x40354f
cmp dword [ebp - 4], 1
jne 0x40356d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push esi
mov byte [eax + esi], 0
call fcn.00401be4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x403578
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret 4
Function at 0x40357d
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x41a9f7
call fcn.004081d8
sub esp, 0x20
mov eax, dword [0x422980]
push ebx
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x104]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x4035ac
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
lea ecx, [ebp - 0x2c]
xor edi, edi
mov dword [esi + 0x108], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [ebp - 0x14], 0xf
call fcn.0040155b
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004034fb
test eax, eax
je 0x403716
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x403616
lea eax, [ebp - 0x28]
push 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [esi + 0x104], eax
je 0x403716
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateVodInstance
push eax
call edi
push str.DestroyVodInstance
push dword [esi + 0x104]
mov dword [esi + 0x108], eax
call edi
push str.StopFile
push dword [esi + 0x104]
mov dword [esi + 0x110], eax
call edi
push str.PlayURLForTest
push dword [esi + 0x104]
mov dword [esi + 0x114], eax
call edi
push str.PlayURL
push dword [esi + 0x104]
mov dword [esi + 0x118], eax
call edi
push str.ShowPropertyDlg
push dword [esi + 0x104]
mov dword [esi + 0x11c], eax
call edi
push str.SetEchoSvr
push dword [esi + 0x104]
mov dword [esi + 0x120], eax
call edi
push str.GetPlayingURL
push dword [esi + 0x104]
mov dword [esi + 0x124], eax
call edi
push str.GetHttpURL
push dword [esi + 0x104]
mov dword [esi + 0x128], eax
call edi
push str.EventNotify
push dword [esi + 0x104]
mov dword [esi + 0x12c], eax
call edi
push str.SetParam
push dword [esi + 0x104]
mov dword [esi + 0x130], eax
call edi
push str.CreateVodInstanceByPPSAP
push dword [esi + 0x104]
mov dword [esi + 0x134], eax
call edi
xor edi, edi
mov dword [esi + 0x10c], eax
inc edi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401615
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408280
leave
ret
Function at 0x40393b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 4]
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x403a35
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.004147d8
push ebx
push 0
push eax
mov dword [esi], eax
call fcn.00408fb0
add esp, 0x10
push dword [esi]
lea eax, [esi + 0x28]
push edi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebx
je 0x403a35
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.00403846
test eax, eax
je 0x403a35
mov eax, dword [ebp - 0x30]
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
mov word [esi + 8], cx
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
shr ecx, 0x10
mov word [esi + 0xc], cx
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
shr ecx, 0x10
mov word [esi + 0x16], ax
mov word [esi + 0x10], cx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
shr ecx, 0x10
lea eax, [esi + 0x230]
push eax
mov word [esi + 0x14], cx
push str.CompanyName
mov ecx, esi
call fcn.00403886
lea eax, [esi + 0x640]
push eax
push str.FileDescription
mov ecx, esi
call fcn.00403886
lea eax, [esi + 0x438]
push eax
push str.ProductName
mov ecx, esi
call fcn.00403886
xor eax, eax
inc eax
jmp 0x403a37
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x404243
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
call fcn.00403ee5
mov eax, dword [esi + 0x308]
cmp word [eax], 0x5a4d
jne 0x4042b4
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x30c], eax
cmp dword [eax], 0x4550
jne 0x4042b4
mov ecx, esi
call fcn.00404199
mov dword [esi + 0x310], eax
mov eax, dword [esi + 0x30c]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x404293
mov ecx, dword [esi + 0x308]
add ecx, eax
mov dword [esi + 0x314], ecx
mov eax, dword [esi + 0x30c]
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0x314]
mov dword [esi + 0x318], eax
lea eax, [eax + eax*8]
lea eax, [ecx + eax*2]
mov dword [esi + 0x31c], eax
pop esi
ret

Function at 0x4042b6
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00403f06
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x300], eax
je 0x40430f
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x304], eax
je 0x40430f
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x308], eax
pop edi
pop esi
ret 4
Function at 0x40518f
Capabilities:
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3b0]
sub esp, 0x430
mov eax, dword [0x422980]
xor eax, ebp
push ebx
mov dword [ebp + 0x3ac], eax
push esi
mov esi, dword [ebp + 0x3b8]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 0x34]
lea eax, [ebp + 0x2e0]
push dword [ebp - 0x38]
push eax
call fcn.00405117
lea eax, [ebp + 0x2e0]
push eax
push str.Error_occurred_at__s._r_n
push esi
call fcn.00403e5e
push 0x208
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00408fb0
add esp, 0x24
push 0x102
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
ja 0x405219
push str.Unknown
lea eax, [ebp - 0x2c]
push eax
call ebx
push 0x104
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00408fb0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x1dc]
push eax
mov dword [ebp - 0x30], 0x102
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x405259
push str.Unknown
lea eax, [ebp + 0x1dc]
push eax
call ebx
lea eax, [ebp + 0x1dc]
push eax
lea eax, [ebp - 0x2c]
push eax
push str._s__run_by__s._r_n
push esi
call fcn.00403e5e
lea eax, [ebp + 0x378]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x344]
push eax
call fcn.00402b3c
lea eax, [ebp + 0x378]
push eax
lea eax, [ebp + 0x344]
push eax
push str.Operating_system:___s___s_._r_n
push esi
call fcn.00403e5e
add esp, 0x2c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push str._d_processor_s___type__d._r_n
push esi
call fcn.00403e5e
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x54]
push str._d___memory_in_use._r_n
push esi
call fcn.00403e5e
mov eax, dword [ebp - 0x50]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push esi
call fcn.00403e5e
mov eax, dword [ebp - 0x4c]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory_free._r_n
push esi
call fcn.00403e5e
mov eax, dword [ebp - 0x48]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file._r_n
push esi
call fcn.00403e5e
mov eax, dword [ebp - 0x44]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push esi
call fcn.00403e5e
mov eax, dword [ebp - 0x40]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space._r_n
push esi
call fcn.00403e5e
mov eax, dword [ebp - 0x3c]
add esp, 0x48
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space_free._r_n
push esi
call fcn.00403e5e
mov ecx, dword [ebp + 0x3ac]
add esp, 0xc
pop esi
xor ecx, ebp
pop ebx
call fcn.00408280
add ebp, 0x3b0
leave
ret
Function at 0x40588d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x44]
xor edx, edx
mov eax, 0x40000000
div ebx
push 0
pop edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
mov esi, eax
shl esi, 2
je 0x405924
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov eax, edi
imul eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x40590f
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x40590f
div ebx
add edi, eax
cmp dword [ebp - 0x14], 0x1000
jne 0x405918
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jbe 0x405918
push dword [ebp - 4]
mov dword [ebp - 8], eax
push eax
push dword [ebp + 8]
call fcn.0040551f
add esp, 0xc
test eax, eax
je 0x405918
inc dword [ebp - 4]
jmp 0x405918
mov eax, 0x10000
div ebx
add edi, eax
cmp edi, esi
jb 0x4058c0
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
jne 0x405926
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405940
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41aaf4
call fcn.004081d8
sub esp, 0x724
mov eax, dword [0x422980]
mov ecx, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x724], eax
mov dword [ebp - 0x728], ecx
je 0x405b7a
push esi
push edi
call fcn.004148ce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x718], esi
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x114], bl
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x720]
call fcn.00402ad9
push 0x5c
lea ecx, [ebp - 0x720]
mov byte [ebp - 4], 1
call fcn.00404a06
cmp eax, 0xffffffff
je 0x405a1e
inc eax
push eax
lea eax, [ebp - 0x71c]
push eax
lea ecx, [ebp - 0x720]
call fcn.00404a4b
push eax
lea ecx, [ebp - 0x718]
mov byte [ebp - 4], 2
call fcn.00402f69
mov ecx, dword [ebp - 0x71c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00402628
mov esi, dword [ebp - 0x718]
cmp dword [esi - 0xc], ebx
je 0x405b62
xor eax, eax
push 0x7f
mov byte [ebp - 0x314], bl
pop ecx
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x714], bl
mov ecx, 0xff
lea edi, [ebp - 0x713]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x730]
push eax
call fcn.00404dbc
push dword [ebp - 0x724]
lea eax, [ebp - 0x314]
push esi
push str._s_s.log
push eax
call fcn.004081f7
add esp, 0x10
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x724]
push eax
lea ecx, [ebp - 0x730]
call fcn.00405074
cmp dword [0x4221fc], 0x10
mov ecx, dword [0x4221e8]
jae 0x405aa7
mov ecx, 0x4221e8
lea edx, [ebp - 0x114]
push edx
push ecx
push dword [eax]
lea eax, [ebp - 0x714]
push str._r_n_r_n
push eax
call fcn.004081f7
mov ecx, dword [ebp - 0x724]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.00402628
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x71c], edi
je 0x405b62
push 2
push ebx
push ebx
push edi
mov dword [ebp - 0x718], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x718]
push eax
lea eax, [ebp - 0x714]
push eax
call fcn.00408390
pop ecx
push eax
lea eax, [ebp - 0x714]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 0x718]
push eax
push dword [ebp - 0x728]
call fcn.00408390
pop ecx
push eax
push dword [ebp - 0x728]
push dword [ebp - 0x71c]
call edi
push dword [ebp - 0x71c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x720]
add ecx, 0xfffffff0
call fcn.00402628
lea ecx, [esi - 0x10]
call fcn.00402628
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.00408280
leave
ret
Function at 0x408b63
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x408b80
call fcn.0040b364
mov dword [eax], 0x16
xor eax, eax
jmp 0x408bea
push esi
push 0x8c
push 1
call fcn.0040d354
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x408bd5
push esi
call fcn.0040c33d
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x408bb3
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x408ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x408be9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00409c14
test ebx, ebx
pop ecx
je 0x408be7
push ebx
call fcn.0040b376
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408cb2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41d0c8
call fcn.00409d68
push 8
call fcn.0040d57e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4260ac], esi
jne 0x408ce6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4260a8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4260a4], al
cmp dword [ebp + 0xc], edi
jne 0x408d30
cmp dword [0x42794c], edi
je 0x408d20
mov eax, dword [0x427948]
sub eax, 4
mov dword [0x427948], eax
cmp eax, dword [0x42794c]
jb 0x408d20
mov eax, dword [eax]
cmp eax, edi
je 0x408d01
call eax
jmp 0x408d01
push 0x4220a4
mov eax, 0x42209c
call fcn.00408c30
pop ecx
push 0x4220b0
mov eax, 0x4220a8
call fcn.00408c30
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x408d61
cmp dword [ebp + 0x10], edi
jne 0x408d6f
mov dword [0x4260ac], esi
push dword [ebp + 8]
call fcn.00408bee
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x408d6e
push 8
call fcn.0040d4c9
pop ecx
ret
call fcn.00409da3
ret
Function at 0x409c85
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408290
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409d20
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42606c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409d20
cmp eax, 1
je 0x409d41
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409d20
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409ced
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409d1c
xor eax, eax
inc eax
jmp 0x409d60
cmp edi, eax
jae 0x409d24
xor eax, eax
jmp 0x409d60
cmp eax, esi
jae 0x409d2b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42606c]
jmp 0x409d44
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret