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

Disassembly:
push 0xffffffffffffffff
push 0x4ab070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047c600
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047c680
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047c680
lea ecx, [esi + 0xc]
call fcn.00499bef
lea ecx, [esi + 0x10]
call fcn.00499bef
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047dc10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047dc10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047dc10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00499c64
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00499c64
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x710010c7
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x710010e6
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x71001126
xor eax, eax
jmp 0x71001135
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x71005c42
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x71009d08]
jne 0x71005c4c
repz ret
jmp fcn.7100601e
Function at 0x419a60
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x44c0a8]
xor eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x104], eax
push edi
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00435d20
lea edi, [esp + 0x14]
add esp, 0xc
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419aa0
mov ax, word [0x446474]
sub esp, 0x600
mov word [edi], ax
mov eax, esp
mov dword [esp + 0x604], esp
push 0x200
lea ecx, [esp + 0x60c]
push ecx
push eax
mov word [eax], 0
call fcn.00435306
mov ecx, dword [0x450f38]
mov edx, dword [ecx]
add esp, 0xc
call dword [edx + 0x59c]
lea eax, [esp + 8]
push eax
call fcn.0043668e
add esp, 4
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x108]
xor ecx, dword [esp + 0x10c]
pop edi
add esp, 0x108
jmp fcn.0043558f

Function at 0x419b20
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x44c0a8]
xor eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x104], eax
push edi
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00435d20
lea edi, [esp + 0x14]
add esp, 0xc
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419b60
mov ax, word [0x446474]
sub esp, 0x600
mov word [edi], ax
mov eax, esp
mov dword [esp + 0x604], esp
push 0x200
lea ecx, [esp + 0x60c]
push ecx
push eax
mov word [eax], 0
call fcn.00435306
mov ecx, dword [0x450f38]
mov edx, dword [ecx]
add esp, 0xc
call dword [edx + 0x59c]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 8]
push ecx
call fcn.0043668e
add esp, 4
push 0
push str.Error
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [esp + 0x108]
xor ecx, dword [esp + 0x10c]
pop edi
add esp, 0x108
jmp fcn.0043558f

Function at 0x419c00
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x44c0a8]
xor eax, dword [esp + 0x108]
push esi
push edi
push 0x446480
push str.log.txt
mov dword [esp + 0x114], eax
call fcn.00436586
mov ecx, dword [esp + 0x120]
mov esi, eax
lea eax, [esp + 0x124]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00435d20
sub esp, 0x5ec
mov eax, esp
mov dword [esp + 0x608], esp
push 0x200
lea ecx, [esp + 0x610]
push ecx
push eax
mov word [eax], 0
call fcn.00435306
mov ecx, dword [0x450f38]
mov edx, dword [ecx]
add esp, 0xc
call dword [edx + 0x59c]
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419c83
mov ax, word [0x446474]
lea ecx, [esp + 0xc]
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [esp + 0xc]
push edx
push esi
call fcn.004366bf
push esi
call fcn.004363ff
mov ecx, dword [esp + 0x118]
add esp, 0xc
xor ecx, dword [esp + 0x110]
pop edi
pop esi
add esp, 0x108
jmp fcn.0043558f
Function at 0x422540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
mov ecx, edi
call fcn.004316d0
mov ecx, edi
call fcn.00431070
movzx ebp, ax
mov ecx, edi
mov dword [esp + 0x1c], ebp
call fcn.00431090
movzx ebx, ax
mov ecx, edi
mov dword [esp + 0x14], ebx
call fcn.00431030
test ebx, ebx
mov edx, dword [esi + 0x88]
mov dword [esp + 0x18], eax
jle 0x4225b9
mov ecx, dword [esi + 0x3c]
shl ecx, 2
mov ebp, ebx
lea ecx, [ecx]
mov ebx, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x3c]
shl ecx, 2
add edx, ecx
dec ebp
jne 0x422590
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test ebx, ebx
mov edx, dword [esi + 0x88]
mov dword [esp + 0x10], ebp
jle 0x422639
mov dword [esp + 0x1c], ebx
jmp 0x4225d0
test ebp, ebp
jle 0x4225f3
mov ecx, dword [esp + 0x18]
mov eax, edx
sub ecx, edx
mov edi, ebp
mov edi, edi
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
add eax, 4
dec edi
jne 0x4225e0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [ebp*4]
add ecx, eax
mov eax, dword [esp + 0x10]
and eax, reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x18], ecx
jns 0x422614
dec eax
or eax, 0xfffffffe
inc eax
je 0x42261f
mov ecx, dword [esi + 0x3c]
lea edx, [edx + ecx*4 + 4]
jmp 0x422625
mov eax, dword [esi + 0x3c]
lea edx, [edx + eax*4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc ecx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jne 0x4225d0
mov ecx, edi
call fcn.004306f0
mov ebp, dword [esp + 0x28]
fld dword [ebp + 0x30]
call fcn.004354a8
fld dword [ebp + 0x34]
mov edi, eax
call fcn.004354a8
mov ebp, dword [esi + 0x78]
cmp edi, ebp
mov edx, dword [esi + 0x7c]
jge 0x42272b
mov ecx, dword [esp + 0x10]
neg ecx
cmp edi, ecx
jle 0x42272b
cmp eax, edx
jge 0x42272b
neg ebx
cmp eax, ebx
jle 0x42272b
xor ecx, ecx
test edi, edi
setl cl
xor ebx, ebx
dec ecx
and ecx, edi
test eax, eax
setl bl
mov dword [esp + 0x1c], ecx
dec ebx
and ebx, eax
test edi, edi
jge 0x4226aa
mov ecx, edi
neg ecx
mov dword [esp + 0x28], ecx
jmp 0x4226b2
mov dword [esp + 0x28], 0
test eax, eax
jge 0x4226c0
mov ecx, eax
neg ecx
mov dword [esp + 0x24], ecx
jmp 0x4226c8
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x10]
add ecx, edi
cmp ecx, ebp
jl 0x4226d8
mov ecx, ebp
sub ecx, edi
jmp 0x4226dc
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add edi, eax
cmp edi, edx
jl 0x4226ea
sub edx, eax
jmp 0x4226ee
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
imul ebx, ebp
mov edi, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x20]
push eax
imul eax, edi
sub edx, edi
push edx
mov edx, dword [esp + 0x34]
sub ecx, edx
push ecx
mov ecx, dword [esi + 0x84]
add eax, edx
mov edx, dword [esi + 0x88]
add ebx, ebp
lea ecx, [ecx + ebx*4]
push ecx
lea eax, [edx + eax*4]
push eax
call fcn.00420dd0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x426883
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
call fcn.00425990
test al, al
je 0x4269ff
fld dword [esi + 0x78]
fcomp dword [0x44802c]
fnstsw ax
test ah, 0x41
je 0x4269ff
mov ecx, dword [esi + 4]
call fcn.00426020
test al, al
je 0x4268bd
mov dword [esi + 0x78], 0x3d4ccccd
mov eax, dword [ecx]
push ebx
push ebp
push edi
call dword [eax + 0x45c]
fmul dword [esi + 0x6c]
fsubr dword [0x444290]
fmul dword [0x446854]
call fcn.004354a8
mov ebx, eax
cmp ebx, 0x1324
jle 0x4268eb
mov ebx, 0x2710
mov eax, dword [esi + 0x5c]
xor ebp, ebp
test eax, eax
jbe 0x42696a
mov ecx, dword [esi + 0x58]
mov edi, dword [ecx + ebp*4]
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
push edi
call dword [edx + 0x24]
mov al, byte [esi + 0x7c]
test al, al
jne 0x426924
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x42691a
cmp eax, 4
jne 0x426924
mov eax, dword [esi + 0x5c]
inc ebp
cmp ebp, eax
jb 0x4268f4
jmp 0x42696e
fld dword [esi + 0x74]
mov ebp, dword [edi]
fmul dword [esi + 0x70]
fmul dword [esp + 0x1c]
call fcn.004354a8
push eax
push edi
call dword [ebp + 0x44]
mov ecx, dword [edi]
push 0
push edi
call dword [ecx + 0x3c]
mov cl, byte [esi + 0x7c]
mov edx, dword [edi]
xor eax, eax
test cl, cl
setne al
push eax
push 0
push 0
push edi
call dword [edx + 0x30]
mov ecx, dword [edi]
neg ebx
push ebx
push edi
call dword [ecx + 0x3c]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret 4
mov edi, dword [esp + 0x1c]
mov eax, dword [0x458fdc]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
call dword [edx + 0x14]
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x60]
cmp edx, eax
mov ebp, dword [esp + 0x10]
lea edi, [esi + 0x58]
jl 0x426997
mov ecx, edi
call fcn.00414cd0
cmp dword [edi], 0
jne 0x4269a3
mov ecx, edi
call fcn.00414cd0
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], ebp
mov edx, dword [edi + 4]
inc edx
mov dword [edi + 4], edx
fld dword [esi + 0x74]
fmul dword [esi + 0x70]
mov edi, dword [esp + 0x10]
mov ebp, dword [edi]
fmul dword [esp + 0x1c]
call fcn.004354a8
push eax
push edi
call dword [ebp + 0x44]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
xor edx, edx
cmp byte [esi + 0x7c], dl
setne dl
push edx
push 0
push 0
push eax
call dword [ecx + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
neg ebx
push ebx
push eax
call dword [ecx + 0x3c]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret 4
Function at 0x437ac0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x45986c], esi
push edi
jne 0x437ae0
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 [0x459868], esi
mov byte [0x459864], al
jne 0x437b46
mov ecx, dword [0x45ae88]
test ecx, ecx
je 0x437b27
mov eax, dword [0x45ae84]
sub eax, 4
cmp eax, ecx
jmp 0x437b20
mov eax, dword [eax]
test eax, eax
je 0x437b12
call eax
mov eax, dword [0x45ae84]
sub eax, 4
cmp eax, dword [0x45ae88]
mov dword [0x45ae84], eax
jae 0x437b0a
mov eax, 0x44c038
mov esi, 0x44c040
cmp eax, esi
mov edi, eax
jae 0x437b46
mov eax, dword [edi]
test eax, eax
je 0x437b3f
call eax
add edi, 4
cmp edi, esi
jb 0x437b37
mov eax, 0x44c044
mov esi, 0x44c04c
cmp eax, esi
mov edi, eax
jae 0x437b65
mov eax, dword [edi]
test eax, eax
je 0x437b5e
call eax
add edi, 4
cmp edi, esi
jb 0x437b56
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x437b80
push dword [ebp + 8]
mov dword [0x45986c], 1
call fcn.00437a2b
pop ecx
pop ebp
ret

Function at 0x43830e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44c0a8]
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 + 0x44c0f8]
je 0x43833b
inc eax
cmp eax, 0x12
jb 0x43832c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44c0f8]
jne 0x43846f
mov eax, dword [0x4597f4]
cmp eax, 1
je 0x43844a
cmp eax, edx
jne 0x43836b
cmp dword [0x44c0b4], 1
je 0x43844a
cmp ecx, 0xfc
je 0x43846f
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 0x4383a4
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0043c260
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004379a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4383e6
lea eax, [ebp - 0x10c]
push eax
call fcn.004379a0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x447e68
push edi
call fcn.0043dcd0
add esp, 0x10
push edi
call fcn.004379a0
push dword [esi + 0x44c0fc]
mov ebx, eax
call fcn.004379a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004358a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0043c260
push edi
push ebx
call fcn.0043c270
push 0x447e64
push ebx
call fcn.0043c270
push dword [esi + 0x44c0fc]
push ebx
call fcn.0043c270
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043dbd5
add esp, 0x2c
jmp 0x43846f
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x44c0fc]
push dword [esi]
call fcn.004379a0
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.0043558f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43991b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004358a0
mov eax, dword [0x44c0a8]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x45ad6c]
mov dword [ebp - 4], eax
jae 0x439a5b
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x45ad80]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x439a5b
push 1
push esi
push ebx
call fcn.0043988f
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x439a65
push 2
push esi
push ebx
call fcn.0043988f
add esp, 0xc
cmp eax, 0xffffffff
je 0x439a65
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x439a08
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.0043ccd0
push 0x8000
push ebx
call fcn.0043e87e
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4399c7
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.00439d90
add esp, 0xc
cmp eax, 0xffffffff
je 0x4399e5
sub edi, eax
test edi, edi
jg 0x4399bc
jmp 0x4399fb
cmp dword [0x459824], 5
jne 0x4399f8
mov dword [0x459820], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0043e87e
pop ecx
pop ecx
jmp 0x439a48
jge 0x439a48
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0043988f
push ebx
call fcn.00439853
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x439a48
mov dword [0x459820], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x459824], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0043988f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x439a68
mov dword [0x459820], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0043558f
leave
ret
Function at 0x439a77
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x45ad6c]
push edi
jae 0x439c3e
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x45ad80]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x439c3e
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x439b1d
test dl, 2
jne 0x439b1d
test dl, 0x48
je 0x439ae7
mov al, byte [eax + 5]
cmp al, 0xa
je 0x439ae7
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x439b18
mov dword [0x459824], ecx
jmp 0x439c45
cmp eax, 0x6d
jne 0x439b24
xor eax, eax
jmp 0x439c52
push eax
call fcn.00439666
pop ecx
jmp 0x439c4f
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x439c39
test edx, edx
je 0x439b53
cmp byte [edi], 0xa
jne 0x439b53
or al, 4
jmp 0x439b55
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x439c33
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x439c23
cmp al, 0xd
je 0x439b89
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x439c15
dec ecx
cmp dword [ebp - 8], ecx
jae 0x439ba3
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x439b9e
add dword [ebp - 8], 2
jmp 0x439bf7
mov dword [ebp - 8], eax
jmp 0x439c11
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439bcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x439c11
cmp dword [ebp - 0x10], 0
je 0x439c11
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x439bec
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x439bf7
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x439c14
cmp edi, dword [ebp + 0xc]
jne 0x439bfc
cmp byte [ebp - 1], 0xa
jne 0x439bfc
mov byte [edi], 0xa
jmp 0x439c14
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043988f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x439c15
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x439b6d
jmp 0x439c33
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x439c33
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x439c52
and dword [0x459824], 0
mov dword [0x459820], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x44c0a8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x45ad6c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x439f20
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x45ad80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x439f20
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x439def
xor eax, eax
jmp 0x439f34
test al, 0x20
je 0x439e00
push 2
push edi
push edi
push ecx
call fcn.0043e94c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x439ebc
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x439ef4
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x439e56
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x439e47
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x439e2c
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439e96
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x439e9f
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x439e20
jmp 0x439ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x439f1b
cmp dword [ebp + 8], edi
je 0x439ef4
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x439ee9
mov dword [0x459824], eax
jmp 0x439f27
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439ede
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x439ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x439ea1
push dword [ebp + 8]
call fcn.00439666
pop ecx
jmp 0x439f31
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x439f09
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x439de8
mov dword [0x459820], 0x1c
mov dword [0x459824], edi
jmp 0x439f31
sub eax, dword [ebp - 0x14]
jmp 0x439f34
and dword [0x459824], 0
mov dword [0x459820], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0043558f
leave
ret
Function at 0x43dbd5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x459a10], ebx
push esi
push edi
jne 0x43dc55
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43dc90
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x448474
push edi
call esi
test eax, eax
mov dword [0x459a10], eax
je 0x43dc90
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x459a14], eax
call esi
cmp dword [0x45982c], 2
mov dword [0x459a18], eax
jne 0x43dc55
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x459a20], eax
je 0x43dc55
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x459a1c], eax
mov eax, dword [0x459a1c]
test eax, eax
je 0x43dc9a
call eax
test eax, eax
je 0x43dc81
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x459a20]
test eax, eax
je 0x43dc81
test byte [ebp - 8], 1
jne 0x43dc9a
cmp dword [0x459838], 4
jb 0x43dc94
or byte [ebp + 0x12], 0x20
jmp 0x43dcb9
xor eax, eax
jmp 0x43dcc9
or byte [ebp + 0x12], 4
jmp 0x43dcb9
mov eax, dword [0x459a14]
test eax, eax
je 0x43dcb9
call eax
mov ebx, eax
test ebx, ebx
je 0x43dcb9
mov eax, dword [0x459a18]
test eax, eax
je 0x43dcb9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x459a10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43e0ec
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.004358a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43e181
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 [0x45982c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x43e181
cmp eax, 1
je 0x43e199
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 0x43e181
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x43e156
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x43e17d
xor eax, eax
inc eax
jmp 0x43e1b5
cmp esi, ebx
jae 0x43e185
xor eax, eax
jmp 0x43e1b5
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x45982c]
jmp 0x43e19b
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