joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036f0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x180c
call fcn.0040ea60
mov eax, dword [0x2ba0be4]
mov ecx, dword [0x2ba0b58]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403814
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2ba0be4], 0x959
jne 0x4037fa
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x402db4
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc1c]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0x402dd0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0x402e14
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402e1c
push 0x402e50
call esi
push 0
push 0x402eac
push 0x402ec4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403530
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403734
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180c
ret
Function at 0x4061bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446aa8]
jne 0x4061c5
repz ret
jmp fcn.0040a7bc

Function at 0x40ce8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407b1e
and dword [ebp - 4], 0
cmp dword [0x44a0d8], 0
mov ebx, eax
jne 0x40cf3c
push 0x402c84
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cfed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c78
push edi
call esi
test eax, eax
je 0x40cfed
push eax
call fcn.00407aac
mov dword [esp], 0x402c68
push edi
mov dword [0x44a0d8], eax
call esi
push eax
call fcn.00407aac
mov dword [esp], 0x402c54
push edi
mov dword [0x44a0dc], eax
call esi
push eax
call fcn.00407aac
mov dword [esp], 0x402c38
push edi
mov dword [0x44a0e0], eax
call esi
push eax
call fcn.00407aac
pop ecx
mov dword [0x44a0e8], eax
test eax, eax
je 0x40cf3c
push 0x402c20
push edi
call esi
push eax
call fcn.00407aac
pop ecx
mov dword [0x44a0e4], eax
mov eax, dword [0x44a0e4]
cmp eax, ebx
je 0x40cf94
cmp dword [0x44a0e8], ebx
je 0x40cf94
push eax
call fcn.00407b27
push dword [0x44a0e8]
mov esi, eax
call fcn.00407b27
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cf94
test edi, edi
je 0x40cf94
call esi
test eax, eax
je 0x40cf8b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cf8b
test byte [ebp - 0xc], 1
jne 0x40cf94
or dword [ebp + 0x10], 0x200000
jmp 0x40cfcd
mov eax, dword [0x44a0dc]
cmp eax, ebx
je 0x40cfcd
push eax
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfcd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cfcd
mov eax, dword [0x44a0e0]
cmp eax, ebx
je 0x40cfcd
push eax
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfcd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44a0d8]
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cfef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017f7
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x134
call fcn.00402230
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x119]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call eax
sub esp, 0xc
mov dword [esp + 4], 0x404047
lea eax, [ebp - 0x119]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
mov dword [esp], 0x3400
call sub.msvcrt.dll_malloc
mov dword [0x405020], eax
mov eax, dword [0x405020]
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x3400
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov byte [ebp - 9], 0x41
jmp 0x4018ce
mov byte [ebp - 0x10], 0
movsx eax, byte [ebp - 9]
mov dword [esp + 0xc], 0x40404a
mov dword [esp + 8], eax
mov dword [esp + 4], str._c_s
lea eax, [ebp - 0x15]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x15]
mov dword [esp], eax
call fcn.00401500
movzx eax, byte [ebp - 9]
add eax, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0x5a
jle 0x401892
jmp 0x40188c

Function at 0x401d40
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00401da0
Function at 0x468f78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404d7c
mov eax, dword [ebp - 8]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x46908e
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 4]
call fcn.00404b8c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00404b8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x468fd7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.00404f18
mov esi, dword [ebp - 0x14]
test esi, esi
jle 0x46900c
mov ebx, 1
mov eax, edi
call fcn.00404de4
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x468fed
cmp byte [ebp - 9], 0
je 0x469044
mov ebx, dword [ebp - 0x14]
inc ebx
mov esi, dword [ebp - 0x10]
sub esi, ebx
jl 0x469073
inc esi
mov eax, edi
call fcn.00404de4
mov edx, ebx
sub edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x46901e
jmp 0x469073
mov ebx, dword [ebp - 0x14]
inc ebx
mov esi, dword [ebp - 0x10]
sub esi, ebx
jl 0x469073
inc esi
mov eax, edi
call fcn.00404de4
mov edx, ebx
sub edx, dword [ebp - 0x14]
mov ecx, dword [edi]
mov dl, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x469050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469095
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
ret

Function at 0x469858
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
mov ebx, edx
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push esi
push 0
call sub.shfolder.dll_SHGetFolderPathA
call fcn.004073e0
test eax, eax
je 0x4698a4
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404b3c
jmp 0x4698ab
mov eax, ebx
call fcn.004048cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rdata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6f5c26c6
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section._RDATA
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3ed301ff
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4037a0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x1c0c
call fcn.0040e540
mov eax, dword [0x2b9ec44]
mov ecx, dword [0x2b9ebb8]
shr eax, 3
test eax, eax
jbe 0x4038db
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4037f0
cmp dword [0x2b9ec44], 0x959
jne 0x4038bd
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0x402dbc
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x1020]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0x402de8
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x824]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0x402e50
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402e5c
push 0x402e6c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.004035d0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4037f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0c
ret
Function at 0x4062eb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446aa8]
jne 0x4062f5
repz ret
jmp fcn.0040a8ec

Function at 0x40cfaf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004078b5
and dword [ebp - 4], 0
cmp dword [0x448138], 0
mov ebx, eax
jne 0x40d060
push 0x402ca4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d111
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c98
push edi
call esi
test eax, eax
je 0x40d111
push eax
call fcn.00407843
mov dword [esp], 0x402c88
push edi
mov dword [0x448138], eax
call esi
push eax
call fcn.00407843
mov dword [esp], 0x402c74
push edi
mov dword [0x44813c], eax
call esi
push eax
call fcn.00407843
mov dword [esp], 0x402c58
push edi
mov dword [0x448140], eax
call esi
push eax
call fcn.00407843
pop ecx
mov dword [0x448148], eax
test eax, eax
je 0x40d060
push 0x402c40
push edi
call esi
push eax
call fcn.00407843
pop ecx
mov dword [0x448144], eax
mov eax, dword [0x448144]
cmp eax, ebx
je 0x40d0b8
cmp dword [0x448148], ebx
je 0x40d0b8
push eax
call fcn.004078be
push dword [0x448148]
mov esi, eax
call fcn.004078be
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d0b8
test edi, edi
je 0x40d0b8
call esi
test eax, eax
je 0x40d0af
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d0af
test byte [ebp - 0xc], 1
jne 0x40d0b8
or dword [ebp + 0x10], 0x200000
jmp 0x40d0f1
mov eax, dword [0x44813c]
cmp eax, ebx
je 0x40d0f1
push eax
call fcn.004078be
pop ecx
test eax, eax
je 0x40d0f1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d0f1
mov eax, dword [0x448140]
cmp eax, ebx
je 0x40d0f1
push eax
call fcn.004078be
pop ecx
test eax, eax
je 0x40d0f1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448138]
call fcn.004078be
pop ecx
test eax, eax
je 0x40d111
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d113
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410ee6
Capabilities:
Parse pe header

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

Function at 0x415d3a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041d770
mov eax, dword [0x42d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419a88
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415d7c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x415ed8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d6c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42ea78]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041d4f4
mov ecx, dword [esi*4 + 0x42ea78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x415ed1
cmp eax, dword [ecx + edi + 0x24]
jne 0x415ed1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415ed1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d4f4
add esp, 0x14
test edx, edx
jl 0x415ed1
jg 0x415e47
test eax, eax
jb 0x415ed1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415ed1
jl 0x415e61
cmp dword [ebp - 0x1008], eax
ja 0x415ed1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415e7f
test ebx, ebx
je 0x415eb8
cmp ecx, edi
jae 0x415eb8
mov al, byte [ecx]
cmp al, 0xd
jne 0x415e99
lea eax, [edi - 1]
cmp ecx, eax
jae 0x415ea5
cmp byte [ecx + 1], 0xa
jne 0x415ea5
inc ecx
jmp 0x415ea5
movzx eax, al
movsx eax, byte [eax + 0x42dd50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415e7f
cmp edx, ebx
jne 0x415e7f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x415ed6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410653
leave
ret

Function at 0x416600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41662d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41662d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4169c2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426858
push 0x426850
push str.FlsAlloc
push 0x1f
call fcn.00416ca5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4169f6
push dword [ebp + 8]
mov ecx, esi
call dword [section..11cfg]
call esi
jmp 0x4169fc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416a40
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426868
push 0x426860
push str.FlsGetValue
push 0x21
call fcn.00416ca5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416a77
push dword [ebp + 8]
mov ecx, esi
call dword [section..11cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416a7f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426870
push 0x426868
push str.FlsSetValue
push 0x22
call fcn.00416ca5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416ab9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..11cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41b958
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 0x41b9f5
push ebx
push esi
call fcn.0041b9f8
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.0041b85c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b9a2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b9f4
push edi
push eax
call fcn.004188b6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b9c2
call fcn.00417f0b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b9f3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b85c
add esp, 0x20
test eax, eax
jne 0x41b9e1
push edi
call fcn.00417f0b
jmp 0x41b9e9
push ebx
call fcn.00417f0b
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 0x41cfb5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x42ea78]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cff5
cmp byte [ebx], 0xa
jne 0x41cff5
or byte [edi + eax + 0x28], 4
jmp 0x41cffa
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41d0f9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41d0dc
inc eax
cmp dl, 0xd
je 0x41d026
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41d04c
cmp eax, ecx
jae 0x41d05a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41d00e
jmp 0x41d0f9
push 0
lea eax, [ebp - 0x10]
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 0x41d0d7
cmp dword [ebp - 0x10], 0
je 0x41d0d7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42ea78]
test byte [eax + edi + 0x28], 0x48
je 0x41d0b1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d09c
mov byte [esi], dl
jmp 0x41d0ad
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42ea78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d0f9
cmp byte [ebp - 1], 0xa
jne 0x41d0c0
cmp esi, ebx
jne 0x41d0c0
mov byte [esi], 0xa
jmp 0x41d0f8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d496
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d0f9
mov byte [esi], 0xd
jmp 0x41d0f8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42ea78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d0f6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d0f9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d102
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42ea78]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d148
cmp word [ebx], dx
jne 0x41d148
or byte [eax + edi + 0x28], 4
jmp 0x41d14d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41d2b0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41d290
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41d18e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d1c4
cmp eax, edx
jae 0x41d1d2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41d169
jmp 0x41d2b0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d28b
cmp dword [ebp - 0x18], 0
je 0x41d28b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42ea78]
test byte [eax + edi + 0x28], 0x48
je 0x41d261
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41d225
mov word [esi], cx
jmp 0x41d25c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42ea78]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42ea78]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42ea78]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41d2b0
pop eax
cmp word [ebp - 4], ax
jne 0x41d271
cmp esi, ebx
jne 0x41d271
mov word [esi], ax
jmp 0x41d2ad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d496
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41d2b0
push 0xd
pop eax
jmp 0x41d26c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42ea78]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41d2aa
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41d2b0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret