joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4735e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c7b30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
mov dword [esp + 0xc], ebx
call fcn.0040c870
push 1
push ebx
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], ebx
mov byte [esp + 0x10], 0x26
call fcn.00405a90
push eax
push ebx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00401a00
lea eax, [esp + 0xc]
push eax
push esi
mov byte [esp + 0x54], 1
call fcn.0044c0a0
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, 0x10
jb 0x47366c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00442830
add esp, 4
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0x24], 0xf
pop ebx
jb 0x473691
mov edx, dword [esp + 0x28]
push edx
call fcn.00442830
add esp, 4
mov ecx, dword [esp + 0x40]
mov eax, esi
mov dword fs:[0], ecx
add esp, 0x4c
ret

Function at 0x473a40
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c7b68
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push ecx
cmp eax, 0x10
mov edx, esp
lea eax, [esi + 4]
jb 0x473a6e
mov ecx, dword [eax]
jmp 0x473a70
mov ecx, eax
mov ebx, dword [esi + 0x14]
add ebx, ecx
mov dword [edx], ebx
cmp dword [esi + 0x18], 0x10
push ecx
mov ecx, esp
jb 0x473a82
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00405120
xor ebx, ebx
mov eax, 0x4f2fc0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x473ab0
sub eax, edx
push eax
push 0x4f2fc0
lea ecx, [esp + 0x1c]
call fcn.00401ab0
lea ecx, [esp + 0x14]
push ecx
push ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x40], ebx
call fcn.00498670
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x38], 0xffffffff
jb 0x473af6
mov edx, dword [esp + 0x18]
push edx
call fcn.00442830
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00448120
mov ecx, dword [eax]
mov dword [esi + 0x3c], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x40], edx
mov byte [esi + 0x44], 1
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret
Function at 0x475c69
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c7e43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00442840
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
call fcn.00448120
lea ecx, [esi + 0xc]
call fcn.00448120
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
lea eax, [esp + 0xb]
push eax
lea ecx, [esp + 0xf]
push ecx
lea ecx, [esi + 0x38]
mov byte [esp + 0x20], 1
call fcn.00475910
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x60], bl
mov dword [esi + 0x64], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x483940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8dff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], bl
mov dword [esp + 0x58], ebx
mov dword [esp + 0x14], ebx
xor ebp, ebp
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x483a82
mov ecx, dword [edi + 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp dword [esp + 0x14], edx
jae 0x483a82
cmp esi, ebx
je 0x4839c2
mov ecx, dword [esp + 0x68]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x24]
call fcn.00401720
mov edx, dword [esp + 0x64]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [esp + 0x24]
call fcn.00401720
mov eax, dword [edi + 0x14]
cmp dword [eax + ebp + 0x14], ebx
jne 0x483a22
mov eax, 0x4edd18
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4839f4
sub eax, edx
push eax
push 0x4edd18
lea ecx, [esp + 0x3c]
call fcn.00401ab0
mov ecx, dword [esp + 0x10]
or ecx, 1
lea eax, [esp + 0x34]
mov byte [esp + 0x58], 1
mov dword [esp + 0x10], ecx
jmp 0x483a24
add eax, ebp
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00401720
test byte [esp + 0x10], 1
mov dword [esp + 0x58], ebx
je 0x483a6d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
and ecx, 0xfffffffe
cmp eax, 0x10
mov dword [esp + 0x10], ecx
jb 0x483a5d
mov eax, dword [esp + 0x38]
push eax
call fcn.00442830
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x14], ecx
add ebp, 0x1c
jmp 0x483980
cmp esi, ebx
je 0x483abd
mov eax, 0x4f0054
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x483a90
mov esi, dword [esp + 0x68]
sub eax, edx
push eax
push ebx
push 0x4f0054
mov ecx, esi
call fcn.00405a90
cmp eax, 0xffffffff
je 0x483abd
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.00401720
mov esi, dword [esp + 0x60]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401a00
cmp dword [esp + 0x30], 0x10
jb 0x483af1
mov edx, dword [esp + 0x1c]
push edx
call fcn.00442830
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc
Function at 0x48aa60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c96b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4d37bc
mov dword [esp + 0x1c], 2
call fcn.0048a940
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
lea edi, [esi + 0x2c]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.00489ec0
mov eax, dword [edi + 4]
push eax
call fcn.00442830
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x20]
add esp, 4
cmp eax, 0x10
jb 0x48aad7
mov eax, dword [esi + 0xc]
push eax
call fcn.00442830
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
lea ecx, [esi + 4]
mov byte [esi + 0xc], bl
mov dword [esp + 0x1c], 0xffffffff
call fcn.00442860
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x49bc49
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cb0c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00442840
lea eax, [esp + 0xb]
push eax
lea ecx, [esp + 0xf]
xor ebx, ebx
push ecx
lea ecx, [esi + 8]
mov dword [esp + 0x20], ebx
mov dword [esi + 4], 0x708
call fcn.0049bb80
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x34], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0xf
mov byte [esi + 0x3c], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a5c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cc330
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0044c0a0
add esp, 8
mov ecx, dword [esp + 0x30]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
jbe 0x4a5ca7
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
lea ebx, [esp + 0x24]
call fcn.004a57e0
add esp, 8
test al, al
jne 0x4a5ccf
mov ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 0x30]
jb 0x4a5c83
cmp dword [esp + 0x34], 0x10
jb 0x4a5cbb
mov eax, dword [esp + 0x20]
push eax
call fcn.00442830
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
sub esi, edi
push esi
push edi
lea edx, [esp + 0x24]
xor ebx, ebx
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00401a00
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x64], 1
call fcn.0044ccf0
mov eax, dword [esp + 0x58]
add esp, 8
cmp eax, 0x10
mov byte [esp + 0x5c], bl
jb 0x4a5d2c
mov edx, dword [esp + 0x3c]
push edx
call fcn.00442830
add esp, 4
cmp word [esp + 0x14], bx
je 0x4a5d53
lea eax, [esp + 0xc]
push eax
call fcn.00448be0
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00448180
add esp, 0xc
test eax, eax
jg 0x4a5ca7
mov ecx, dword [esp + 0x64]
push esi
push edi
call fcn.00401920
cmp dword [esp + 0x34], 0x10
jb 0x4a5d72
mov edx, dword [esp + 0x20]
push edx
call fcn.00442830
add esp, 4
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret
Function at 0x4a6d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push 0x4cc250
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push edi
push eax
call fcn.00465140
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4a6ed5
push ebp
push esi
xor ebp, ebp
jmp 0x4a6d50
mov eax, dword [edi + 0x3c]
cmp eax, ebx
je 0x4a6ebf
mov ecx, dword [edi + 0x40]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp ebp, edx
jae 0x4a6ebf
mov eax, 0x4f2fc0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a6d93
sub eax, esi
push eax
push 0x4f2fc0
lea ecx, [esp + 0x18]
call fcn.00401ab0
push ebp
lea edx, [esp + 0x68]
push edx
mov ecx, edi
mov dword [esp + 0x90], ebx
call fcn.00465500
mov esi, eax
mov eax, dword [esp + 0x98]
push 0x4e9138
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x94], 1
call fcn.00401bb0
push esi
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xa0], 2
call fcn.00401c60
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x94]
push 0x4f2fc0
push eax
push 0x4f17d0
mov byte [esp + 0x98], 3
call fcn.00469f50
mov eax, dword [esp + 0x44]
mov esi, 0x10
cmp eax, esi
jb 0x4a6e35
mov edx, dword [esp + 0x30]
push edx
call fcn.00442830
add esp, 4
cmp dword [esp + 0x60], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x4a6e58
mov eax, dword [esp + 0x4c]
push eax
call fcn.00442830
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x4a6e7b
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00442830
add esp, 4
cmp dword [esp + 0x28], esi
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x88], 0xffffffff
jb 0x4a6ea9
mov edx, dword [esp + 0x14]
push edx
call fcn.00442830
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
inc ebp
jmp 0x4a6d50
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
push eax
call fcn.00468130
pop esi
pop ebp
mov ecx, dword [esp + 0x78]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret
Function at 0x4b20c5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004b4b68
xor esi, esi
inc esi
cmp dword [0x52bca4], esi
pop ecx
jne 0x4b20ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x52bca0], esi
mov byte [0x52bc9c], al
jne 0x4b2153
mov ecx, dword [0x52d48c]
test ecx, ecx
je 0x4b2134
mov eax, dword [0x52d488]
sub eax, 4
cmp eax, ecx
jmp 0x4b212d
mov eax, dword [eax]
test eax, eax
je 0x4b211f
call eax
mov eax, dword [0x52d488]
sub eax, 4
cmp eax, dword [0x52d48c]
mov dword [0x52d488], eax
jae 0x4b2117
mov eax, 0x4e910c
mov esi, 0x4e9114
cmp eax, esi
mov edi, eax
jae 0x4b2153
mov eax, dword [edi]
test eax, eax
je 0x4b214c
call eax
add edi, 4
cmp edi, esi
jb 0x4b2144
mov eax, 0x4e9118
mov esi, 0x4e9120
cmp eax, esi
mov edi, eax
jae 0x4b2172
mov eax, dword [edi]
test eax, eax
je 0x4b216b
call eax
add edi, 4
cmp edi, esi
jb 0x4b2163
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4b2183
push 8
call fcn.004b4ad4
jmp 0x4b2195
push dword [ebp + 8]
mov dword [0x52bca4], 1
call fcn.004b201e
pop ecx
pop ebp
ret
Function at 0x4b2296
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x4d3f98
call fcn.004b4e4c
mov edi, 0x94
mov eax, edi
call fcn.004b1ed0
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 [0x52bc64], ecx
mov eax, dword [esi + 4]
mov dword [0x52bc70], eax
mov edx, dword [esi + 8]
mov dword [0x52bc74], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x52bc68], esi
cmp ecx, 2
je 0x4b22f6
or esi, 0x8000
mov dword [0x52bc68], esi
shl eax, 8
add eax, edx
mov dword [0x52bc6c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4b232f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b232f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4b2347
cmp eax, 0x20b
je 0x4b2334
mov dword [ebp - 0x1c], edi
jmp 0x4b235b
cmp dword [ecx + 0x84], 0xe
jbe 0x4b232f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4b2355
cmp dword [ecx + 0x74], 0xe
jbe 0x4b232f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004b617f
pop ecx
test eax, eax
jne 0x4b236f
push 0x1c
call fcn.004b2272
pop ecx
call fcn.004b4379
test eax, eax
jne 0x4b2380
push 0x10
call fcn.004b2272
pop ecx
call fcn.004b57d4
mov dword [ebp - 4], edi
call fcn.004b5f67
test eax, eax
jge 0x4b2399
push 0x1b
call fcn.004b224d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x52d480], eax
call fcn.004b5e45
mov dword [0x52bca8], eax
call fcn.004b5da3
test eax, eax
jge 0x4b23bf
push 8
call fcn.004b224d
pop ecx
call fcn.004b5b70
test eax, eax
jge 0x4b23d0
push 9
call fcn.004b224d
pop ecx
call fcn.004b2060
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x4b23e3
push eax
call fcn.004b224d
pop ecx
mov eax, dword [0x52bc84]
mov dword [0x52bc88], eax
push eax
push dword [0x52bc7c]
push dword [0x52bc78]
call fcn.0042f8c0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x4b2412
push esi
call fcn.004b2198
call fcn.004b21ba
jmp 0x4b2444
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004b4e87
ret

Function at 0x4b2772
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 0x4b278f
call fcn.004b6d0e
mov dword [eax], 0x16
xor eax, eax
jmp 0x4b27f9
push esi
push 0x88
push 1
call fcn.004b6d93
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4b27e4
push esi
call fcn.004b418a
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 0x4b27c2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4b26ce
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4b27f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004b262c
test ebx, ebx
pop ecx
je 0x4b27f6
push ebx
call fcn.004b6d20
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b585c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4f240c]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4f1d68]
je 0x4b5889
inc eax
cmp eax, 0x12
jb 0x4b587a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4f1d68]
jne 0x4b59bd
mov eax, dword [0x52bcb0]
cmp eax, 1
je 0x4b5998
cmp eax, edx
jne 0x4b58b9
cmp dword [0x4f1c04], 1
je 0x4b5998
cmp ecx, 0xfc
je 0x4b59bd
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b58f2
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004b44b0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004b34b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b5934
lea eax, [ebp - 0x10c]
push eax
call fcn.004b34b0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4f1510
push edi
call fcn.004b3380
add esp, 0x10
push edi
call fcn.004b34b0
push dword [esi + 0x4f1d6c]
mov ebx, eax
call fcn.004b34b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004b1ed0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004b44b0
push edi
push ebx
call fcn.004b44c0
push 0x4d44a8
push ebx
call fcn.004b44c0
push dword [esi + 0x4f1d6c]
push ebx
call fcn.004b44c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004b9225
add esp, 0x2c
jmp 0x4b59bd
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4f1d6c]
push dword [esi]
call fcn.004b34b0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004b8861
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b8cdb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4f240c]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4b8d04
xor eax, eax
jmp 0x4b8e72
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x52d380]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4b8d37
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004ba7db
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b8e09
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4b8e44
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4b8d92
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4b8d83
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4b8d66
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b8dd2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4b8ddb
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4b8d57
jmp 0x4b8ddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4b8e6d
cmp dword [ebp - 8], edi
je 0x4b8e44
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4b8e36
call fcn.004b6d0e
mov dword [eax], 9
call fcn.004b6d17
mov dword [eax], esi
jmp 0x4b8e3f
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b8e2b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4b8ddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4b8ddd
push dword [ebp - 8]
call fcn.004b6d20
pop ecx
or eax, 0xffffffff
jmp 0x4b8e70
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4b8e59
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4b8e59
xor eax, eax
jmp 0x4b8e70
call fcn.004b6d0e
mov dword [eax], 0x1c
call fcn.004b6d17
mov dword [eax], edi
jmp 0x4b8e3f
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004b8861
leave
ret
Function at 0x4b9225
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x52c034], ebx
push esi
push edi
jne 0x4b92a5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b92e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x52c034], eax
je 0x4b92e0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x52c038], eax
call esi
cmp dword [0x52bc64], 2
mov dword [0x52c03c], eax
jne 0x4b92a5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x52c044], eax
je 0x4b92a5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x52c040], eax
mov eax, dword [0x52c040]
test eax, eax
je 0x4b92ea
call eax
test eax, eax
je 0x4b92d1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x52c044]
test eax, eax
je 0x4b92d1
test byte [ebp - 8], 1
jne 0x4b92ea
cmp dword [0x52bc70], 4
jb 0x4b92e4
or byte [ebp + 0x12], 0x20
jmp 0x4b9309
xor eax, eax
jmp 0x4b9319
or byte [ebp + 0x12], 4
jmp 0x4b9309
mov eax, dword [0x52c038]
test eax, eax
je 0x4b9309
call eax
mov ebx, eax
test ebx, ebx
je 0x4b9309
mov eax, dword [0x52c03c]
test eax, eax
je 0x4b9309
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x52c034]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b9fc3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004b1ed0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ba058
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x52bc64]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4ba058
cmp eax, 1
je 0x4ba070
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ba058
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4ba02d
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4ba054
xor eax, eax
inc eax
jmp 0x4ba08c
cmp esi, ebx
jae 0x4ba05c
xor eax, eax
jmp 0x4ba08c
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x52bc64]
jmp 0x4ba072
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret