joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c960
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d8fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0045cd30
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.0045cd30
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.0045cda0
lea ecx, [esp + 0x10]
call fcn.0045d4c0
cmp eax, 1
jae 0x45ca08
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x45ca73
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45ca73
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.0045cda0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.0045d4c0
cmp eax, 1
jb 0x45ca73
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0045c800
test eax, eax
je 0x45ca73
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0045cae0
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.0045ce00
push edi
lea ecx, [esp + 0x24]
call fcn.0045ce20
push esi
lea ecx, [esp + 0x24]
call fcn.0045cec0
push str..tmp
lea ecx, [esp + 0x24]
call fcn.0045ce20
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.0045c7e0
test eax, eax
je 0x45caa9
inc esi
cmp esi, 0x7a0a1f00
jb 0x45ca2a
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0045cd50
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045cd50
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.0045ce00
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0045cd50
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045cd50
mov eax, 1
jmp 0x45ca94
Function at 0x45d240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d9068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.0045cd30
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.0045cda0
push 0
mov ecx, esi
call fcn.0045d1c0
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x45d378
lea ecx, [esp + 0xc]
call fcn.0045d4c0
cmp eax, 1
jae 0x45d2c7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045cd50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x45d314
push 0
lea ecx, [esp + 0x10]
call fcn.0043b0f0
push eax
push edi
mov ecx, 0x6f2654
call fcn.0045c960
test eax, eax
jne 0x45d31c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045cd50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.0045cda0
push edi
mov ecx, 0x6f2654
call fcn.0045c8c0
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.0045d140
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x45d378
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x45d378
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x45d3a8
push 1
mov ecx, esi
call fcn.0045d1c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045cd50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.0045cd50
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x45dd30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.0045cda0
pop edi
add esp, 0x104
ret 4
Function at 0x46a0f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x46a123
push esi
call fcn.0046efe0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46a11c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x46a1a9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46a192
mov eax, dword [esi + 8]
test eax, eax
je 0x46a147
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46a18e
cmp eax, 2
je 0x46a192
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46a13a
cmp eax, 3
je 0x46a16d
cmp eax, 1
jne 0x46a13a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46a13a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46a13a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046a1e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46a1c9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0046a1e0
add esp, 4
pop esi
ret

Function at 0x49ad80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x49ad8b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x49ae8e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x69e010]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x69e010]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x69e010]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x69e010]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x69e010]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x69e010]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x69e010]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x69e010]
xor eax, edx
inc ecx
dec edi
jne 0x49ada6
pop edi
test esi, esi
je 0x49aeb0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x69e010]
xor eax, edx
inc ecx
dec esi
jne 0x49ae92
pop esi
pop ebx
not eax
ret
Function at 0x4cc9a2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cc9da
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004caa56
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004caa2e
jmp 0x4cc9e6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ce090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ce0d2
call fcn.004d3b44
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ce0d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ce0c9
xor eax, eax
jmp 0x4ce0da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ce0e0
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d4074
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 0x4d40a2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d40c0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d3fda
jmp 0x4d40c0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d40c0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d3fda
test edi, edi
mov eax, edi
jne 0x4d40aa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401702
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401717
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401729
xor eax, eax
jmp 0x40175b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40174d
cmp esi, eax
jae 0x401725
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40173f
cmp esi, eax
jae 0x401725
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x401e67
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 edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x401eba
call fcn.0041ed96
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x401eba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x401eb0
xor eax, eax
jmp 0x401fcf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x401ee9
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x401ee9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x401fcc
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x401f18
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x401fcc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x401f56
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x401f56
test edi, edi
mov dword [ebp - 8], edi
je 0x401f50
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x401fbc
and dword [ebp + 0x10], 0
jmp 0x401fbc
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x401fbc
push 0xc
call fcn.004169ee
mov esi, eax
test esi, esi
pop ecx
je 0x401f9b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
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 + 0xc]
mov dword [esi], eax
jmp 0x401f9d
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x401fb7
push dword [ebp - 8]
call fcn.00415955
jmp 0x401fbc
call fcn.0041592c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x401f24
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b322
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x425eb0
call fcn.0040dffc
mov edi, 0x94
mov eax, edi
call fcn.0040b280
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 [0x430eb4], ecx
mov eax, dword [esi + 4]
mov dword [0x430ec0], eax
mov edx, dword [esi + 8]
mov dword [0x430ec4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x430eb8], esi
cmp ecx, 2
je 0x40b382
or esi, 0x8000
mov dword [0x430eb8], esi
shl eax, 8
add eax, edx
mov dword [0x430ebc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b3bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b3bd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b3d5
cmp eax, 0x20b
je 0x40b3c2
mov dword [ebp - 0x1c], esi
jmp 0x40b3e9
cmp dword [ecx + 0x84], 0xe
jbe 0x40b3bd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40b3e3
cmp dword [ecx + 0x74], 0xe
jbe 0x40b3bd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040e1c5
pop ecx
test eax, eax
jne 0x40b3fd
push 0x1c
call fcn.0040b2fe
pop ecx
call fcn.0040df3a
test eax, eax
jne 0x40b40e
push 0x10
call fcn.0040b2fe
pop ecx
call fcn.0040f6c6
mov dword [ebp - 4], esi
call fcn.0040f4c8
test eax, eax
jge 0x40b427
push 0x1b
call fcn.0040b2d9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x432710], eax
call fcn.0040f3a6
mov dword [0x430ea4], eax
call fcn.0040f304
test eax, eax
jge 0x40b44d
push 8
call fcn.0040b2d9
pop ecx
call fcn.0040f0d1
test eax, eax
jge 0x40b45e
push 9
call fcn.0040b2d9
pop ecx
call fcn.0040b5c9
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40b471
push eax
call fcn.0040b2d9
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040f068
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40b492
movzx eax, word [ebp - 0x34]
jmp 0x40b495
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00415524
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40b4b3
push edi
call fcn.0040b701
call fcn.0040b723
jmp 0x40b4e5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040e037
ret
Function at 0x411f53
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x431294], ebx
push esi
push edi
jne 0x411fd3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41200e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426c8c
push edi
call esi
test eax, eax
mov dword [0x431294], eax
je 0x41200e
push 0x426c7c
push edi
call esi
push 0x426c68
push edi
mov dword [0x431298], eax
call esi
cmp dword [0x430eb4], 2
mov dword [0x43129c], eax
jne 0x411fd3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4312a4], eax
je 0x411fd3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4312a0], eax
mov eax, dword [0x4312a0]
test eax, eax
je 0x412018
call eax
test eax, eax
je 0x411fff
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4312a4]
test eax, eax
je 0x411fff
test byte [ebp - 8], 1
jne 0x412018
cmp dword [0x430ec0], 4
jb 0x412012
or byte [ebp + 0x12], 0x20
jmp 0x412037
xor eax, eax
jmp 0x412047
or byte [ebp + 0x12], 4
jmp 0x412037
mov eax, dword [0x431298]
test eax, eax
je 0x412037
call eax
mov ebx, eax
test ebx, ebx
je 0x412037
mov eax, dword [0x43129c]
test eax, eax
je 0x412037
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x431294]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4123ee
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.0040b280
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412483
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 [0x430eb4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x412483
cmp eax, 1
je 0x41249b
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 0x412483
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x412458
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41247f
xor eax, eax
inc eax
jmp 0x4124b7
cmp esi, ebx
jae 0x412487
xor eax, eax
jmp 0x4124b7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x430eb4]
jmp 0x41249d
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
Function at 0x412533
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42e028]
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 0x41255c
xor eax, eax
jmp 0x4126ca
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 + 0x4323a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41258f
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00413ba5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x412661
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x41269c
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 0x4125ea
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4125db
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 0x4125be
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 0x41262a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x412633
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4125af
jmp 0x412635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4126c5
cmp dword [ebp - 8], edi
je 0x41269c
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x41268e
call fcn.0040cf6b
mov dword [eax], 9
call fcn.0040cf74
mov dword [eax], esi
jmp 0x412697
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 0x412683
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x412635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x412635
push dword [ebp - 8]
call fcn.0040cf7d
pop ecx
or eax, 0xffffffff
jmp 0x4126c8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4126b1
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4126b1
xor eax, eax
jmp 0x4126c8
call fcn.0040cf6b
mov dword [eax], 0x1c
call fcn.0040cf74
mov dword [eax], edi
jmp 0x412697
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040b525
leave
ret
Function at 0x4137d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41399e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4323a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41399e
test cl, 0x48
je 0x41383e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41383e
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413890
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x413878
call fcn.0040cf6b
mov dword [eax], 9
call fcn.0040cf74
mov dword [eax], esi
jmp 0x413888
cmp eax, 0x6d
je 0x41399e
push eax
call fcn.0040cf7d
pop ecx
or eax, 0xffffffff
jmp 0x4139a0
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x413999
test edx, edx
je 0x4138b3
cmp byte [ebx], 0xa
jne 0x4138b3
or al, 4
jmp 0x4138b5
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x413993
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x413983
cmp al, 0xd
je 0x4138e9
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x413975
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x413903
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4138fe
add dword [ebp + 0x10], 2
jmp 0x413957
mov dword [ebp + 0x10], eax
jmp 0x413971
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41392b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413971
cmp dword [ebp - 0xc], 0
je 0x413971
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41394c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x413957
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x413974
cmp ebx, dword [ebp + 0xc]
jne 0x41395c
cmp byte [ebp - 1], 0xa
jne 0x41395c
mov byte [ebx], 0xa
jmp 0x413974
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004124bf
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x413975
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4138cd
jmp 0x413993
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x413993
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4139a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret