joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405270
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x431eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x4338c5
push str.32770
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, dword [sym.imp.USER32.dll_FindWindowExA]
mov ebp, eax
jmp 0x4052b0
push 0
push str.Static
push 0
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x40538a
call fcn.0042a430
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x32
or eax, ecx
mov dword [esp + 0x20], 0
jge 0x405304
push 0x32
lea ecx, [esp + 0x14]
call fcn.004019a0
mov esi, dword [esp + 0x10]
push 0x32
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi - 8]
mov eax, 0x32
cmp ecx, eax
jl 0x40541c
mov dword [esi - 0xc], eax
mov byte [esi + 0x32], 0
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x405368
push 0x433d64
push esi
call fcn.00413e06
add esp, 8
test eax, eax
je 0x405368
sub eax, esi
cmp eax, 0xffffffff
je 0x405368
push 0x4338c5
push str.Button
push 0
push ebp
call ebx
push 0x4338c5
push str.Button
push eax
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x4053b6
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40538a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x4338c5
push str.32770
push ebp
push 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4052b0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 1
push 0x201
push edi
mov byte [eax + 0x41], 1
call ebx
push 0
push 1
push 0x202
push edi
call ebx
mov eax, dword [esp + 0x14]
mov dword [eax + 0x64], ebp
mov byte [eax + 0x43], 1
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x80070057
call fcn.00401360
int3
Function at 0x409140
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x441168]
mov dword [esp + 0x1d0], eax
lea eax, [esp + 0x40]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ax, word [esp + 0x40]
cmp ah, 1
je 0x40918e
cmp al, 1
je 0x40918e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov ecx, dword [esp + 0x1d0]
call fcn.00413df8
add esp, 0x1d4
ret
push esi
push edi
mov word [esp + 8], 0
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
push 0x40
lea ecx, [esp + 0xc]
push ecx
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_gethostname]
movsx eax, byte [esp + 8]
cdq
mov ecx, 7
idiv ecx
mov esi, edx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1d8]
pop edi
mov eax, esi
pop esi
call fcn.00413df8
add esp, 0x1d4
ret

Function at 0x409230
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4321b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x441168]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], eax
call fcn.0040b729
xor ebx, ebx
push ebx
lea esi, [edi + 4]
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], ebx
call fcn.0040b7bc
test eax, eax
je 0x409372
mov ecx, edi
call fcn.00409140
mov edi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x14]
cmp edi, ecx
jne 0x409346
xor edx, edx
push esi
mov dword [esp + 0x3e], edx
push 0x18
mov dword [esp + 0x46], edx
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x4e], edx
push str.2010.12.30
mov dword [esp + 0x56], edx
push str.DATE
mov dword [esp + 0x5e], edx
push str.DATA
mov word [esp + 0x50], bx
mov word [esp + 0x66], dx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call fcn.0042a430
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
movzx eax, word [esp + 0x16]
movzx ecx, word [esp + 0x12]
movzx edx, word [esp + 0x10]
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push str._d._d._d
push eax
mov byte [esp + 0x70], 1
call fcn.00405bf0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push esi
call fcn.00413f33
add esp, 0x1c
test eax, eax
mov byte [esp + 0x5c], bl
lea eax, [esi - 0x10]
jne 0x40935b
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409346
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0040b74d
mov al, 1
jmp 0x409385
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409372
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0040b74d
xor al, al
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x48]
pop ebx
call fcn.00413df8
add esp, 0x54
ret
Function at 0x409450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x441168]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x8c], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x1f
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 4]
push eax
push 0x80
lea ecx, [esp + 0x10]
push ecx
push str.http:__www.999dh.net__default
push 0x433f44
push str.DATA
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4094b0
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0x84]
call fcn.00401c00
mov ecx, dword [esp + 0x8c]
call fcn.00413df8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409898
Capabilities:
Download url
Receive data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432248
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
call fcn.00409230
test al, al
jne 0x409960
push 0
push 0
push str.c:windowsyldown.ini
push str.http:__www.k678.cn_setmainpage.htm
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, esi
call fcn.00409450
mov ecx, esi
call fcn.004094e0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.0042a430
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xa]
movzx edx, word [esp + 8]
push eax
push ecx
push edx
lea eax, [esp + 0x10]
push str._d._d._d
push eax
mov dword [esp + 0x34], 0
call fcn.00405bf0
add esp, 0x14
add esi, 4
push esi
mov esi, dword [esp + 8]
push esi
push str.DATE
push str.DATA
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40996e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, esi
call fcn.00409450
mov ecx, esi
call fcn.004094e0
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
jmp 0x409880
Function at 0x409f48
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 0x409f9b
call fcn.0042eb89
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x409f9b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x409f91
xor eax, eax
jmp 0x40a0b4
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 0x409fcb
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 0x409fcb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40a0b1
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x409ff8
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00409b41
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40a0b1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40a041
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40a041
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a03b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00409b41
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40a0a1
and dword [ebp + 0xc], 0
jmp 0x40a0a1
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40a0a1
push 0xc
call fcn.00425da2
mov esi, eax
test esi, esi
pop ecx
je 0x40a083
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 0x40a085
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40a09c
push dword [ebp - 8]
call fcn.0042486a
jmp 0x40a0a1
call fcn.00424841
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40a006
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x413bd2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x436bb8
call fcn.00416888
push 8
call fcn.00417f3f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x444350], esi
jne 0x413c06
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44434c], esi
mov al, byte [ebp + 0x10]
mov byte [0x444348], al
cmp dword [ebp + 0xc], edi
jne 0x413c50
cmp dword [0x445d2c], edi
je 0x413c40
mov eax, dword [0x445d28]
sub eax, 4
mov dword [0x445d28], eax
cmp eax, dword [0x445d2c]
jb 0x413c40
mov eax, dword [eax]
cmp eax, edi
je 0x413c21
call eax
jmp 0x413c21
push 0x4400a0
mov eax, 0x440098
call fcn.00413b50
pop ecx
push 0x4400ac
mov eax, 0x4400a4
call fcn.00413b50
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x413c81
cmp dword [ebp + 0x10], edi
jne 0x413c8f
mov dword [0x444350], esi
push dword [ebp + 8]
call fcn.00413b0e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x413c8e
push 8
call fcn.00417e8a
pop ecx
ret
call fcn.004168c3
ret

Function at 0x41503a
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.00415120
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4150d5
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 [0x444310]
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 0x4150d5
cmp eax, 1
je 0x4150f6
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 0x4150d5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4150a2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4150d1
xor eax, eax
inc eax
jmp 0x415115
cmp edi, eax
jae 0x4150d9
xor eax, eax
jmp 0x415115
cmp eax, esi
jae 0x4150e0
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 [0x444310]
jmp 0x4150f9
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 0x41590c
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 0x415929
call fcn.00416e1a
mov dword [eax], 0x16
xor eax, eax
jmp 0x415993
push esi
push 0x8c
push 1
call fcn.004170ad
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41597e
push esi
call fcn.00417a4b
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 0x41595c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x415877
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x415992
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041430d
test ebx, ebx
pop ecx
je 0x415990
push ebx
call fcn.00416e2c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x419c06
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x441168]
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 0x419c37
xor eax, eax
jmp 0x419dc0
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 + 0x4449a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x419c73
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041e7b0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x419d4e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x419d8c
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 0x419cd7
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x419cc8
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 0x419ca8
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 0x419d17
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x419d20
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x419c99
jmp 0x419d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x419dbb
cmp dword [ebp - 0x6c], edi
je 0x419d8c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x419d81
call fcn.00416e1a
mov dword [eax], 9
call fcn.00416e23
mov dword [eax], esi
jmp 0x419db6
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 0x419d76
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x419d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x419d22
push dword [ebp - 0x6c]
call fcn.00416e2c
pop ecx
jmp 0x419db6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x419da4
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x419da4
xor eax, eax
jmp 0x419dbe
call fcn.00416e1a
mov dword [eax], 0x1c
call fcn.00416e23
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x419dbe
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00413df8
add ebp, 0x3a0
leave
ret
Function at 0x41aaf0
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 0x41ab1e
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 0x41ab25
cmp ebx, dword [eax + 4]
jae 0x41ab25
xor eax, eax
jmp 0x41ad15
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41ab36
xor eax, eax
inc eax
jmp 0x41ad14
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41ab4c
cmp ecx, edx
jae 0x41ac91
cmp dword [eax + 4], 0
je 0x41ab55
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41ab3d
cmp dword [ebp + 8], 0
je 0x41ab77
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41ac91
cmp eax, esi
jae 0x41ac91
mov eax, dword [0x4444e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41ab9c
cmp dword [esi*4 + 0x4444f0], edi
je 0x41ac95
inc esi
cmp esi, eax
jl 0x41ab8a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ad11
cmp dword [ebp - 8], 0x1000000
jne 0x41ad11
test byte [ebp - 0xc], 0xcc
je 0x41ac1a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41ad11
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ad11
cmp word [eax + 0x18], 0x10b
jne 0x41ad11
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41ad11
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41ac1a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41ac1a
test byte [ecx + 0x27], 0x80
jne 0x41ac91
push 1
push 0x444530
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41ab2e
mov ecx, dword [0x4444e8]
test ecx, ecx
mov edx, ecx
jle 0x41ac4e
lea eax, [ecx*4 + 0x4444ec]
cmp dword [eax], edi
je 0x41ac4e
dec edx
sub eax, 4
test edx, edx
jg 0x41ac42
test edx, edx
jne 0x41ac7f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41ac5b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41ac73
lea eax, [edx*4 + 0x4444f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41ac61
cmp ecx, 0x10
jge 0x41ac7f
inc ecx
mov dword [0x4444e8], ecx
push 0
push 0x444530
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41ab2e
xor eax, eax
jmp 0x41ad14
test esi, esi
jle 0x41ab2e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x444530
call ebx
test eax, eax
jne 0x41ab2e
cmp dword [esi*4 + 0x4444f0], edi
je 0x41aceb
mov eax, dword [0x4444e8]
lea esi, [eax - 1]
test esi, esi
jl 0x41acd9
cmp dword [esi*4 + 0x4444f0], edi
je 0x41acd5
dec esi
jns 0x41acc9
test esi, esi
jge 0x41ace9
cmp eax, 0x10
jge 0x41ace4
inc eax
mov dword [0x4444e8], eax
lea esi, [eax - 1]
jmp 0x41aceb
je 0x41ad03
xor ecx, ecx
test esi, esi
jl 0x41ad03
lea eax, [ecx*4 + 0x4444f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41acf1
push 0
push 0x444530
call ebx
jmp 0x41ab2e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ad34
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x441168]
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 + 0x441848]
je 0x41ad69
inc eax
cmp eax, 0x13
jb 0x41ad5a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x441848]
jne 0x41ae8f
mov eax, dword [0x444368]
cmp eax, 1
je 0x41ae67
cmp eax, edx
jne 0x41ad99
cmp dword [0x4411f4], 1
je 0x41ae67
cmp ecx, 0xfc
je 0x41ae8f
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 0x41adcf
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004198d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00415790
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ae03
mov eax, edi
push eax
call fcn.00415790
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x436e9c
push edi
call fcn.0041e540
add esp, 0x10
push edi
call fcn.00415790
push dword [esi + 0x44184c]
mov ebx, eax
call fcn.00415790
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00415120
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004198d0
push edi
push ebx
call fcn.004198e0
push 0x436e98
push ebx
call fcn.004198e0
push dword [esi + 0x44184c]
push ebx
call fcn.004198e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041e443
add esp, 0x2c
jmp 0x41ae8f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44184c]
push dword [esi]
call fcn.00415790
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.00413df8
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x41cdb2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41cde0
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41cde5
cmp eax, 1
je 0x41cde5
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret