joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b62c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54081f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040e160
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040e160
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040e160
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040e160
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040e160
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040e160
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b6430
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x586f90
push 0x4fa390
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5938b4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x420]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00404df0
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4b64a1
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0040e9b0
add esp, 8
mov edx, esi
mov edi, dword [ebp + 0x41c]
mov ecx, edi
call fcn.004b65a0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b64e9
test bl, bl
jne 0x4b656c
cmp edi, 0x1a
jne 0x4b656c
mov ecx, esi
call fcn.00404df0
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4b650f
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0040e9b0
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.004fb1f0
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.0040e740
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040e470
mov ecx, esi
call fcn.0040e030
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004f8545
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x4c10b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52db88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x598d21], 0
jne 0x4c127f
push 0x565b90
lea ecx, [ebp - 0x24]
call fcn.0040e120
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.00426550
mov ecx, eax
call fcn.00426610
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040ac80
test edi, edi
je 0x4c132f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x566798
push edi
call esi
push 0x566788
push edi
mov dword [0x598d50], eax
call esi
push 0x565c88
push edi
mov dword [0x598d64], eax
call esi
push str.GetSecurityInfo
push edi
mov dword [0x598d54], eax
call esi
push str.InitializeAcl
push edi
mov dword [0x598d34], eax
call esi
push 0x56c58c
push edi
mov dword [0x598d3c], eax
call esi
push 0x56c56c
push edi
mov dword [0x598d5c], eax
call esi
push str.AddAce
push edi
mov dword [0x598d30], eax
call esi
push str.DeleteAce
push edi
mov dword [0x598d44], eax
call esi
push str.SetSecurityInfo
push edi
mov dword [0x598d58], eax
call esi
push str.OpenProcessToken
push edi
mov dword [0x598d40], eax
call esi
push str.GetTokenInformation
push edi
mov dword [0x598d38], eax
call esi
push str.CopySid
push edi
mov dword [0x598d4c], eax
call esi
push str.GetLengthSid
push edi
mov dword [0x598d2c], eax
call esi
push 0x5662e0
push edi
mov dword [0x598d48], eax
call esi
cmp dword [0x598d50], 0
mov dword [0x598d60], eax
je 0x4c1292
cmp dword [0x598d64], 0
je 0x4c1292
cmp dword [0x598d54], 0
je 0x4c1292
cmp dword [0x598d34], 0
je 0x4c1292
cmp dword [0x598d3c], 0
je 0x4c1292
cmp dword [0x598d5c], 0
je 0x4c1292
cmp dword [0x598d30], 0
je 0x4c1292
cmp dword [0x598d44], 0
je 0x4c1292
cmp dword [0x598d58], 0
je 0x4c1292
cmp dword [0x598d40], 0
je 0x4c1292
cmp dword [0x598d38], 0
je 0x4c1292
cmp dword [0x598d4c], 0
je 0x4c1292
cmp dword [0x598d2c], 0
je 0x4c1292
cmp dword [0x598d48], 0
je 0x4c1292
test eax, eax
je 0x4c1292
mov byte [0x598d21], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [0x598d21], 0
mov dword [0x598d50], 0
mov dword [0x598d64], 0
mov dword [0x598d54], 0
mov dword [0x598d34], 0
mov dword [0x598d3c], 0
mov dword [0x598d5c], 0
mov dword [0x598d30], 0
mov dword [0x598d44], 0
mov dword [0x598d58], 0
mov dword [0x598d40], 0
mov dword [0x598d38], 0
mov dword [0x598d4c], 0
mov dword [0x598d2c], 0
mov dword [0x598d48], 0
mov dword [0x598d60], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f02f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548afa
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004efdc0
add esp, 8
mov dword [ebp - 4], 1
lea edx, [ebp - 0x234]
push edx
call fcn.00415500
add esp, 4
movzx eax, al
test eax, eax
jne 0x4f0385
push 0x563068
mov ecx, dword [ebp + 8]
call fcn.0040e120
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.0040ac80
mov eax, dword [ebp + 8]
jmp 0x4f03f8
push 0x20a
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.004fb1f0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.0040e040
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x563068
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e120
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.0040ac80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8545
mov esp, ebp
pop ebp
ret
Function at 0x4f19b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549041
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.004f1c40
add esp, 4
mov dword [ebp - 4], 1
push str.config.ini
lea ecx, [ebp - 0x264]
call fcn.0040e120
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.00418670
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
call fcn.0040ac80
lea ecx, [ebp - 0x234]
push ecx
call fcn.00415500
add esp, 4
movzx edx, al
test edx, edx
jne 0x4f1a93
push 0x563068
mov ecx, dword [ebp + 8]
call fcn.0040e120
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0040ac80
mov eax, dword [ebp + 8]
jmp 0x4f1c1c
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004fb1f0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.0040e040
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x563068
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
add ecx, 2
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x2b4]
mov ax, word [edx]
mov word [ebp - 0x2b6], ax
add dword [ebp - 0x2b4], 2
cmp word [ebp - 0x2b6], 0
jne 0x4f1af1
mov ecx, dword [ebp - 0x2b4]
sub ecx, dword [ebp - 0x2bc]
sar ecx, 1
mov dword [ebp - 0x2c0], ecx
jne 0x4f1b6a
push 0x563068
mov ecx, dword [ebp + 8]
call fcn.0040e120
mov edx, dword [ebp - 0x2b0]
or edx, 1
mov dword [ebp - 0x2b0], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0040ac80
mov eax, dword [ebp + 8]
jmp 0x4f1c1c
lea eax, [ebp - 0x2ac]
push eax
call fcn.004f18d0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.0040e120
mov byte [ebp - 4], 6
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x294]
push ecx
call fcn.00418670
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x27c]
call fcn.0040ac80
lea edx, [ebp - 0x294]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f0c0
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x294]
call fcn.0040ac80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.0040ac80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0040ac80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8545
mov esp, ebp
pop ebp
ret
Function at 0x526040
Capabilities:
Encode data using base64

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
lea ebx, [edi - 2]
test ebx, ebx
jle 0x5260cd
mov edi, dword [esp + 0x18]
nop dword [eax + eax]
movzx ecx, byte [edi + esi]
shr ecx, 2
movzx ecx, byte [ecx + 0x557510]
mov byte [eax], cl
movzx edx, byte [edi + esi]
movzx ecx, byte [edi + esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x557510]
mov byte [eax + 1], cl
movzx edx, byte [edi + esi + 1]
movzx ecx, byte [edi + esi + 2]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + 0x557510]
mov byte [eax + 2], cl
movzx ecx, byte [edi + esi + 2]
add esi, 3
and ecx, 0x3f
movzx ecx, byte [ecx + 0x557510]
mov byte [eax + 3], cl
add eax, 4
cmp esi, ebx
jl 0x526060
mov edi, dword [esp + 0x1c]
cmp esi, edi
jge 0x52612e
mov ebx, dword [esp + 0x18]
movzx ecx, byte [esi + ebx]
shr ecx, 2
mov cl, byte [ecx + 0x557510]
mov byte [eax], cl
lea ecx, [edi - 1]
movzx edx, byte [esi + ebx]
and edx, 3
shl edx, 4
cmp esi, ecx
jne 0x526102
mov cl, byte [edx + 0x557510]
mov dl, 0x3d
mov byte [eax + 1], cl
jmp 0x526124
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
or ecx, edx
mov cl, byte [ecx + 0x557510]
mov byte [eax + 1], cl
movzx ecx, byte [esi + ebx + 1]
and ecx, 0xf
mov dl, byte [ecx*4 + 0x557510]
mov byte [eax + 2], dl
mov byte [eax + 3], 0x3d
add eax, 4
pop edi
mov byte [eax], 0
sub eax, ebp
pop esi
pop ebp
inc eax
pop ebx
ret

Function at 0x5264a0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x54bd69
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x218]
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov word [ebp], ax
mov word [ebp + 0x208], ax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x21c]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x52655a
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x526549
push 0x104
lea eax, [ebp]
push eax
push 0x8000
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00526360
add esp, 0x14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x52655a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x526573
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040e470
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5265a7
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004f8545
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x4017e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x401825
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fatal_Error:_MFC_initialization_failed
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 4], str.provision
push ecx
mov dword [esp + 0xc], 0x401850
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x402976
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403160
push 0x402970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x407b28], 0xffffffff
or dword [0x407b2c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x407b20]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x407b1c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x407b24], eax
call fcn.00402aad
cmp dword [0x404550], 0
jne 0x4029f9
push 0x402aaa
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402a98
push 0x404018
push 0x404014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x407b18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x407b14]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004017e0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x408b54
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], 0x9e3779b9
mov esi, edx
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 8]
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
call fcn.00408a98
mov eax, dword [esi + 8]
add dword [ebp - 8], 0x23f
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x2d5c534]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x408bdb
push 0x4010f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d5c534]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d5c578]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x2d5c578], eax
mov eax, dword [0x2d5c580]
cmove eax, dword [ebp - 0x24]
mov dword [0x2d5c580], eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x2d5c57c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, edi
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec esi
jne 0x408ba3
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408cb5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x408cf1
cmp dword [0x2d5c534], 0x959
jne 0x408ce1
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00408b54
add edi, 8
dec esi
jne 0x408cc5
pop edi
pop esi
pop ebp
ret 4
Function at 0x4123f1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x457bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00410f18
mov dword [ebp - 0x14], eax
cmp dword [0x2d5d318], esi
jne 0x4124e4
push 0x800
push esi
push 0x4052ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x412471
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4125c4
push esi
push esi
push 0x4052ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4125c4
push 0x4052c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4125c4
push eax
call ebx
push 0x4052d0
push edi
mov dword [0x2d5d318], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4052e0
push edi
mov dword [0x2d5d31c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4052f4
push edi
mov dword [0x2d5d320], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d5d328], eax
test eax, eax
je 0x4124e1
push 0x405310
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d5d324], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412509
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4124fc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41251e
push 4
pop eax
jmp 0x4125c6
cmp dword [ebp - 0x14], esi
je 0x41251e
push dword [0x2d5d318]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412503
mov eax, dword [0x2d5d324]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41257c
cmp dword [0x2d5d328], edi
je 0x41257c
push eax
call ebx
push dword [0x2d5d328]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41257c
test eax, eax
je 0x41257c
call ecx
test eax, eax
je 0x412571
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x412571
test byte [ebp - 8], 1
jne 0x41257c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4125ac
mov eax, dword [0x2d5d31c]
cmp eax, edi
je 0x4125a9
push eax
call ebx
test eax, eax
je 0x4125a9
call eax
mov esi, eax
test esi, esi
je 0x4125a9
mov eax, dword [0x2d5d320]
cmp eax, edi
je 0x4125a9
push eax
call ebx
test eax, eax
je 0x4125a9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2d5d318]
call ebx
test eax, eax
je 0x4125c4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4125c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b3ae
mov esp, ebp
pop ebp
ret
Function at 0x10009c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
and esp, 0xfffffff8
sub esp, 0x1c
test byte [0x100173c0], 8
jne 0x10009c80
mov eax, dword [ebx + 8]
test eax, eax
jne 0x10009cb3
mov edx, dword [ebx + 0x28]
cmp edx, dword [ebx + 0x2c]
jb 0x10009c71
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x10009ce0
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], edx
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x10009ce0
mov edx, dword [ebx + 0x10]
movd xmm0, edx
add eax, edx
punpckldq xmm0, xmm0
mov dword [ebx + 0x2c], eax
movq qword [ebx + 0x24], xmm0
movzx eax, byte [edx]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.filebuf_underflow
mov dword [esp + 4], 0x100173c0
mov dword [esp], 3
call fcn.10007110
mov eax, dword [ebx + 8]
test eax, eax
je 0x10009c20
lea eax, [esp + 0x1b]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x10009ce0
movzx eax, byte [esp + 0x1b]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, 0xffffffff
jmp 0x10009c74