joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448ff6
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
setne bl
cmp dword [ebp + 0x14], esi
je 0x44900e
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x44910b
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x449046
cmp edi, 0x50
je 0x44903e
cmp edi, 0xb7
jne 0x449046
xor esi, esi
inc esi
jmp 0x44910a
cmp edi, 2
jne 0x44905f
push esi
push dword [ebp + 8]
call fcn.00449255
test eax, eax
je 0x449101
push 3
pop edi
cmp edi, 3
jne 0x4490f9
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
movzx eax, word [edi]
test ax, ax
je 0x4490f2
push 0x5c
mov edi, eax
pop esi
cmp di, si
jne 0x449083
mov ecx, edx
add edx, 2
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x44907c
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push 0
pop esi
test ecx, ecx
je 0x4490f2
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.0040420a
mov esi, eax
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
js 0x44910a
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x44910a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4490de
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x44910a
push esi
push 0x554
push str.c:_agent_work18_swix_srclibsdutil_fileutil.cpp
call fcn.00403953
jmp 0x44910a
mov esi, 0x80070003
jmp 0x44910a
test edi, edi
jg 0x449101
mov esi, edi
jmp 0x44910a
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x449869
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x4498bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4498a8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4498bf
push esi
push 0x115
push str.c:_agent_work18_swix_srclibsdutil_fileutil.cpp
call fcn.00403953
jmp 0x449968
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4498da
mov esi, 0x8007000e
push esi
push 0x119
jmp 0x4498b0
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x449916
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x449902
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x449916
push esi
push 0x11d
push str.c:_agent_work18_swix_srclibsdutil_fileutil.cpp
call fcn.00403953
jmp 0x449961
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x450bbc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x44994e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x449944
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x44994e
push esi
push 0x122
jmp 0x44990a
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x449c34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x449c7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x449c79
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x449c85
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x449c45
jmp 0x449c95
push esi
push 0x3ef
push str.c:_agent_work18_swix_srclibsdutil_fileutil.cpp
call fcn.00403953
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44ab8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str._ls.R
push edi
call fcn.00402099
mov esi, eax
add esp, 0xc
test esi, esi
js 0x44ac9a
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44ac18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44abfc
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44ac03
mov esi, 0x80004005
push esi
push 0xc1
push str.c:_agent_work18_swix_srclibsdutildlutil.cpp
call fcn.00403953
jmp 0x44ac9a
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44ac60
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x44ac4a
cmp ecx, 8
jb 0x44ac1b
cmp ecx, 8
je 0x44ac56
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x44ac8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44ac77
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44ac7e
mov esi, 0x80004005
push esi
push 0xc8
push str.c:_agent_work18_swix_srclibsdutildlutil.cpp
call fcn.00403953
cmp edi, 0xffffffff
je 0x44ac9a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x44b148
Capabilities:
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
sub esp, 0xc
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.0044970e
mov esi, eax
test esi, esi
js 0x44b29f
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x44b270
cmp dword [ebp - 4], 0
je 0x44b29e
xor ebx, ebx
and dword [ebp - 8], ebx
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44b24a
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x44b1ce
cmp ebx, dword [ebp - 4]
jb 0x44b19d
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x44b218
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 0xc], eax
call fcn.0044970e
test eax, eax
js 0x44b218
push 0
lea eax, [ebp - 0xc]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x44b218
cmp ebx, 8
jb 0x44b1f1
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x44b23e
cmp dword [eax], 0
je 0x44b23e
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.0044aa61
mov esi, eax
test esi, esi
js 0x44b29e
cmp dword [ebp - 4], 0
jne 0x44b173
jmp 0x44b29e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44b261
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44b268
mov esi, 0x80004005
push esi
push 0x1a6
jmp 0x44b294
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44b287
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44b28e
mov esi, 0x80004005
push esi
push 0x19a
push str.c:_agent_work18_swix_srclibsdutildlutil.cpp
call fcn.00403953
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24
Function at 0x44b2a7
Capabilities:
Create http request
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push dword [ebx]
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
call fcn.00402315
mov esi, eax
test esi, esi
js 0x44b415
xor eax, eax
push eax
push eax
push eax
push eax
push str.Burn
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x44b336
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44b31a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44b321
mov esi, 0x80004005
push esi
push 0x84
push str.c:_agent_work18_swix_srclibsdutildlutil.cpp
call fcn.00403953
jmp 0x44b415
lea eax, [ebp - 4]
push eax
push 0x78
push str.DownloadTimeout
push str.WiXBurn
call fcn.0044a5db
mov eax, dword [ebp - 4]
test eax, eax
je 0x44b388
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 4]
push eax
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 4]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.0044aae4
mov esi, eax
test esi, esi
js 0x44b415
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call fcn.0044ab8e
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.0044a837
mov esi, eax
test esi, esi
js 0x44b406
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x44b406
xor ecx, ecx
cmp word [eax], cx
je 0x44b406
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xc], 0xffffffff
je 0x44b415
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x44b422
push eax
call fcn.004027da
test edi, edi
je 0x44b42d
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], 0
je 0x44b43b
push dword [ebp - 8]
call fcn.004027da
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x44db04
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x44db56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44db45
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x44db56
push esi
push 0x18
push str.c:_agent_work18_swix_srclibsdutilinetutil.cpp
call fcn.00403953
jmp 0x44db62
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [edx + 4], 0
mov dword [edx], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x44dc9a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x246c
call fcn.0044f0d0
mov eax, dword [0x470008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x241c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x2430], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x2420], eax
mov eax, dword [ebp + 0x1c]
push 0x3c
mov dword [ebp - 0x2424], eax
lea eax, [ebp - 0x246c]
push esi
push eax
call fcn.00430b10
add esp, 0xc
mov dword [ebp - 0x246c], 0x3c
cmp dword [ebp - 0x241c], esi
je 0x44dd2c
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2458], 0x101
mov dword [ebp - 0x245c], eax
mov ecx, 0x81
cmp dword [ebp - 0x2420], esi
je 0x44dd4b
lea eax, [ebp - 0x108]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x44dd65
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2448], eax
mov ecx, 0x801
test ebx, ebx
je 0x44dd80
lea eax, [ebp - 0x1414]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2440], eax
test edi, edi
je 0x44dd96
lea eax, [ebp - 0x2418]
mov dword [ebp - 0x2434], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x246c]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2428]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x44dde3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44ddca
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44ddd1
mov esi, 0x80004005
push esi
push 0x56
push str.c:_agent_work18_swix_srclibsdutiluriutil.cpp
call fcn.00403953
jmp 0x44dea7
mov ecx, dword [ebp - 0x242c]
test ecx, ecx
je 0x44ddf5
mov eax, dword [ebp - 0x2460]
mov dword [ecx], eax
mov eax, dword [ebp - 0x241c]
test eax, eax
je 0x44de1b
push dword [ebp - 0x2458]
push dword [ebp - 0x245c]
push eax
call fcn.00402315
mov esi, eax
test esi, esi
js 0x44dea7
mov eax, dword [ebp - 0x2430]
test eax, eax
je 0x44de2f
mov cx, word [ebp - 0x2454]
mov word [eax], cx
mov eax, dword [ebp - 0x2420]
test eax, eax
je 0x44de51
push dword [ebp - 0x244c]
push dword [ebp - 0x2450]
push eax
call fcn.00402315
mov esi, eax
test esi, esi
js 0x44dea7
mov eax, dword [ebp - 0x2424]
test eax, eax
je 0x44de73
push dword [ebp - 0x2444]
push dword [ebp - 0x2448]
push eax
call fcn.00402315
mov esi, eax
test esi, esi
js 0x44dea7
test ebx, ebx
je 0x44de8f
push dword [ebp - 0x243c]
push dword [ebp - 0x2440]
push ebx
call fcn.00402315
mov esi, eax
test esi, esi
js 0x44dea7
test edi, edi
je 0x44dea7
push dword [ebp - 0x2434]
push dword [ebp - 0x2438]
push edi
call fcn.00402315
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f1b3
leave
ret 0x20
Function at 0x401730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401749
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40175d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40177e
cmp esi, eax
jae 0x401757
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401770
cmp esi, eax
jae 0x401757
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402640
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x427998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.0041ffe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push 0x16
push str.configpreferences.ini
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00401490
mov esi, dword [esp + 8]
push 4
push esi
call fcn.0040e59b
add esp, 8
cmp eax, 0xffffffff
je 0x40270a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0
push str.RestartCount
push str.CrashReporter
call ebx
push esi
push 0
push str.LastRestartTime
push str.CrashReporter
mov dword [edi + 0x214], eax
call ebx
push 0
mov ebx, eax
call fcn.0040e562
sub eax, ebx
add esp, 4
cmp eax, 0x15180
pop ebx
jle 0x4026e4
mov dword [edi + 0x214], 0
cmp dword [edi + 0x214], 5
jae 0x40270a
mov eax, dword [edi + 0x1c]
push 0
push 0x2bf20
push 1
push eax
mov dword [edi + 0x210], 1
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40272c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4049f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x404a44
call fcn.00424d4e
mov edi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x404a44
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x404a3a
xor eax, eax
jmp 0x404b5d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x404a74
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x404a74
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x404b5a
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x404aa1
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00405f30
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x404b5a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404aea
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x404aea
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x404ae4
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00405f30
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x404b4a
and dword [ebp + 0xc], 0
jmp 0x404b4a
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x404b4a
push 0xc
call fcn.0041b8f0
mov esi, eax
test esi, esi
pop ecx
je 0x404b2c
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x404b2e
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x404b45
push dword [ebp - 8]
call fcn.0041a32b
jmp 0x404b4a
call fcn.0041a302
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x404aaf
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40e59b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e5bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004104ac
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40e5de
test byte [esp + 8], 2
je 0x40e5de
call fcn.0041049a
mov dword [eax], 0xd
call fcn.004104a3
mov dword [eax], 5
jmp 0x40e5b7
xor eax, eax
ret
Function at 0x40e8e3
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.0040e9d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e97e
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 [0x439098]
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 0x40e97e
cmp eax, 1
je 0x40e99f
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 0x40e97e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40e94b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40e97a
xor eax, eax
inc eax
jmp 0x40e9be
cmp edi, eax
jae 0x40e982
xor eax, eax
jmp 0x40e9be
cmp eax, esi
jae 0x40e989
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 [0x439098]
jmp 0x40e9a2
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
Function at 0x40ea72
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42cdc0
call fcn.0040ffac
mov edi, 0x94
mov eax, edi
call fcn.0040e9d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x439098], ecx
mov eax, dword [esi + 4]
mov dword [0x4390a4], eax
mov edx, dword [esi + 8]
mov dword [0x4390a8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43909c], esi
cmp ecx, 2
je 0x40ead2
or esi, 0x8000
mov dword [0x43909c], esi
shl eax, 8
add eax, edx
mov dword [0x4390a0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40eb0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40eb0d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40eb25
cmp eax, 0x20b
je 0x40eb12
mov dword [ebp - 0x1c], esi
jmp 0x40eb39
cmp dword [ecx + 0x84], 0xe
jbe 0x40eb0d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40eb33
cmp dword [ecx + 0x74], 0xe
jbe 0x40eb0d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412bd9
pop ecx
test eax, eax
jne 0x40eb4d
push 0x1c
call fcn.0040ea4e
pop ecx
call fcn.004116bd
test eax, eax
jne 0x40eb5e
push 0x10
call fcn.0040ea4e
pop ecx
call fcn.004140ce
mov dword [ebp - 4], esi
call fcn.00413ed0
test eax, eax
jge 0x40eb77
push 0x1b
call fcn.0040ea29
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43a950], eax
call fcn.00413dae
mov dword [0x439088], eax
call fcn.00413d0c
test eax, eax
jge 0x40eb9d
push 8
call fcn.0040ea29
pop ecx
call fcn.00413ad9
test eax, eax
jge 0x40ebae
push 9
call fcn.0040ea29
pop ecx
push 1
call fcn.0040ed4d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40ebc4
push eax
call fcn.0040ea29
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413a7c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40ebe5
movzx eax, word [ebp - 0x40]
jmp 0x40ebe8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00419e18
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40ec06
push edi
call fcn.0040ee7a
call fcn.0040ee9c
jmp 0x40ec38
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040ffe7
ret