joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402da0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x118
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push str.Config_ManagerEnum
push 0x80000006
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402f00
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push 0x104
push ecx
push eax
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402ef9
mov esi, dword [esp + 0x134]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402ed2
push str.Enum_
push esi
call ebx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea ecx, [esi + 5]
push eax
push ecx
push 0
push 0
push str.HardwareKey
push edx
mov dword [esp + 0x30], 0xfe
call edi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push str.Problem
push edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 4
call edi
mov eax, dword [esp + 0x14]
push eax
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x402ed2
mov eax, dword [esp + 0x130]
test eax, eax
je 0x402ebd
lea ecx, [esp + 0x24]
push 0x104
push ecx
push str.Class
push 0
push esi
call fcn.00402c60
mov eax, dword [esp + 0x144]
add esp, 0x14
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402ed2
mov eax, dword [esp + 0x12c]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x12c], eax
je 0x402f0d
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
inc eax
push 0x104
push edx
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x402e02
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret
Function at 0x403500
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xb
mov esi, str.HardwareDescriptionSystemCentralProcessor0
lea edi, [ebp - 0x44]
lea eax, [ebp - 0xc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
push 0xf003f
lea ecx, [ebp - 0x44]
push 0
push ecx
push closesocket
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xff
mov dword [ebp - 8], 1
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403593
lea edx, [ebp - 4]
lea eax, [ebp - 0x174]
push edx
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push eax
push ecx
push 0
push str.Identifier
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403593
lea eax, [ebp - 0x174]
add ebx, 0xd
push eax
push 0x40e198
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x10], eax
sub eax, 0
je 0x4035d1
dec eax
je 0x4035ba
dec eax
jne 0x4035e6
pushal
mov eax, 0x80000004
cpuid
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
popal
jmp 0x4035e6
pushal
mov eax, 3
cpuid
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
popal
jmp 0x4035e6
pushal
mov eax, closesocket
cpuid
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], edx
popal
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, 2
mov dword [ebp - 0x10], eax
jle 0x403598
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x74]
push ecx
add edx, 0xd
push 0x40e198
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403620
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x40
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xb
mov esi, str.HardwareDescriptionSystemCentralProcessor0
lea edi, [esp + 0x1c]
lea eax, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
push eax
push 0xf003f
lea ecx, [esp + 0x24]
push esi
mov edi, 4
push ecx
push closesocket
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4036bb
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
push str.MHZ
push edx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4036bb
mov eax, dword [esp + 0x18]
add ebx, 0x10d
push eax
push 0x40e618
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x40
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x404a50
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
or esi, 0xffffffff
xor edi, edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x404a83
mov eax, dword [ebp + 8]
mov ecx, edi
mov edx, eax
mov dword [edx], edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, closesocket
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x404aa0
lea ecx, [ebp - 0xc]
push ecx
call edi
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sub eax, edx
cmp eax, esi
jae 0x404abb
mov esi, eax
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jne 0x404a91
lea eax, [esi + esi*4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
mov eax, 0xcccccccd
mul ecx
shl esi, 5
mov edi, edx
mov eax, esi
shr edi, 3
xor edx, edx
div edi
xor edx, edx
mov esi, eax
div ecx
shr ecx, 1
cmp edx, ecx
jbe 0x404af8
inc esi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
div esi
xor edx, edx
mov ecx, eax
mov eax, edi
div esi
mov eax, esi
mov ebx, ecx
shr eax, 1
cmp edx, eax
jbe 0x404b14
inc ecx
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [edx], edi
mov dword [edx + 4], esi
mov dword [edx + 8], ebx
pop ebx
pop edi
pop esi
mov dword [edx + 0xc], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404f50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x4c
push esi
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push str.ICON_MAIN
push esi
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 0x405650
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x1e
mov dword [esp + 0x40], esi
call edi
push 0x7f00
push 0
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push str.ICON_MAIN
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x10
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], str.SysInfoClass
call edi
push str.SysInfoClass
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [0x40f70c], eax
je 0x404ff3
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret 0x10
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push 0
push str.SysInfoClass
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [0x40f70c], eax
jne 0x405037
push eax
push eax
push str.Could_not_create_window_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret 0x10
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x20
push 0
push 0x1036
push 0x3ea
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x40f70c]
push 0x3ea
push ecx
call edi
push eax
mov dword [0x40f814], eax
call fcn.00405580
push 0x72
push esi
mov dword [0x40f710], esi
call dword [sym.imp.USER32.dll_LoadMenuA]
mov edx, dword [0x40f70c]
push eax
push edx
call dword [sym.imp.USER32.dll_SetMenu]
call fcn.00402f30
mov eax, dword [0x40f70c]
push eax
call fcn.00405130
mov ecx, dword [esp + 0x68]
mov edx, dword [0x40f70c]
add esp, 4
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x40f70c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
call esi
test eax, eax
je 0x405115
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x40f70c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x405103
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
call ebp
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call esi
test eax, eax
jne 0x4050e0
pop ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x4c
ret 0x10
Function at 0x407c8e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40eed8
cmp edx, dword [eax]
je 0x407cb0
add eax, 8
inc ecx
cmp eax, 0x40ef68
jl 0x407ca1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40eed8]
jne 0x407dde
mov eax, dword [0x40f828]
cmp eax, 1
je 0x407db8
test eax, eax
jne 0x407ce1
cmp dword [0x40eb94], 1
je 0x407db8
cmp edx, 0xfc
je 0x407dde
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407d18
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004080a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407d5b
lea eax, [ebp - 0x1a4]
push eax
call fcn.004080a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c614
push edi
call fcn.0040a5a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408920
lea eax, [ebp - 0xa0]
push 0x40c5f4
push eax
call fcn.00408920
push dword [esi + 0x40eedc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408920
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a515
add esp, 0x2c
pop edi
jmp 0x407dde
lea eax, [ebp + 8]
lea esi, [esi + 0x40eedc]
push 0
push eax
push dword [esi]
call fcn.004080a0
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]
pop esi
leave
ret
Function at 0x4019b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0xc
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x2a0
mov dword [ebp - 0x290], 0xc
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x290]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.iphlpapi.dll_GetUdpTable]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x401b40
mov eax, dword [ebx]
test eax, eax
je 0x401b0e
lea esi, [esi]
mov eax, dword [ebx + esi*8 + 4]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htonl]
sub esp, 4
movzx edx, al
mov dword [esp + 0x18], edx
movzx edx, ah
mov dword [esp + 0x14], edx
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x24c]
movzx edx, dl
mov dword [esp + 8], str._d._d._d._d
mov dword [esp + 0x10], edx
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call sym._swprintf
movzx eax, word [ebx + esi*8 + 8]
inc esi
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htons]
sub esp, 4
movzx eax, ax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28c]
mov dword [esp + 8], 0x4062e4
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x28c]
mov dword [esp + 8], str._s:_s
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x24c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14c]
mov dword [esp + 4], 0xa0
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x14c]
mov dword [esp + 4], 0x4065cc
mov dword [esp + 8], eax
mov dword [esp], str.____6s___22s_:_n
call sym._NETSTAT_wprintf
cmp dword [ebx], esi
ja 0x401a30
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp esi, 0x7a
jne 0x401b32
mov eax, dword [ebp - 0x290]
jmp 0x4019d8
Function at 0x402790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4027e8
cmp byte [esi + ebx - 1], 0xa
je 0x4027bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405100], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403370
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x47e424
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x3000
push 0x24000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
ret

Function at 0x47e61c
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
pushal
push 0x104
push 0x47e50c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x47e50c
mov ecx, eax
mov al, 0x2e
cld
repne scasb al, byte es:[edi]
mov dword [edi], 0x676264
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push 0x47e50c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x47e618], eax
cmp eax, 0xffffffff
jne 0x47e67b
popal
ret
push 0
push dword [0x47e618]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, dword [0x47e4e8]
add eax, 0xfff
and eax, 0xfffff000
mov dword [0x47e614], eax
push 0x40
push 0x3000
push dword [0x47e614]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x47e610], eax
or eax, eax
je 0x47e707
mov dword [0x43803c], eax
mov dword [0x438040], eax
add eax, dword [0x47e614]
mov dword [0x438044], eax
push 0
push 0x47e614
push dword [0x47e614]
push dword [0x47e610]
push dword [0x47e618]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x47e614]
add dword [0x438040], eax
push dword [0x47e618]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
popal
ret
Function at 0x4059a0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x84], 1
lea esi, [edi + 0x84]
jge 0x4059ec
push 0
push esi
push 0x40
lea eax, [edi + 0x44]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4059d6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
pop esi
ret 0xc
cmp dword [esi], 1
jge 0x4059ec
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax], 0
xor eax, eax
ret 0xc
mov eax, dword [esp + 0x14]
lea edx, [edi + 0x44]
mov dword [eax], 1
mov eax, dword [esp + 0x10]
mov cl, byte [edx]
mov byte [eax], cl
lea eax, [edi + 0x45]
dec dword [esi]
push dword [esi]
push eax
push edx
call fcn.00408a10
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x419179
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x42ce34
push str.FlsAlloc
push 0x1e
call fcn.00418fba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4191ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x428168]
call esi
jmp 0x4191b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4191f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x42ce58
push str.FlsGetValue
push 0x20
call fcn.00418fba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41922e
push dword [ebp + 8]
mov ecx, esi
call dword [0x428168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41bf51
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041bed3
Function at 0x41d530
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41d5cd
push ebx
push esi
call fcn.0041d4f9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b7fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d57a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d5cc
push edi
push eax
call fcn.00417e5c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d59a
call fcn.00417e22
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d5cb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b7fb
add esp, 0x20
test eax, eax
jne 0x41d5b9
push edi
call fcn.00417e22
jmp 0x41d5c1
push ebx
call fcn.00417e22
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x420172
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ffe3

Function at 0x42344c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4395e8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42348c
cmp byte [ebx], 0xa
jne 0x42348c
or byte [eax + edi + 0x28], 4
jmp 0x423491
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42358f
mov al, byte [edx]
cmp al, 0x1a
je 0x423571
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4234c0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4234e5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4234ef
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4234a2
jmp 0x42358f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42356c
cmp dword [ebp - 0xc], 0
je 0x42356c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4395e8]
test byte [eax + edi + 0x28], 0x48
je 0x423546
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423531
mov byte [esi], dl
jmp 0x423542
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4395e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42358f
cmp byte [ebp - 1], 0xa
jne 0x423555
cmp esi, ebx
jne 0x423555
mov byte [esi], 0xa
jmp 0x42358e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004233ee
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42358f
mov byte [esi], 0xd
jmp 0x42358e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4395e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42358b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42358f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423598
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4395e8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4235db
cmp word [esi], dx
jne 0x4235db
or byte [edi + eax + 0x28], 4
jmp 0x4235e0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x423733
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x423713
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x423622
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423658
cmp eax, edx
jae 0x423664
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4235fa
jmp 0x423733
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42370f
cmp dword [ebp - 0x14], 0
je 0x42370f
mov eax, dword [ebx*4 + 0x4395e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4236e7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4236b0
mov word [esi], cx
jmp 0x4236e3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4395e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4395e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4395e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x423733
pop ebx
cmp word [ebp - 4], bx
jne 0x4236f8
cmp esi, dword [ebp + 0xc]
jne 0x4236f8
mov word [esi], bx
jmp 0x423730
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004233ee
add esp, 0x10
cmp word [ebp - 4], bx
je 0x423733
push 0xd
jmp 0x42372c
mov ecx, dword [ebx*4 + 0x4395e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42372a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423733
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret