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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1800
call fcn.0040ece0
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0x986
jge 0x403fce
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, 0x4f4c8ec
jg 0x403fe9
inc edi
cmp edi, 0x3455969
jl 0x403fa6
cmp dword [0x283d82c], 0x400
jne 0x4040fd
push esi
call dword [sym.imp.USER32.dll_GetDC]
push esi
lea eax, [esp + 0x80c]
push eax
push esi
push 0x403948
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [esp + 0x100c]
push eax
push 0x403924
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0x40398c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call fcn.004047fa
pop ecx
push esi
call fcn.00404684
pop ecx
push esi
push esi
call fcn.00404f4e
push esi
push esi
call fcn.004047ba
push esi
push esi
call fcn.00404ab6
push esi
call fcn.00404ee9
add esp, 0x1c
push esi
call fcn.004051b7
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404160
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404240
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404990
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404370
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404be0
fstp st(0)
push esi
push esi
call fcn.00404d34
push esi
call fcn.0040522b
add esp, 0x14
push esi
push esi
call fcn.004046be
push esi
push esi
call fcn.00404614
push esi
call fcn.00404ffb
add esp, 0x14
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x12e82fe
jg 0x40411d
inc edi
cmp edi, 0x3011b
jl 0x4040ff
mov eax, dword [0x445c84]
mov dword [0x283d82c], eax
call fcn.00403cde
mov edi, 0x2ec37
cmp dword [0x283d82c], 0x51f
jne 0x40414c
push esi
lea eax, [esp + 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x404131
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407658
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4421f8]
jne 0x407662
repz ret
jmp fcn.0040c930
Function at 0x40cf6e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4421f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004097d3
and dword [ebp - 0x14], 0
cmp dword [0x45a80c], 0
mov dword [ebp - 0x18], eax
jne 0x40d021
push 0x402e34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d0c9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402e28
push ebx
call edi
test eax, eax
je 0x40d0c9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402e18
push ebx
mov dword [0x45a80c], eax
call edi
push eax
call esi
push 0x402e04
push ebx
mov dword [0x45a810], eax
call edi
push eax
call esi
push 0x402de8
push ebx
mov dword [0x45a814], eax
call edi
push eax
call esi
mov dword [0x45a81c], eax
test eax, eax
je 0x40d021
push 0x402dd0
push ebx
call edi
push eax
call esi
mov dword [0x45a818], eax
mov eax, dword [0x45a818]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d07a
cmp dword [0x45a81c], ecx
je 0x40d07a
push eax
call esi
push dword [0x45a81c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d07a
test ebx, ebx
je 0x40d07a
call edi
test eax, eax
je 0x40d071
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d071
test byte [ebp - 8], 1
jne 0x40d07a
or dword [ebp + 0x10], 0x200000
jmp 0x40d0ad
mov eax, dword [0x45a810]
cmp eax, dword [ebp - 0x18]
je 0x40d0ad
push eax
call esi
test eax, eax
je 0x40d0ad
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d0ad
mov eax, dword [0x45a814]
cmp eax, dword [ebp - 0x18]
je 0x40d0ad
push eax
call esi
test eax, eax
je 0x40d0ad
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45a80c]
call esi
test eax, eax
je 0x40d0c9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d0cb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407658
leave
ret
Function at 0x403bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edx
push edi
test esi, esi
je 0x403be2
test dl, 3
je 0x403bdf
movzx eax, byte [edx]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x434180]
sub esi, 1
jne 0x403bc2
mov dword [ebp - 4], edx
lea eax, [edx + esi]
mov edi, eax
mov dword [ebp - 8], edi
cmp esi, 0xc
jb 0x403cc0
sub eax, 0xc
mov dword [ebp + 8], eax
mov edi, eax
push ebx
nop dword [eax]
mov ebx, dword [edx + 4]
mov eax, ebx
xor ecx, dword [edx]
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [edx*4 + 0x435580]
xor esi, dword [eax*4 + 0x435980]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x435180]
movzx eax, bl
mov ebx, dword [ebp - 4]
xor esi, dword [eax*4 + 0x435d80]
mov ebx, dword [ebx + 8]
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x434580]
xor edx, dword [eax*4 + 0x434980]
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x436580]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x436980]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x434180]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x436180]
movzx eax, cl
xor edx, dword [eax*4 + 0x436d80]
movzx eax, bl
xor edx, dword [eax*4 + 0x434d80]
xor edx, esi
mov ecx, edx
mov edx, dword [ebp - 4]
add edx, 0xc
mov dword [ebp - 4], edx
cmp edx, edi
jbe 0x403c00
mov edi, dword [ebp - 8]
pop ebx
cmp edx, edi
jae 0x403cdb
movzx eax, byte [edx]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x434180]
cmp edx, edi
jb 0x403cc4
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x434180], eax
inc edx
cmp edx, 0x100
jb 0x403cf2
push esi
mov eax, 0x434184
mov esi, 0x2c0
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x434180]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x434180]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x434180]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x434180]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x403d97
pop esi
ret
Function at 0x404db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
mov dword [edi], 0
test esi, esi
je 0x404e1f
mov edx, 0x400000
nop dword [eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x404e32
test ecx, ecx
je 0x404e1f
mov ecx, dword [ebp - 0xc]
mov edx, 0x400000
test esi, esi
jne 0x404de0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret

Function at 0x409b50
Capabilities:
Create directory
Encode data using xor
Get common file path
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x26c], ebx
lea edi, [ebx + 0xd4]
push edi
push 0x104
mov dword [ebp - 0x264], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebx + 0x6f4], eax
test eax, eax
je 0x409cb4
cmp eax, 0x104
ja 0x409cb4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
mov esi, 0x811c9dc5
mov dword [ebx + 0x6f0], ecx
lea ebx, [edi + 2]
mov dh, byte [edi]
mov dl, dh
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x25c], ebx
test dl, dl
je 0x409c31
nop word [eax + eax]
movsx ecx, dl
lea ebx, [ebx + 2]
sub dl, 0x41
mov eax, ecx
or eax, 0x20
cmp dl, 0x19
mov dl, byte [ebx - 2]
cmova eax, ecx
xor eax, esi
imul esi, eax, 0x1000193
test dl, dl
jne 0x409bd0
mov ebx, esi
movsx ecx, dh
sub dh, 0x41
mov eax, ecx
or eax, 0x20
cmp dh, 0x19
cmova eax, ecx
xor eax, ebx
imul ebx, eax, 0x1000193
mov eax, dword [ebp - 0x25c]
mov dh, byte [eax]
add eax, 2
mov dword [ebp - 0x25c], eax
test dh, dh
jne 0x409bf5
mov edi, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x268]
jmp 0x409c3d
mov dword [ebp - 0x25c], 0
mov ebx, esi
xor eax, eax
or eax, ebx
push esi
mov esi, dword [ebp - 0x26c]
push eax
mov eax, 0x104
sub eax, ecx
add ecx, 0x6a
push 0x42ea94
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00407f50
add esp, 0x14
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x409c83
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x409c8a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x42ea90
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x6f0], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
push 0
call fcn.00412394
int3
Function at 0x40aba0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9e4
mov eax, dword [0x432040]
xor eax, esp
mov dword [esp + 0x9e0], eax
push ebx
push esi
movzx esi, byte [0x43719c]
lea eax, [esp + 0x14]
push edi
xor ebx, ebx
mov dword [esp + 0x10], esi
cmp dword [0x4371e8], ebx
mov edi, 1
push 0xc0
push 0
push eax
cmova ebx, edi
call fcn.0040ef50
add esp, 0xc
lea eax, [esp + 0xdc]
push 0x638
push 0
push eax
call fcn.0040ef50
add esp, 0xc
mov dword [esp + 0xd8], 0
mov dword [esp + 0x714], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40ac4f
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac4f
push 0xc00
call eax
test eax, eax
jne 0x40acf7
push 0x106
lea eax, [esp + 0x71c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40acf7
cmp ecx, 0x104
ja 0x40acf7
cmp word [esp + ecx*2 + 0x716], 0x5c
je 0x40ac91
mov eax, 0x5c
mov word [esp + ecx*2 + 0x718], ax
inc ecx
mov al, byte [str.userenv]
mov esi, str.userenv
test al, al
je 0x40acf3
lea edi, [esp + 0x718]
lea edi, [edi + ecx*2]
nop dword [eax]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x40acb3
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [esp + 0x720]
push eax
mov dword [ecx + 4], 0x6c006c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov al, byte [esi]
test al, al
jne 0x40acb0
mov edi, 1
mov esi, dword [esp + 0x10]
call fcn.00403cf0
push 0x104
lea eax, [esp + 0x71c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40adaa
cmp eax, 0x104
jae 0x40adaa
lea eax, [esp + 0x718]
push eax
lea ecx, [esp + 0x1c]
call fcn.004096d0
test al, al
je 0x40adaa
test ebx, ebx
je 0x40ad67
lea ecx, [esp + 0x18]
call fcn.00409b50
cmp dword [0x4371ec], 7
lea ecx, [esp + 0x18]
mov eax, 0x4371d8
cmova eax, dword [0x4371d8]
push eax
call fcn.00409cc0
test eax, eax
jne 0x40add8
lea ecx, [esp + 0x18]
call fcn.0040a370
test esi, esi
je 0x40adc1
cmp dword [0x4371b4], 7
mov ecx, 0x4371a0
push dword [0x4371d0]
cmova ecx, dword [0x4371a0]
mov eax, 0x4371b8
cmp dword [0x4371cc], 7
push ecx
cmova eax, dword [0x4371b8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9e0]
xor ecx, esp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x9ec]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret
push 1
mov ecx, 0x4371d8
call fcn.0040b9d0
push eax
lea ecx, [esp + 0x20]
call fcn.0040a070
push 0
call fcn.00412394
int3
Function at 0x40ae00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426640
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x432040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0
mov dword [ecx], 0x42eb98
add ecx, 0x18
call fcn.0040bc10
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x18], 1
call fcn.0040cf7f
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x38
push 0
push esi
mov dword [ebp - 4], 1
call fcn.0040ef50
lea ebx, [esi + 0x24]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea edi, [esi + 0x28]
mov dword [esi + 4], 0
push 8
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebp - 0x1c], edi
mov dword [edi], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0040cf7f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 2
call fcn.0040de67
mov edi, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov ebx, eax
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0x34], esi
lea esi, [eax + 4]
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
mov ebx, dword [ebp - 0x14]
mov dword [edi + 0x2c], ebx
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x30], edi
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov dword [ebx], vtable.CBufferBuf_char__struct_std::char_traits_char__.0
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0x432a98
mov dword [eax], 0x432a98
mov dword [edi], 0x3e8
mov dword [esi], 0x432a98
mov dword [ecx], 0x432a98
mov dword [ebx], 0x3e8
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
add esp, 0x14
mov eax, dword [ebx]
push dword [ebp - 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.0040bc80
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.CBufferInStream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d91c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d95b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d95b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d95b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d95b
cmp dword [ecx + 0x74], 0xe
jbe 0x40d95b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41a4f2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41a53d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041a68d
test al, al
jne 0x41a537
sub edx, 2
cmp edx, edi
jne 0x41a51d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41a55f
lea eax, [edi + 2]
cmp edx, eax
je 0x41a55f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041a43e
add esp, 0x10
jmp 0x41a659
push esi
lea ecx, [ebp - 0x255]
call fcn.0041a68d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a5a2
push dword [ebp - 0x25c]
jmp 0x41a54f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41a5df
cmp word [ebp - 0x226], 0
je 0x41a600
cmp word [ebp - 0x226], ax
jne 0x41a5df
cmp word [ebp - 0x224], 0
je 0x41a600
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041a43e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41a64c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41a5b9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41a634
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41a659
push 0x41a26e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00422360
add esp, 0x10
jmp 0x41a629
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cc8c
leave
ret

Function at 0x41b178
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b189
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b141
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00418a9c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b1b1
push ebx
push esi
push edi
call fcn.0040f0f0
add esp, 0xc
push 0
call fcn.00418a62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x41b581
Capabilities:
Set environment variable

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

Function at 0x41ba14
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42adf8
push 0x42adf0
push str.FlsAlloc
push 0x1f
call fcn.0041b89e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ba48
push dword [ebp + 8]
mov ecx, esi
call dword [0x427184]
call esi
jmp 0x41ba4e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ba92
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ae08
push 0x42ae00
push str.FlsGetValue
push 0x21
call fcn.0041b89e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bac9
push dword [ebp + 8]
mov ecx, esi
call dword [0x427184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41bad1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ae10
push 0x42ae08
push str.FlsSetValue
push 0x22
call fcn.0041b89e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bb0b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41e874
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00419d34
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e8e3
cmp esi, dword [ebp - 4]
je 0x41e8de
cmp dword [ebp + 0xc], 0
je 0x41e8de
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41e8bb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041e3c6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41e8e5
xor eax, eax
inc eax
jmp 0x41e8e5
xor eax, eax
pop edi
pop esi
leave
ret