joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b1b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x495508
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edi, [esp + 0xc]
mov dword [esp + 0x34], 0
call fcn.0041b0d0
push 0xc
push str.settings.dat
mov eax, edi
call fcn.0040d590
mov eax, dword [esp + 0x10]
mov edi, 0x10
cmp dword [esp + 0x24], edi
jae 0x41b227
lea eax, [esp + 0x10]
push 0x4ac6fc
push eax
call fcn.0043be94
mov esi, eax
add esp, 8
test esi, esi
je 0x41b3e7
push esi
push 1
push 0x354
push 0xefb7b0
call fcn.0043c143
push esi
call fcn.0043bcf6
add esp, 0x14
cmp dword [0xefb7b0], 0x46434557
jne 0x41b3e7
cmp dword [0xefb7b4], 2
jne 0x41b3e7
cmp dword [0xefb7b8], 0x354
jb 0x41b3e7
push 0xefb7b0
call fcn.0041aa20
cmp word [0xefb7bc], ax
jne 0x41b3e7
cmp dword [esp + 0x24], edi
mov eax, dword [0xefb8e4]
mov ecx, dword [0xefb8e8]
mov edx, dword [0xefb8ec]
mov dword [0xefb290], eax
mov eax, dword [0xefb8f0]
mov dword [0xefb294], ecx
mov ecx, dword [0xefb8f4]
mov dword [0xefb298], edx
mov edx, dword [0xefb8f8]
mov dword [0xefb29c], eax
mov eax, dword [0xefb8fc]
mov dword [0xefb2a0], ecx
mov ecx, dword [0xefb900]
mov dword [0xefb2a4], edx
mov edx, dword [0xefb904]
mov dword [0xefb2a8], eax
mov eax, dword [0xefb908]
mov dword [0xefb2ac], ecx
mov ecx, dword [0xefb90c]
mov dword [0xefb2b0], edx
mov edx, dword [0xefb910]
mov dword [0xefb2b4], eax
mov eax, dword [0xefb914]
mov dword [0xefb2b8], ecx
mov ecx, dword [0xefb918]
mov dword [0xefb2bc], edx
mov edx, dword [0xefb91c]
mov dword [0xefb2c0], eax
mov eax, dword [0xefb920]
mov dword [0xefb2c4], ecx
mov ecx, dword [0xefb924]
mov dword [0xefb2c8], edx
mov edx, dword [0xefb928]
mov dword [0xefb2cc], eax
mov eax, dword [0xefb92c]
mov dword [0xefb2d0], ecx
mov ecx, dword [0xefb930]
mov dword [0xefb2d4], edx
mov edx, dword [0xefb934]
mov dword [0xefb2d8], eax
mov eax, dword [0xefb938]
mov dword [0xefb2dc], ecx
mov ecx, dword [0xefb93c]
mov dword [0xefb2e0], edx
mov edx, dword [0xefb940]
mov dword [0xefb2e4], eax
mov eax, dword [0x4c1504]
mov dword [0xefb2e8], ecx
mov ecx, dword [0x4c1508]
mov dword [0xefb2ec], edx
mov edx, dword [0x4c150c]
mov dword [0xefb2f0], eax
mov dword [0xefb2f4], ecx
mov dword [0xefb2f8], edx
jb 0x41b3e3
mov eax, dword [esp + 0x10]
push eax
call fcn.0041d0c9
add esp, 4
mov al, 1
jmp 0x41b3fc
cmp dword [esp + 0x24], edi
jb 0x41b3fa
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041d0c9
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043a54e
add esp, 0x2c
ret
Function at 0x41b420
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x495508
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edi, [esp + 0xc]
mov dword [esp + 0x34], 0
call fcn.0041b0d0
mov ecx, dword [esp + 0x10]
mov edi, 0x10
cmp dword [esp + 0x24], edi
jae 0x41b489
lea ecx, [esp + 0x10]
call fcn.0041adf0
push 0xc
push str.settings.dat
lea eax, [esp + 0x14]
call fcn.0040d590
cmp dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
jae 0x41b4ac
lea eax, [esp + 0x10]
push 0x4ac700
push eax
call fcn.0043be94
mov esi, eax
add esp, 8
test esi, esi
je 0x41b4ff
push 0xefb7b0
mov dword [0xefb7b0], 0x46434557
mov dword [0xefb7b8], 0x354
call fcn.0041aa20
push esi
push 1
push 0x354
push 0xefb7b0
mov word [0xefb7bc], ax
call fcn.0043bc02
push esi
call fcn.0043bcf6
add esp, 0x14
cmp dword [esp + 0x24], edi
jb 0x41b512
mov eax, dword [esp + 0x10]
push eax
call fcn.0041d0c9
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043a54e
add esp, 0x2c
ret
Function at 0x41c3c0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x44
push str.GlobalMemoryStatusEx
push 0x4ac744
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c40b
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x40
call eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
add esp, 0x44
ret
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], 0
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0
add esp, 0x44
ret

Function at 0x41caf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x314], eax
push 0
push 0x4ac6d4
mov ecx, esi
call fcn.004072f0
lea eax, [esp + 4]
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x41cba9
lea ecx, [esp]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 4]
lea edx, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0
push 0
push 0x104
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x120]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x41cba9
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41cb91
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004072f0
mov ecx, dword [esp + 0x314]
xor eax, eax
cmp eax, dword [esi + 0x14]
sbb eax, eax
xor ecx, esp
neg eax
call fcn.0043a54e
add esp, 0x318
ret

Function at 0x41cbd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.0043cd70
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x41cc2a
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0043a54e
add esp, 0x118
ret
jne 0x41cc4d
xor eax, eax
cmp dword [esp + 8], eax
setne al
add eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0043a54e
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 3
call fcn.0043a54e
add esp, 0x118
ret
Function at 0x4228ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x422931
call fcn.00424863
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x422931
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42294c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004224a8
test ebx, ebx
mov esi, eax
je 0x42294a
test edi, edi
je 0x42294a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4259a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4931a3
call fcn.0043cc8f
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00424863
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4259ee
call fcn.00424863
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4259ff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x425a0c
or eax, 0xffffffff
jmp 0x425b68
mov ecx, esi
call fcn.004254c8
mov dword [ebp - 0x14], eax
call fcn.0041fc52
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x425a8a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x425a8a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x425a8a
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041e7ba
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x425a8a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x425a8a
mov ecx, ebx
call fcn.004236f1
test eax, eax
je 0x425a8a
push 0
mov ecx, ebx
call fcn.0042370c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042176b
push dword [ebp - 0x14]
call fcn.0041fbaa
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004257ab
xor edi, edi
cmp eax, edi
je 0x425ae7
test byte [esi + 0x3c], 0x10
je 0x425ad1
push 4
pop edi
mov ecx, esi
call fcn.004235d8
test ax, 0x100
je 0x425ac7
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041f71b
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x425ae7
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004238db
or dword [ebp - 4], 0xffffffff
jmp 0x425b12
cmp dword [ebp - 0x28], edi
je 0x425b20
push 1
mov ecx, ebx
call fcn.0042370c
cmp dword [ebp - 0x2c], edi
je 0x425b30
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x425b49
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x425b49
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00425502
cmp dword [esi + 0x58], edi
je 0x425b65
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043cd34
ret
Function at 0x427330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x427346
mov edi, dword [esi + 0xc]
jmp 0x427386
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42735f
call fcn.00422ab8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x427374
call fcn.00422ab8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x427386
call fcn.00422ab8
call fcn.00424863
cmp dword [eax + 0x3c], 0
je 0x42739b
push edi
mov ecx, ebx
call fcn.00426314
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0042724a
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4273b9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4273c5
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x427d06
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4b9668]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x427d43
push 0x4994a0
push 4
push eax
call fcn.0043d200
push eax
call fcn.0041d3a4
add esp, 0x10
jmp 0x427d55
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x427dc0
push edi
call fcn.0043d0e8
mov edi, dword [eax]
call fcn.0043d0e8
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0043d08e
add esp, 0x18
mov ebx, eax
call fcn.0043d0e8
cmp dword [eax], 0
je 0x427da0
call fcn.0043d0e8
push dword [eax]
call fcn.0041d3cb
pop ecx
jmp 0x427da7
call fcn.0043d0e8
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x427dc0
cmp ebx, esi
jae 0x427dc0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x427dc2
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a54e
leave
ret
Function at 0x42954c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x429592
call fcn.00424863
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429592
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4295d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4295be
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4295be
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4295d2
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42b3a8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42b3d6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b3f4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b312
jmp 0x42b3f4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b3f4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042b312
test edi, edi
mov eax, edi
jne 0x42b3de
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4c4234]
test ecx, ecx
je 0x42b4b7
jmp 0x42b3a7
ret 8

Function at 0x43a54e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b9668]
jne 0x43a558
repz ret
jmp fcn.00441d68
Function at 0x43bea7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43bee4
cmp dword [ebp + 0x14], edi
je 0x43bee4
cmp ecx, edi
jne 0x43beeb
call fcn.0043d0e8
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043aaf9
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43beff
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43bf20
cmp ebx, 0xffffffff
je 0x43bf0f
push ebx
push edi
push ecx
call fcn.0043cd70
add esp, 0xc
cmp esi, edi
je 0x43becc
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43becc
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43bf3c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43bf43
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43c034
test word [esi + 0xc], 0x10c
je 0x43bf97
mov eax, dword [esi + 4]
test eax, eax
je 0x43bf97
jl 0x43c095
cmp ebx, eax
mov edi, ebx
jb 0x43bf68
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43c03c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043a55d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43c02c
cmp ebx, dword [ebp - 0xc]
jb 0x43c004
cmp dword [ebp - 0xc], 0
je 0x43bfc1
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43bfb6
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43bfbd
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43bfcc
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43bfcc
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43c068
push eax
push dword [ebp - 8]
push esi
call fcn.00447ad4
pop ecx
push eax
call fcn.00448a24
add esp, 0xc
test eax, eax
je 0x43c0a7
cmp eax, 0xffffffff
je 0x43c095
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43c02c
push esi
call fcn.00448343
cmp eax, 0xffffffff
pop ecx
je 0x43c099
cmp dword [ebp - 4], 0
je 0x43c068
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43bf4b
mov eax, dword [ebp + 0x14]
jmp 0x43bee6
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43c053
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043cd70
add esp, 0xc
call fcn.0043d0e8
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43bedc
cmp dword [ebp + 0xc], 0xffffffff
je 0x43c07e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043cd70
add esp, 0xc
call fcn.0043d0e8
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43bedc
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43bee6
or dword [esi + 0xc], 0x10
jmp 0x43c099
Function at 0x43ff27
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4b9800]
je 0x43ff42
inc edi
cmp edi, 0x17
jb 0x43ff33
cmp edi, 0x17
jae 0x4400c2
push ebp
push 3
call fcn.0044cdd3
cmp eax, 1
pop ecx
je 0x44008e
push 3
call fcn.0044cdd3
test eax, eax
pop ecx
jne 0x43ff76
cmp dword [0x4b9600], 1
je 0x44008e
cmp ebx, 0xfc
je 0x4400c1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c45b0
push ebp
call fcn.00442b40
add esp, 0xc
test eax, eax
je 0x43ffac
push esi
push esi
push esi
push esi
push esi
call fcn.0043a9fd
add esp, 0x14
push 0x104
mov esi, 0x4c45c9
push esi
push 0
mov byte [0x4c46cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43fff0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00442b40
add esp, 0xc
test eax, eax
je 0x43fff0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043a9fd
add esp, 0x14
push esi
call fcn.0043eec0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x440035
push esi
call fcn.0043eec0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c48c4
push 0x49b534
sub ecx, eax
push ecx
push eax
call fcn.0044cd20
add esp, 0x14
test eax, eax
je 0x440035
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043a9fd
add esp, 0x14
jmp 0x440037
xor esi, esi
push 0x49b530
push ebx
push ebp
call fcn.0044ccaf
add esp, 0xc
test eax, eax
je 0x440057
push esi
push esi
push esi
push esi
push esi
call fcn.0043a9fd
add esp, 0x14
push dword [edi*8 + 0x4b9804]
push ebx
push ebp
call fcn.0044ccaf
add esp, 0xc
test eax, eax
je 0x440079
push esi
push esi
push esi
push esi
push esi
call fcn.0043a9fd
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044caf2
add esp, 0xc
jmp 0x4400c1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4400c1
cmp ebp, 0xffffffff
je 0x4400c1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b9804]
push dword [esi]
call fcn.0043eec0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44caf2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00440aeb
xor ebx, ebx
cmp dword [0x4c50b8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44cbc8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44cca8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44cca8
push eax
call fcn.00440a7d
mov dword [esp], 0x49b8fc
push edi
mov dword [0x4c50b8], eax
call esi
push eax
call fcn.00440a7d
mov dword [esp], 0x49b8e8
push edi
mov dword [0x4c50bc], eax
call esi
push eax
call fcn.00440a7d
mov dword [0x4c50c0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043e995
test eax, eax
pop ecx
pop ecx
je 0x44cb96
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043a9fd
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44cbc8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00440a7d
cmp eax, ebx
pop ecx
mov dword [0x4c50c8], eax
je 0x44cbc8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440a7d
pop ecx
mov dword [0x4c50c4], eax
mov eax, dword [0x4c50c4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44cc4d
cmp dword [0x4c50c8], ecx
je 0x44cc4d
push eax
call fcn.00440af4
push dword [0x4c50c8]
mov esi, eax
call fcn.00440af4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44cc4d
cmp edi, ebx
je 0x44cc4d
call esi
cmp eax, ebx
je 0x44cc1a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44cc1a
test byte [ebp - 0x18], 1
jne 0x44cc4d
lea eax, [ebp - 0x10]
push eax
call fcn.0043e9cc
test eax, eax
pop ecx
je 0x44cc35
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043a9fd
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44cc44
or dword [ebp + 0x10], 0x200000
jmp 0x44cc88
or dword [ebp + 0x10], 0x40000
jmp 0x44cc88
mov eax, dword [0x4c50bc]
cmp eax, dword [ebp - 8]
je 0x44cc88
push eax
call fcn.00440af4
cmp eax, ebx
pop ecx
je 0x44cc88
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44cc88
mov eax, dword [0x4c50c0]
cmp eax, dword [ebp - 8]
je 0x44cc88
push eax
call fcn.00440af4
cmp eax, ebx
pop ecx
je 0x44cc88
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c50b8]
call fcn.00440af4
cmp eax, ebx
pop ecx
je 0x44cca8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44ccaa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455af6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455b4e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x4ac6d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x455b41
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x455b50
xor eax, eax
pop esi
leave
ret 4

Function at 0x455c20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4941a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 8], esi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi], 0x49dda8
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov edx, dword [ecx]
mov dword [esp + 0x14], edi
call dword [edx + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], eax
pop edi
mov eax, esi
mov dword [0x4c536c], 0x49dd08
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10