joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x48
cmp eax, 1
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 0
jne 0x4322d2
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x43218a
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x43219f
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebx], 0
mov esi, dword [sym.imp.WINMM.dll_mmioOpenA]
push 0
push 0
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
je 0x4322eb
push 0
push eax
call dword [sym.imp.WINMM.dll_mmioClose]
push 0x10000
push 0
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
jne 0x432292
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.WAVE
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x4321fd
push 0x46d240
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4322eb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4322eb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x4322eb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4322eb
push ebp
call sub.MFC71.DLL_operator_new_1
mov dword [ebx + 0x90], eax
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov ecx, 0x48
mov edi, edi
mov byte [eax], 0
inc eax
dec ecx
jne 0x432260
mov ecx, dword [ebx + 0x90]
push 0x10000
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.00431930
mov esi, eax
test esi, esi
jge 0x4322b7
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.00431ab0
test eax, eax
jl 0x43232b
mov ecx, dword [ebx + 0xc]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x30], ecx
pop ebx
add esp, 0x48
ret 0xc
mov edx, dword [esp + 0x5c]
push 0x11002
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x4322fa
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebx
call fcn.00431de0
mov esi, eax
test esi, esi
jge 0x432324
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.00431ab0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
Function at 0x434bc0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 2
push 0
push esi
mov edi, ecx
call ebx
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
xor eax, eax
push esi
push 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push 4
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x4c]
push 4
push ecx
call ebx
mov edx, dword [esp + 0x58]
push esi
push 1
push 4
push edx
call ebx
mov eax, dword [esp + 0x5c]
add esp, 0x4c
cmp eax, 0x100
jne 0x434c84
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
cmp ebp, ecx
jne 0x434c84
push eax
mov dword [edi + 4], eax
call sub.MFC71.DLL_operator_new_1
mov edx, dword [esp + 0x1c]
push esi
push edx
push 1
push eax
mov dword [edi], eax
call ebx
mov ecx, dword [esp + 0x2c]
add esp, 0x14
xor eax, eax
test ecx, ecx
jle 0x434c7a
mov ecx, dword [edi]
mov dl, byte [ecx + eax]
add ecx, eax
add dl, 8
mov byte [ecx], dl
mov edx, dword [edi]
mov bl, byte [edx + eax]
lea ecx, [edx + eax]
xor bl, 0x32
mov byte [ecx], bl
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
jl 0x434c58
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
Function at 0x451c88
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x485b70
call fcn.00452350
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x451cc8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x451cc8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x451ce0
cmp eax, 0x20b
je 0x451ccd
mov dword [ebp - 0x1c], ebx
jmp 0x451cf4
cmp dword [ecx + 0x84], 0xe
jbe 0x451cc8
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x451cee
cmp dword [ecx + 0x74], 0xe
jbe 0x451cc8
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x1f65d08], 0xffffffff
or dword [0x1f65d0c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x1f658bc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x1f658b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1f65d04], eax
call fcn.00452448
call fcn.004524e8
cmp dword [0x4c0730], ebx
jne 0x451d54
push fcn.004524e8
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004524d6
push 0x48f4f0
push 0x48f4ec
call sub.MSVCR71.dll__initterm
push 0x45248c
call fcn.00451bf3
mov eax, dword [0x1f658b4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x1f658b0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x451da8
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x48f4e8
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x451e26
cmp al, bl
je 0x451dd2
cmp dword [ebp - 0x20], ebx
jne 0x451e26
mov al, byte [esi]
cmp al, bl
je 0x451de2
cmp al, 0x20
ja 0x451de2
inc esi
mov dword [ebp - 0x24], esi
jmp 0x451dd2
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x451dfe
movzx eax, word [ebp - 0x54]
jmp 0x451e01
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004592c8
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x451e1e
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x451e7b
cmp al, 0x22
jne 0x451e35
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x451e48
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x451dc0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0045238b
ret
Function at 0x453290
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x454b70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x454b7f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4c07bc]
test eax, eax
je 0x454b8d
call fcn.00454b10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x454c8f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x1f658c0]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1f658c0]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1f658c0]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1f658c0]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1f658c0]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1f658c0]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1f658c0]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x1f658c0]
xor eax, ecx
inc esi
dec edi
jne 0x454ba7
pop edi
test edx, edx
je 0x454cb1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x1f658c0]
xor eax, ecx
inc esi
dec edx
jne 0x454c93
pop ebx
pop esi
not eax
ret 0xc
Function at 0x4011e0
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
add edi, edx
jmp 0x401207
movzx ecx, byte [edx]
movzx eax, byte [esi]
xor ecx, eax
mov eax, dword [esi]
shr eax, 8
xor eax, dword [ecx*4 + 0x436178]
inc edx
mov dword [esi], eax
cmp edx, edi
jb 0x4011f0
mov eax, dword [esi]
pop edi
not eax
pop esi
ret 0xc
Function at 0x4027d3
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x168]
push 0
push dword [esp + 0xc]
push esi
call fcn.00414f22
add esp, 0xc
test eax, eax
jne 0x402809
push esi
push 1
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.00415212
add esp, 0x10
dec eax
neg eax
sbb al, al
inc al
jmp 0x40280b
xor al, al
pop esi
ret 0xc

Function at 0x40280f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43b080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0x168]
push edi
mov edi, dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push esi
call fcn.00414f22
add esp, 0xc
test eax, eax
jne 0x40288a
push esi
mov esi, 0x100
mov byte [ebp - 0x104], al
push esi
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.00415212
add esp, 0x10
cmp eax, esi
jne 0x40288a
lea edx, [ebp - 0x104]
mov byte [ebp - 5], 0
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40286e
sub edx, esi
lea ecx, [ebp - 0x104]
push edx
push ecx
mov ecx, edi
call fcn.00402904
mov al, 1
jmp 0x40288c
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c9a4
leave
ret 8

Function at 0x403c69
Capabilities:
Create process on windows
Set environment variable

Disassembly:
push 0x84
mov eax, 0x42c655
call fcn.0040d130
mov edi, ecx
push 0x40
xor ebx, ebx
mov dword [ebp - 0x90], 0x44
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0040e450
add esp, 0xc
push 0x4369ac
push str._NO_DEBUG_HEAP
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea esi, [edi + 0x34]
mov byte [ebp - 0x44], 0x22
cmp dword [esi + 0x10], 0x7fffffff
je 0x403d52
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x403cc6
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push 1
lea eax, [ebp - 0x44]
push eax
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.00409f3d
push 2
push 0x4369c0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.00401ee9
push eax
lea ecx, [ebp - 0x28]
call fcn.00401e2a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00401ec6
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.00401ee9
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0xf
jbe 0x403d24
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
push ebx
push 6
push ebx
push ebx
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403d57
lea ecx, [ebp - 0x28]
call fcn.00401ec6
call fcn.0040d0ee
ret 8
call fcn.004013f8
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
push eax
call fcn.0040772d
mov ecx, 0x306
call fcn.004030d0
int3
Function at 0x403d70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43b080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x403e25
lea eax, [ebp - 0x24]
push eax
push 0x40
push dword [ebp + 0x10]
push edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test esi, esi
jne 0x403e25
mov eax, dword [0x43bb20]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call dword [0x42e19c]
mov ecx, 0x43bb20
call esi
cmp dword [eax + 0x14], 0xf
jbe 0x403e0a
mov eax, dword [eax]
push eax
push edi
push str.SyringeDebugger::PatchMem__x__Error___s_
call fcn.00401253
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00401ec6
xor al, al
jmp 0x403e27
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c9a4
leave
ret 0xc

Function at 0x403ebb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi + 8]
mov dword [esi], ecx
mov dword [esi + 4], eax
test eax, eax
je 0x403efb
cmp dword [ebp + 0x10], ecx
je 0x403efb
push 0x40
push 0x3000
push dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esi], eax
test eax, eax
je 0x403efb
pop edi
mov eax, esi
pop esi
leave
ret 0xc
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
push eax
call fcn.0040772d
mov ecx, 0x306
call fcn.004030d0
int3
Function at 0x40bd8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40bdb5
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40bdb8
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040bd6a
pop esi
leave
ret 8

Function at 0x40d59f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d5de
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d5de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d5de
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d5de
cmp dword [ecx + 0x74], 0xe
jbe 0x40d5de
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41e97a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4325b0
push 0x4325a8
push str.FlsAlloc
push 0x1f
call fcn.0041e7e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e9ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e19c]
call esi
jmp 0x41e9b4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e9f8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4325c0
push 0x4325b8
push str.FlsGetValue
push 0x21
call fcn.0041e7e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ea2f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e19c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ea37
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4325c8
push 0x4325c0
push str.FlsSetValue
push 0x22
call fcn.0041e7e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ea71
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e19c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41f57d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d800
mov eax, dword [0x43b080]
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.0041b9fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f5bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41f71b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042bb30
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 + 0x43c890]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041f106
mov ecx, dword [esi*4 + 0x43c890]
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 0x41f714
cmp eax, dword [ecx + edi + 0x24]
jne 0x41f714
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 0x41f714
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f106
add esp, 0x14
test edx, edx
jl 0x41f714
jg 0x41f68a
test eax, eax
jb 0x41f714
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41f714
jl 0x41f6a4
cmp dword [ebp - 0x1008], eax
ja 0x41f714
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f6c2
test ebx, ebx
je 0x41f6fb
cmp ecx, edi
jae 0x41f6fb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41f6dc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41f6e8
cmp byte [ecx + 1], 0xa
jne 0x41f6e8
inc ecx
jmp 0x41f6e8
movzx eax, al
movsx eax, byte [eax + 0x43b4e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f6c2
cmp edx, ebx
jne 0x41f6c2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41f719
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c9a4
leave
ret
Function at 0x41f7ba
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 + 0x43c890]
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 0x41f7fa
cmp byte [ebx], 0xa
jne 0x41f7fa
or byte [edi + eax + 0x28], 4
jmp 0x41f7ff
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 0x41f8fe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41f8e1
inc eax
cmp dl, 0xd
je 0x41f82b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41f851
cmp eax, ecx
jae 0x41f85f
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 0x41f813
jmp 0x41f8fe
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 0x41f8dc
cmp dword [ebp - 0x10], 0
je 0x41f8dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43c890]
test byte [eax + edi + 0x28], 0x48
je 0x41f8b6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f8a1
mov byte [esi], dl
jmp 0x41f8b2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43c890]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f8fe
cmp byte [ebp - 1], 0xa
jne 0x41f8c5
cmp esi, ebx
jne 0x41f8c5
mov byte [esi], 0xa
jmp 0x41f8fd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041f124
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f8fe
mov byte [esi], 0xd
jmp 0x41f8fd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43c890]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f8fb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f8fe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f907
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 + 0x43c890]
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 0x41f94d
cmp word [ebx], dx
jne 0x41f94d
or byte [eax + edi + 0x28], 4
jmp 0x41f952
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 0x41fab5
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 0x41fa95
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41f993
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f9c9
cmp eax, edx
jae 0x41f9d7
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 0x41f96e
jmp 0x41fab5
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 0x41fa90
cmp dword [ebp - 0x18], 0
je 0x41fa90
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43c890]
test byte [eax + edi + 0x28], 0x48
je 0x41fa66
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 0x41fa2a
mov word [esi], cx
jmp 0x41fa61
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43c890]
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 + 0x43c890]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43c890]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41fab5
pop eax
cmp word [ebp - 4], ax
jne 0x41fa76
cmp esi, ebx
jne 0x41fa76
mov word [esi], ax
jmp 0x41fab2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041f124
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41fab5
push 0xd
pop eax
jmp 0x41fa71
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43c890]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41faaf
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41fab5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret