joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034310
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
call fcn.1002fbb0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
movzx eax, word [edx]
test ax, ax
je 0x10034349
mov ecx, eax
cmp cx, 0x20
ja 0x10034349
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x10034335
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
mov dword [ebp - 8], esi
cmp eax, 0x22
jne 0x1003435c
movzx ecx, word [edx + 2]
xor eax, eax
cmp esi, 0x22
lea esi, [edx + 2]
sete al
lea eax, [eax*2 + 0x20]
movzx edi, ax
mov eax, dword [ebp - 8]
cmp ax, 0x22
cmovne esi, edx
movzx edx, cx
cmp cx, di
je 0x1003439e
movzx ecx, cx
test cx, cx
je 0x100343a8
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
mov edx, eax
cmp ax, di
jne 0x10034386
mov eax, dword [ebp - 8]
test dx, dx
je 0x100343ab
add esi, 2
jmp 0x100343ab
mov eax, dword [ebp - 8]
cmp ax, 0x22
jne 0x100343ba
cmp word [esi], 0x20
jne 0x100343ba
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x10034519
mov ecx, eax
nop dword [eax + eax]
cmp cx, 0x22
jne 0x10034477
movzx eax, word [esi + 2]
add esi, 2
mov ebx, esi
test ax, ax
je 0x10034404
mov ecx, eax
nop word [eax + eax]
cmp cx, 0x22
je 0x10034404
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x100343f0
mov edi, ebx
sub edi, esi
sar edi, 1
test edi, edi
jle 0x10034436
mov ecx, dword [ebp - 4]
add edi, edi
mov edx, dword [ecx]
lea eax, [edi + 2]
push eax
call dword [edx]
push edi
push esi
push eax
mov dword [ebp - 8], eax
call fcn.10040960
mov eax, dword [ebp - 8]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
mov edi, eax
jmp 0x10034438
xor edi, edi
mov ecx, dword [ebp - 4]
add ecx, 4
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
sub eax, esi
cmp eax, 4
jl 0x10034457
mov eax, dword [ecx + 0xc]
mov dword [esi + eax], edi
add dword [ecx + 0x14], 4
jmp 0x10034463
lea eax, [esi + 4]
push eax
call fcn.10036b10
mov dword [eax + esi], edi
cmp word [ebx], 0
mov esi, ebx
je 0x10034508
lea esi, [ebx + 2]
jmp 0x10034508
cmp cx, 0x20
jbe 0x10034505
mov ebx, esi
movzx ecx, cx
cmp cx, 0x22
je 0x100344a0
cmp cx, 0x20
jbe 0x100344a0
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x10034486
mov edi, ebx
sub edi, esi
sar edi, 1
test edi, edi
jle 0x100344d2
mov ecx, dword [ebp - 4]
add edi, edi
mov edx, dword [ecx]
lea eax, [edi + 2]
push eax
call dword [edx]
push edi
push esi
push eax
mov dword [ebp - 8], eax
call fcn.10040960
mov eax, dword [ebp - 8]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
mov edi, eax
jmp 0x100344d4
xor edi, edi
mov ecx, dword [ebp - 4]
add ecx, 4
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
sub eax, esi
cmp eax, 4
jl 0x100344f5
mov eax, dword [ecx + 0xc]
mov dword [esi + eax], edi
mov esi, ebx
add dword [ecx + 0x14], 4
jmp 0x10034508
lea eax, [esi + 4]
push eax
call fcn.10036b10
mov dword [eax + esi], edi
mov esi, ebx
jmp 0x10034508
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x100343d0
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
pop edi
pop esi
shr eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004a02a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10049ea0
Function at 0x41ce52fc
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x41cfa62f
call fcn.41cf1a54
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 8]
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0xc]
mov eax, dword [esi + 0x38]
push esi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.41ceee03
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [eax + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.41ce4f32
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push edi
mov dword [ebp - 4], ebx
call dword [eax + 0x28]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x41ce5362
cmp dword [ebp - 0x18], ebx
je 0x41ce5362
push 5
pop ebx
push ebx
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x14]
call fcn.41ce10b9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41ce5b83
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41cfa706
call fcn.41cf1a54
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call fcn.41ce1152
xor ebx, ebx
mov dword [esi], 0x41cfb670
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea edi, [esi + 0x38]
mov dword [edi], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 5
call fcn.41ceebca
push dword [ebp + 0x10]
lea eax, [esi + 0x3c]
push eax
mov byte [ebp - 4], 6
call fcn.41ce140a
mov eax, dword [esi + 0xc]
push dword [eax + 8]
push edi
call fcn.41ce140a
mov word [esi + 4], bx
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc]
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, esi
call fcn.41ce52fc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x41ce98ec
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
add ecx, 0xffffff88
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x84]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x50]
test esi, esi
je 0x41ce9914
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x41ceab15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41cfa948
call fcn.41cf1a54
sub esp, 0x420
mov eax, dword [0x41d01320]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x41d01088]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x41ceab80
call fcn.41ce5c95
mov esi, eax
jmp 0x41ceac55
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x41ceac22
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x41ceac22
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
cmp eax, 0x400
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
jbe 0x41ceabd9
push eax
lea ecx, [ebp - 0x418]
call fcn.41ceac94
jmp 0x41ceabec
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x41ceabec
cmp dword [ebp - 0x418], edi
mov dword [ebp - 4], 1
jne 0x41ceac02
mov esi, 0x8007000e
jmp 0x41ceac49
call dword [0x41d01088]
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41ceac29
call fcn.41ce5c95
jmp 0x41ceac47
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [eax + esi*2], di
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.41ceacb5
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41ceac6e
lea ecx, [ebp - 0x418]
call fcn.41cebd87
lea ecx, [ebp - 0x41c]
call fcn.41ce6335
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.41cf14de
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41ceb86e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41d01320]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.41ce6027
cmp eax, esi
jne 0x41ceb8f6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x41ceb8bf
lea eax, [ebp - 0x70]
push eax
call fcn.41ceb86e
cmp eax, esi
jne 0x41ceb8f5
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x41ceb8b2
call fcn.41ce6010
push dword [ebp + 0x19c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.41ce6010
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.41cf14de
add ebp, 0x194
leave
ret 4
Function at 0x41cebc89
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41cebc94
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x41cedb3b
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
movsx edi, word [esp + 0x10]
mov esi, ecx
push edi
push dword [esi + 0x28]
call ebx
push 0x44be
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push eax
call ebx
cmp word [esp + 0x10], 0
je 0x41cedb72
mov ecx, esi
call fcn.41ced9d5
pop edi
pop esi
pop ebx
ret 4

Function at 0x41cedb78
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
push 0x452f
push dword [esi + 4]
call edi
movsx ebx, word [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push eax
call ebp
push 0x44bd
push dword [esi + 4]
call edi
push ebx
push eax
call ebp
cmp word [esp + 0x14], 0
je 0x41cedbd0
movsx eax, word [esi + 0x48]
mov ecx, dword [esi + 0x44]
imul eax, eax, 0x1c
add eax, dword [ecx + 4]
push 0
movsx eax, word [eax + 8]
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.41ced62b
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41ceef5e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41d01320]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [ebp - 4], eax
push edi
je 0x41ceefe8
push ebx
call fcn.41cf20fd
mov esi, eax
mov dword [esp], str._chs.DLL
call fcn.41cf20fd
add esi, eax
lea edi, [esi + esi + 2]
mov eax, edi
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.41cf20c0
mov esi, esp
test esi, esi
je 0x41ceefe8
push edi
push 0
push esi
call fcn.41cf0a70
push ebx
push esi
call fcn.41cf22e3
push 0x41cfc444
push esi
call fcn.41cf22b9
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x1c
push esi
call edi
test eax, eax
jne 0x41cef05d
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41ceefec
xor eax, eax
jmp 0x41cef05d
push ebx
push esi
call fcn.41cf22e3
push 0x41cfc440
push esi
call fcn.41cf22b9
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.41cf22b9
mov ebx, str..DLL
push ebx
push esi
call fcn.41cf22b9
add esp, 0x20
push esi
call edi
test eax, eax
jne 0x41cef05d
lea eax, [ebp - 0x2c]
push eax
call fcn.41cf20fd
cmp eax, 3
pop ecx
jne 0x41cef05a
push dword [ebp + 8]
and word [ebp - 0x28], 0
push esi
call fcn.41cf22e3
push 0x41cfc440
push esi
call fcn.41cf22b9
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.41cf22b9
push ebx
push esi
call fcn.41cf22b9
add esp, 0x20
push esi
call edi
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 4]
call fcn.41cf14de
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41cf07eb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41d01320]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.41cf07bb
mov eax, 0x41ce0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.41cf0a70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41cf084d
cmp dword [ebp - 0x1c], 5
jb 0x41cf0865
jmp 0x41cf0861
cmp dword [ebp - 0x10], 1
jne 0x41cf0865
cmp dword [ebp - 0x1c], 4
ja 0x41cf0861
jne 0x41cf0865
cmp dword [ebp - 0x18], 0
jbe 0x41cf0865
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x41cfc658
call fcn.41ce1014
test eax, eax
jge 0x41cf0886
mov byte [0x41d021e4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.41cf14de
add ebp, 0x78
leave
ret

Function at 0x41cf2465
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x41cf2555
mov eax, 0x94
call fcn.41cf20c0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41cf25ca
mov ecx, dword [esi + 0x10]
mov dword [0x41d0252c], ecx
mov eax, dword [esi + 4]
mov dword [0x41d02538], eax
mov edx, dword [esi + 8]
mov dword [0x41d0253c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x41d02530], esi
je 0x41cf24d0
or esi, 0x8000
mov dword [0x41d02530], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x41d02534], eax
call fcn.41cf295b
test eax, eax
pop ecx
je 0x41cf25ca
call fcn.41cf4660
test eax, eax
jne 0x41cf24fd
call fcn.41cf29ac
jmp 0x41cf25ca
call fcn.41cf60b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41d03bd4], eax
call fcn.41cf5f8e
mov dword [0x41d02370], eax
call fcn.41cf5a6f
test eax, eax
jl 0x41cf254e
call fcn.41cf5eec
test eax, eax
jl 0x41cf2549
call fcn.41cf5cb9
test eax, eax
jl 0x41cf2549
push 0
call fcn.41cf372c
test eax, eax
pop ecx
jne 0x41cf2549
inc dword [0x41d0236c]
jmp 0x41cf25db
call fcn.41cf5c6d
call fcn.41cf4449
jmp 0x41cf24f3
test eax, eax
jne 0x41cf2585
cmp dword [0x41d0236c], eax
jle 0x41cf25ca
dec dword [0x41d0236c]
cmp dword [0x41d02568], eax
jne 0x41cf2574
call fcn.41cf386a
call fcn.41cf5c6d
call fcn.41cf4449
call fcn.41cf29ac
jmp 0x41cf25db
cmp eax, 2
jne 0x41cf25ce
push 0x8c
push 1
call fcn.41cf59b4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41cf25ca
push esi
push dword [0x41d014a4]
call dword [0x41d02580]
test eax, eax
push esi
je 0x41cf25c4
call fcn.41cf4466
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x41cf25db
call fcn.41cf0c2a
pop ecx
xor eax, eax
jmp 0x41cf25de
cmp eax, 3
jne 0x41cf25db
push 0
call fcn.41cf4631
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x41cf3796
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41cfc7e0
call fcn.41cf0ad0
push 8
call fcn.41cf2b7e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41d0256c], esi
jne 0x41cf37ca
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41d02568], esi
mov al, byte [ebp + 0x10]
mov byte [0x41d02564], al
cmp dword [ebp + 0xc], edi
jne 0x41cf3814
cmp dword [0x41d03ba8], edi
je 0x41cf3804
mov eax, dword [0x41d03ba4]
sub eax, 4
mov dword [0x41d03ba4], eax
cmp eax, dword [0x41d03ba8]
jb 0x41cf3804
mov eax, dword [eax]
cmp eax, edi
je 0x41cf37e5
call eax
jmp 0x41cf37e5
push 0x41d01048
mov eax, 0x41d01040
call fcn.41cf3714
pop ecx
push 0x41d01054
mov eax, 0x41d0104c
call fcn.41cf3714
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41cf3845
cmp dword [ebp + 0x10], edi
jne 0x41cf3853
mov dword [0x41d0256c], esi
push dword [ebp + 8]
call fcn.41cf36d2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41cf3852
push 8
call fcn.41cf2ac9
pop ecx
ret
call fcn.41cf0b0b
ret

Function at 0x41cf62b7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41d01320]
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 + 0x41d01580]
je 0x41cf62ec
inc eax
cmp eax, 0x13
jb 0x41cf62dd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41d01580]
jne 0x41cf6412
mov eax, dword [0x41d02378]
cmp eax, 1
je 0x41cf63ea
cmp eax, edx
jne 0x41cf631c
cmp dword [0x41d0237c], 1
je 0x41cf63ea
cmp ecx, 0xfc
je 0x41cf6412
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 0x41cf6352
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.41cf4810
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.41cf0da0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41cf6386
mov eax, edi
push eax
call fcn.41cf0da0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41cfc834
push edi
call fcn.41cf6680
add esp, 0x10
push edi
call fcn.41cf0da0
push dword [esi + 0x41d01584]
mov ebx, eax
call fcn.41cf0da0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.41cf20c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.41cf4810
push edi
push ebx
call fcn.41cf4820
push 0x41cfc830
push ebx
call fcn.41cf4820
push dword [esi + 0x41d01584]
push ebx
call fcn.41cf4820
push 0x12010
push 0x41cfc7fc
push ebx
call fcn.41cf6587
add esp, 0x2c
jmp 0x41cf6412
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41d01584]
push dword [esi]
call fcn.41cf0da0
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.41cf14de
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41cf6587
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41d026a4], ebx
push esi
push edi
jne 0x41cf6607
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41cf6642
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41d026a4], eax
je 0x41cf6642
push 0x41cfcf74
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41d026a8], eax
call esi
cmp dword [0x41d0252c], 2
mov dword [0x41d026ac], eax
jne 0x41cf6607
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41d026b4], eax
je 0x41cf6607
push 0x41cfcf2c
push edi
call esi
mov dword [0x41d026b0], eax
mov eax, dword [0x41d026b0]
test eax, eax
je 0x41cf664c
call eax
test eax, eax
je 0x41cf6633
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41d026b4]
test eax, eax
je 0x41cf6633
test byte [ebp - 8], 1
jne 0x41cf664c
cmp dword [0x41d02538], 4
jb 0x41cf6646
or byte [ebp + 0x12], 0x20
jmp 0x41cf666b
xor eax, eax
jmp 0x41cf667b
or byte [ebp + 0x12], 4
jmp 0x41cf666b
mov eax, dword [0x41d026a8]
test eax, eax
je 0x41cf666b
call eax
mov ebx, eax
test ebx, ebx
je 0x41cf666b
mov eax, dword [0x41d026ac]
test eax, eax
je 0x41cf666b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41d026a4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cf77a9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x41d01320]
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 0x41cf77da
xor eax, eax
jmp 0x41cf7963
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 + 0x41d03aa0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41cf7816
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.41cf95a6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41cf78f1
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41cf792f
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 0x41cf787a
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41cf786b
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 0x41cf784b
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 0x41cf78ba
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41cf78c3
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41cf783c
jmp 0x41cf78c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41cf795e
cmp dword [ebp - 0x6c], edi
je 0x41cf792f
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41cf7924
call fcn.41cf6502
mov dword [eax], 9
call fcn.41cf650b
mov dword [eax], esi
jmp 0x41cf7959
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 0x41cf7919
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41cf78c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41cf78c5
push dword [ebp - 0x6c]
call fcn.41cf6514
pop ecx
jmp 0x41cf7959
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41cf7947
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41cf7947
xor eax, eax
jmp 0x41cf7961
call fcn.41cf6502
mov dword [eax], 0x1c
call fcn.41cf650b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41cf7961
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.41cf14de
add ebp, 0x3a0
leave
ret
Function at 0x41cf99dc
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.41cf20c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41cf9a77
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 [0x41d0252c]
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 0x41cf9a77
cmp eax, 1
je 0x41cf9a98
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 0x41cf9a77
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41cf9a44
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41cf9a73
xor eax, eax
inc eax
jmp 0x41cf9ab7
cmp edi, eax
jae 0x41cf9a7b
xor eax, eax
jmp 0x41cf9ab7
cmp eax, esi
jae 0x41cf9a82
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 [0x41d0252c]
jmp 0x41cf9a9b
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