joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56a2c4
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56a3ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x2710
lea eax, [ebx + 1]
call fcn.00482b4c
mov esi, eax
lea eax, [ebx + esi]
mov byte [eax], 0
push 0
push 0
push 0
push 0
push 0x56a3d8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00485110
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
mov eax, edi
call fcn.00484c40
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp dword [ebp - 0x10], 0
je 0x56a37c
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.0048a1bc
cmp ebx, dword [ebp - 0x10]
jbe 0x56a372
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.0048529c
mov eax, edi
mov edx, dword [ebp - 0x18]
call fcn.00484f18
cmp dword [ebp - 0x10], 0
jne 0x56a33a
cmp byte [ebp - 0x11], 0
je 0x56a38d
cmp ebx, dword [ebp - 0x10]
jae 0x56a39b
mov ecx, dword [edi]
mov eax, edi
mov edx, 0x56a3e4
call fcn.00484f5c
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, esi
call fcn.00482b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56a3d1
lea eax, [ebp - 0x18]
call fcn.00484c40
ret

Function at 0x56a40c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor ebx, ebx
mov ecx, 0x5dfc94
mov eax, ebx
mov edx, 8
mov esi, eax
and esi, 1
cmp esi, 1
jne 0x56a42f
shr eax, 1
xor eax, 0xedb88320
jmp 0x56a431
shr eax, 1
dec edx
jne 0x56a41c
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x101
jne 0x56a415
pop esi
pop ebx
ret

Function at 0x56a448
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x56a49f
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x5dfc94]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x5dfc94]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x5dfc94]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x5dfc94]
add esi, 4
loop 0x56a45d
mov ecx, edi
and ecx, 3
jecxz 0x56a4b7
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x5dfc94]
loop 0x56a4a6
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret
Function at 0x56b0b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00485100
mov eax, dword [ebp - 8]
call fcn.00485100
xor eax, eax
push ebp
push 0x56b203
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0048993c
test al, al
je 0x56b1db
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00489d8c
mov eax, dword [ebp - 0x18]
mov edx, 0x56b21c
call fcn.0048505c
jne 0x56b11f
lea eax, [ebp - 8]
mov edx, 0x56b230
call fcn.00484cd8
push 0
mov eax, dword [ebp - 8]
call fcn.00485110
push eax
call sub.kernel32.dll__lopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x56b1db
mov dword [ebp - 0x14], 0x1554
xor edx, edx
push ebp
push 0x56b1b4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jle 0x56b19d
mov eax, ebx
call fcn.00482b4c
mov esi, eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll__llseek
push ebx
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll__lread
cmp eax, 0xffffffff
je 0x56b194
mov eax, esi
mov edx, ebx
call fcn.0056a448
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, esi
call fcn.00482b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b1bb
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll__lclose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b20a
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00484c64
lea eax, [ebp - 8]
mov edx, 2
call fcn.00484c64
ret

Function at 0x56b8f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor edx, edx
push ebp
push 0x56b954
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, byte [eax + 0x32b]
mov ebx, edx
test dl, dl
je 0x56b93e
push 1
lea edx, [ebp - 4]
xor eax, eax
call fcn.00482fdc
mov eax, dword [ebp - 4]
call fcn.00485110
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x573774]
mov eax, dword [eax]
call fcn.004e2284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b95b
lea eax, [ebp - 4]
call fcn.00484c40
ret
Function at 0x401040
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x401050
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401050
mov ecx, dword [ecx + 4]
sub eax, edi
inc eax
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x402510
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x448924]
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x124]
push edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x110], eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
push str.Launcher.ini
rep stosb byte es:[edi], al
call fcn.00414360
add esp, 8
lea edx, [esp + 0xc]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x402560
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x11c]
push esi
push ebx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
call fcn.0040660b
add esp, 0x108
ret 0x14
Function at 0x4025b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xd04
mov eax, dword [0x448924]
push esi
push edi
push 0x100
mov dword [esp + 0xd0c], eax
lea eax, [esp + 0xc]
push eax
push 0x43460c
push str.TITLE
push str.INSTALL
mov esi, ecx
call fcn.00402510
push 0x400
lea ecx, [esp + 0x10c]
push ecx
push 0x4384a4
push str.TEXT
push str.INSTALL
mov ecx, esi
call fcn.00402510
push 0x400
lea edx, [esp + 0x90c]
push edx
push 0x4384a4
push str.HOMEPAGE
push str.INSTALL
mov ecx, esi
call fcn.00402510
push 0x400
lea eax, [esp + 0x50c]
push eax
push 0x4384a4
push str.DOWNLOAD
push str.INSTALL
mov ecx, esi
call fcn.00402510
mov al, byte [esp + 0x508]
test al, al
je 0x4026cb
mov al, byte [esp + 0x108]
test al, al
jne 0x402679
mov ecx, 0xf
mov esi, 0x43459c
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x24
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x110]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402774
push 1
push 0
push 0
lea eax, [esp + 0x514]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xd00]
call fcn.0040660b
add esp, 0xd04
ret
mov al, byte [esp + 0x908]
test al, al
mov al, byte [esp + 0x108]
je 0x402745
test al, al
jne 0x4026f7
mov ecx, 0x10
mov esi, 0x434550
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x24
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x110]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402774
push 1
push 0
push 0
lea eax, [esp + 0x914]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xd00]
call fcn.0040660b
add esp, 0xd04
ret
test al, al
jne 0x40275d
mov ecx, 0xc
mov esi, 0x434518
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x30
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x110]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0xd08]
pop edi
xor eax, eax
pop esi
call fcn.0040660b
add esp, 0xd04
ret
Function at 0x404759
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40476e
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x404780
xor eax, eax
jmp 0x4047b2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4047a4
cmp esi, eax
jae 0x40477c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404796
cmp esi, eax
jae 0x40477c
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x406a87
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.00406c80
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406b22
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 [0x44c714]
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 0x406b22
cmp eax, 1
je 0x406b43
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 0x406b22
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406aef
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406b1e
xor eax, eax
inc eax
jmp 0x406b62
cmp edi, eax
jae 0x406b26
xor eax, eax
jmp 0x406b62
cmp eax, esi
jae 0x406b2d
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 [0x44c714]
jmp 0x406b46
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 0x406d06
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x435c28
call fcn.00407e24
mov edi, 0x94
mov eax, edi
call fcn.00406c80
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 [0x44c714], ecx
mov eax, dword [esi + 4]
mov dword [0x44c720], eax
mov edx, dword [esi + 8]
mov dword [0x44c724], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44c718], esi
cmp ecx, 2
je 0x406d66
or esi, 0x8000
mov dword [0x44c718], esi
shl eax, 8
add eax, edx
mov dword [0x44c71c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406da1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406da1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406db9
cmp eax, 0x20b
je 0x406da6
mov dword [ebp - 0x1c], esi
jmp 0x406dcd
cmp dword [ecx + 0x84], 0xe
jbe 0x406da1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406dc7
cmp dword [ecx + 0x74], 0xe
jbe 0x406da1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00409c24
pop ecx
test eax, eax
jne 0x406de1
push 0x1c
call fcn.00406ce2
pop ecx
call fcn.0040914d
test eax, eax
jne 0x406df2
push 0x10
call fcn.00406ce2
pop ecx
call fcn.0040c1a7
mov dword [ebp - 4], esi
call fcn.0040bfa9
test eax, eax
jge 0x406e0b
push 0x1b
call fcn.00406cbd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44f170], eax
call fcn.0040be87
mov dword [0x44c704], eax
call fcn.0040bde5
test eax, eax
jge 0x406e31
push 8
call fcn.00406cbd
pop ecx
call fcn.0040bbb2
test eax, eax
jge 0x406e42
push 9
call fcn.00406cbd
pop ecx
push 1
call fcn.00406f89
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x406e58
push eax
call fcn.00406cbd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040bb55
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x406e79
movzx eax, word [ebp - 0x40]
jmp 0x406e7c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00424944
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x406e9a
push edi
call fcn.004070b6
call fcn.004070d8
jmp 0x406ecc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00407e5f
ret
Function at 0x406ff3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x435c50
call fcn.00407e24
push 8
call fcn.00409dc8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44c754], esi
jne 0x407027
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44c750], esi
mov al, byte [ebp + 0x10]
mov byte [0x44c74c], al
cmp dword [ebp + 0xc], edi
jne 0x407071
cmp dword [0x44f168], edi
je 0x407061
mov eax, dword [0x44f164]
sub eax, 4
mov dword [0x44f164], eax
cmp eax, dword [0x44f168]
jb 0x407061
mov eax, dword [eax]
cmp eax, edi
je 0x407042
call eax
jmp 0x407042
push 0x4480b0
mov eax, 0x4480a8
call fcn.00406f71
pop ecx
push 0x4480bc
mov eax, 0x4480b4
call fcn.00406f71
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4070a2
cmp dword [ebp + 0x10], edi
jne 0x4070b0
mov dword [0x44c754], esi
push dword [ebp + 8]
call fcn.00406f2f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4070af
push 8
call fcn.00409d13
pop ecx
ret
call fcn.00407e5f
ret
Function at 0x40b618
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40b646
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40b64d
cmp ebx, dword [eax + 4]
jae 0x40b64d
xor eax, eax
jmp 0x40b83d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b65e
xor eax, eax
inc eax
jmp 0x40b83c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b674
cmp ecx, edx
jae 0x40b7b9
cmp dword [eax + 4], 0
je 0x40b67d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b665
cmp dword [ebp + 8], 0
je 0x40b69f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b7b9
cmp eax, esi
jae 0x40b7b9
mov eax, dword [0x44c8e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b6c4
cmp dword [esi*4 + 0x44c8f0], edi
je 0x40b7bd
inc esi
cmp esi, eax
jl 0x40b6b2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b839
cmp dword [ebp - 8], 0x1000000
jne 0x40b839
test byte [ebp - 0xc], 0xcc
je 0x40b742
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40b839
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b839
cmp word [eax + 0x18], 0x10b
jne 0x40b839
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40b839
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b742
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b742
test byte [ecx + 0x27], 0x80
jne 0x40b7b9
push 1
push 0x44c930
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b656
mov ecx, dword [0x44c8e8]
test ecx, ecx
mov edx, ecx
jle 0x40b776
lea eax, [ecx*4 + 0x44c8ec]
cmp dword [eax], edi
je 0x40b776
dec edx
sub eax, 4
test edx, edx
jg 0x40b76a
test edx, edx
jne 0x40b7a7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b783
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b79b
lea eax, [edx*4 + 0x44c8f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b789
cmp ecx, 0x10
jge 0x40b7a7
inc ecx
mov dword [0x44c8e8], ecx
push 0
push 0x44c930
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b656
xor eax, eax
jmp 0x40b83c
test esi, esi
jle 0x40b656
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x44c930
call ebx
test eax, eax
jne 0x40b656
cmp dword [esi*4 + 0x44c8f0], edi
je 0x40b813
mov eax, dword [0x44c8e8]
lea esi, [eax - 1]
test esi, esi
jl 0x40b801
cmp dword [esi*4 + 0x44c8f0], edi
je 0x40b7fd
dec esi
jns 0x40b7f1
test esi, esi
jge 0x40b811
cmp eax, 0x10
jge 0x40b80c
inc eax
mov dword [0x44c8e8], eax
lea esi, [eax - 1]
jmp 0x40b813
je 0x40b82b
xor ecx, ecx
test esi, esi
jl 0x40b82b
lea eax, [ecx*4 + 0x44c8f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b819
push 0
push 0x44c930
call ebx
jmp 0x40b656
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b841
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x448924]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x448f10]
je 0x40b876
inc eax
cmp eax, 0x13
jb 0x40b867
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x448f10]
jne 0x40b99c
mov eax, dword [0x44c70c]
cmp eax, 1
je 0x40b974
cmp eax, edx
jne 0x40b8a6
cmp dword [0x448964], 1
je 0x40b974
cmp ecx, 0xfc
je 0x40b99c
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b8dc
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040b490
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407440
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b910
mov eax, edi
push eax
call fcn.00407440
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x435fe4
push edi
call fcn.0040e840
add esp, 0x10
push edi
call fcn.00407440
push dword [esi + 0x448f14]
mov ebx, eax
call fcn.00407440
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406c80
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040b490
push edi
push ebx
call fcn.0040b4a0
push 0x435fe0
push ebx
call fcn.0040b4a0
push dword [esi + 0x448f14]
push ebx
call fcn.0040b4a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040f39c
add esp, 0x2c
jmp 0x40b99c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x448f14]
push dword [esi]
call fcn.00407440
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040660b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40f39c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44cba0], ebx
push esi
push edi
jne 0x40f41c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f457
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437ba4
push edi
call esi
test eax, eax
mov dword [0x44cba0], eax
je 0x40f457
push 0x437b94
push edi
call esi
push 0x437b80
push edi
mov dword [0x44cba4], eax
call esi
cmp dword [0x44c714], 2
mov dword [0x44cba8], eax
jne 0x40f41c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44cbb0], eax
je 0x40f41c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44cbac], eax
mov eax, dword [0x44cbac]
test eax, eax
je 0x40f461
call eax
test eax, eax
je 0x40f448
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44cbb0]
test eax, eax
je 0x40f448
test byte [ebp - 8], 1
jne 0x40f461
cmp dword [0x44c720], 4
jb 0x40f45b
or byte [ebp + 0x12], 0x20
jmp 0x40f480
xor eax, eax
jmp 0x40f490
or byte [ebp + 0x12], 4
jmp 0x40f480
mov eax, dword [0x44cba4]
test eax, eax
je 0x40f480
call eax
mov ebx, eax
test ebx, ebx
je 0x40f480
mov eax, dword [0x44cba8]
test eax, eax
je 0x40f480
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44cba0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f5b4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x448924]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40f5e5
xor eax, eax
jmp 0x40f76e
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44ee00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40f621
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00410f76
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f6fc
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40f73a
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40f685
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40f676
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40f656
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f6c5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40f6ce
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40f647
jmp 0x40f6d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40f769
cmp dword [ebp - 0x6c], edi
je 0x40f73a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40f72f
call fcn.004080f5
mov dword [eax], 9
call fcn.004080fe
mov dword [eax], esi
jmp 0x40f764
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f724
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40f6d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40f6d0
push dword [ebp - 0x6c]
call fcn.00408107
pop ecx
jmp 0x40f764
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40f752
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40f752
xor eax, eax
jmp 0x40f76c
call fcn.004080f5
mov dword [eax], 0x1c
call fcn.004080fe
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40f76c
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040660b
add ebp, 0x3a0
leave
ret