joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [edi + 0x758b5645], 0xffffffcf
adc ecx, dword [ebp + 0x786a8845]
push eax
push esi
call 0x5e30e0
mov ecx, dword [ebp + 0x69]
popal
adc eax, 0x40f5c8
push eax
push ecx
add edx, 0x40
push 0x9653c2
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, dword [0x854102ac]
add esp, 0x14
test esp, ebx
je 0x401e8c
push eax
push 0x3040a854
or byte [edi + 0x404964], ah
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
xor byte [ebx - 0x566f6f70], ah
nop
nop
nop
nop
nop

Function at 0x405730
Capabilities:
Encode data using xor

Disassembly:
nop
nop
out dx, eax
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
ja 0x40573e
adc byte [edi - 0x75], dl
jge 0x4056da
push esi
push edi
push eax
call fcn.00405640
push edi
call dword [edi + 0x5f04c483]
les eax, [edi + ebx*2]
pop esi
pop ebp
sahf
or al, 0
nop
nop
nop
fst dword [eax + 0xf904590]
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x405711
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
push edx
call dword [eax + 8]
mov eax, dword [esi]
add esp, 4
inc edx
shl byte [ecx - 0x4fa2a814], 0x32
push edi
pop ebp
mov al, 0x32
nop
nop
nop
rcl dword [eax - 0x6fae5d70], 0x90
mov ch, 0x33
ror byte [eax - 0x70], 0x90
nop
nop
push ds
nop
nop
nop
lds edi, [esi - 0x70]
mov byte [eax - 0x7cf47415], dl
jmp 0x4056bd
or eax, dword [ebx - 0x74eaf714]
pop ebp
invalid
invalid
jmp 0x4056bd
xor eax, dword [eax]
test ebx, ebx
rol dword [ebp - 7], 0
inc esp
add ch, dh
fcmovnb st(0), st(1)
inc ebp
stc
add byte [eax + eax - 0xb], al
jo 0x40573b
sahf
push es
push 1
push 0
mov eax, dword [0x5ae85000]
dec ebp
add byte [0x165763d], ah
popfd
das
pop es
mov dword [esi + 4], 0
mov esi, dword [esi + 8]
test esi, esi
jne 0x405748
mov esi, dword [0x8504f98b]
sal byte [esi + edx*2 - 0x75], 0xe
mov edi, 1
push 9
push ecx
mov dword [esi + 0x41], edi
Function at 0x405890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
or edx, dword [esi + 0x57]
mov edi, dword [ebp + 0xc]
sbb eax, 0x85d233db
push dword [ebx - 0x73]
jne 0x4058c3
or ecx, 1
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, 6
add al, 0xb8
mov dword [edx - 0x74bc2363], ebp
inc edi
add al, 0xa6
and al, 4
add edx, ecx
test edi, edi
jne 0x4058a7
lodsb al, byte [esi]
inc ebp
or byte [edx + 0x52], al
push eax
call 0xff8d4860
in eax, 0x75
or al, 0xb0
in al, dx
test dword [esi], eax
mov dword [ebp - 0xc], eax
mov edx, eax
mov dword [ebp - 0x7e], ecx
je 0x405931
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x4058ee
cmp ecx, 0xffffffe9
std
or cl, byte [ebx + 0x41dc8d76]
mov dword [ebp - 4], ecx
jmp 0x40590b
mov ecx, eax
mov edi, edx
mov ebx, ecx
add edx, eax
sal dword [ecx], 2
rep movsd dword es:[edi], dword [esi]
retf
pop edi
pop esi
mov byte [edx], 0
pop ebx
mov esi, dword [ebp - 0x2c6f3ca3]
nop
mov al, byte [0xec8b5590]
push ebp
mov ebp, esp
and dword [edi], 8
mov cx, word [str._s:_invalid_URL_n]
mov eax, dword [0x401486]
mov dl, byte [0x94f3ca]
push ebx
push esi
jno 0x4059d1
or al, 0x66
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
test esi, esi
push edi
adc al, 0x45
clc
mov byte [ebp - 2], dl
inc ebx
pop ebp
clc
jg 0x4059c8
jl 0x405978
mov dword [0x8b1f73c9], eax
inc ebp
adc byte [ebx + 0x40f3bc1f], cl
add byte [eax + ecx*8 + 0x5f], ah
pop esi
pop ebx
mov eax, dword [ebp + 0x10]
mov ebx, dword [edi]
mov esp, 0x640040f3
enter 0x5e5f, 0x5b
mov dword [ecx], edx
mov dl, byte [0xce9bf3c0]
mov byte [ebx - 0x4a1a74fc], bl
ret 0xc
mov edi, ecx
mov eax, dword [esi + 0x29]
salc
mov ecx, 0xc10025
sbb dword [0x90003ff], 0x5a5e32e8
add byte [ebx + 0x5e1b8bf2], cl
rol dword [eax], 0x81
sbb eax, 0x90003ff
call 0x9ab810
mov esi, edx
mov ebx, dword [ebx]
pop esi
idiv byte [eax + esi*2 + 0x7f]
or ah, dl
xor eax, 0x8003cd
jb 0x4059c8
inc ebx
jmp 0x4059c8
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x40169e
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4042cb], ebp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404772], eax
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404706], eax
mov dword [0x4042c3], eax
mov dword [0x4046f2], 0x30
mov dword [0x4046f6], 2
jmp 0x4016df
xor eax, eax
mov dword [0x4046fa], 0x403290
mov dword [0x4046fe], eax
mov dword [0x404702], eax
mov eax, 0x4041c7
mov dword [0x404712], 0xe
mov dword [0x40471a], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40470e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x40470a], eax
mov dword [0x40471e], eax
push 0x4046f2
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4042c3]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push 0x4046c8
push 0x4041c7
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404766], eax
push 5
push eax
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404766]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404722]
jmp 0x4017a6
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x401798
mov eax, dword [0x40472a]
jmp 0x4017c1
call 0x402a9e
ret
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
inc eax
add byte [ebx + 0xf0340c0], al
rol byte [eax], cl
push eax
call dword [0x4840c180]
add esp, 0xffffffc8
jmp 0x401e13
mov eax, dword [0x410288]
test eax, eax
loop 0x401e28
call 0xc5403200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
push 0
push 0
call 0xb1172060
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
push ebp
jo 0x401e2f
sub esp, 0x2a
push esi
mov esi, dword [ebp + 0xc]
jl 0x401def
inc ebp
mov byte [edx + 0x78], ch
push eax
push esi
call 0x8de8fce0
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
adc al, 0x51
add edx, 0x2c
push 0x40d41b
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, dword [0x3f02ac]
jle 0x401e3c
adc al, 0x85
out 0xce, al
invalid
Function at 0x401050
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x433064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x5155b0
push 0x67
push edi
call esi
push 0x64
push 0x5154e8
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x401150
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0x6d
mov dword [ebp - 0xc], 0x5154e8
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x5155b0
push 0x5154e8
push 0
mov dword [0x5154e0], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x40113a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a8fe
mov esp, ebp
pop ebp
ret 0x10
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00406510
int3
Function at 0x404db0
Capabilities:
Create process on windows
Get comspec environment variable
Get file attributes
Query environment variable
Self delete
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x77c
mov eax, dword [0x433064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x318]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x740]
call fcn.00407890
lea ecx, [ebp - 0x740]
call fcn.004077b0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 4
je 0x404e05
and eax, 0xfffffffb
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x3c
lea eax, [ebp - 0x77c]
push 0
push eax
call fcn.0040c2c0
push 0x208
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.0040c2c0
push 0x208
lea eax, [ebp - 0x728]
push 0
push eax
call fcn.0040c2c0
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040c2c0
add esp, 0x30
lea eax, [ebp - 0x520]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404f6e
push 0x104
lea eax, [ebp - 0x728]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404f6e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push str._c_del
push eax
call esi
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
push str.___nul
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x728]
mov dword [ebp - 0x77c], 0x3c
mov dword [ebp - 0x76c], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x768], eax
lea eax, [ebp - 0x77c]
push eax
mov dword [ebp - 0x774], 0
mov dword [ebp - 0x770], str.Open
mov dword [ebp - 0x764], 0
mov dword [ebp - 0x760], 0
mov dword [ebp - 0x778], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404f6e
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push dword [ebp - 0x744]
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea eax, [ebp - 0x520]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x406b02
jl 0x406af5
test ecx, ecx
jne 0x406b02
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x406bc2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00408140
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x406b6e
jg 0x406b2d
test esi, esi
je 0x406b6e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x406b45
mov eax, dword [esp + 0x10]
jl 0x406b3f
cmp eax, esi
jae 0x406b45
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040bd30
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x406b8f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x406bab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x406b14
jl 0x406bab
test ecx, ecx
jne 0x406b14
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x406c06
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x406c06
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040bd30
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x406c77
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x406c2c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x406c62
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00410e6f
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x406c77
cmp edi, eax
ja 0x406c40
test edi, edi
je 0x406c77
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00410e6f
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407fd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4243d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x433064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040ab0e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00409fef
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x20], ecx
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x515680]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [0x515684]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b50d
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4283b8
push 0x4283b0
push str.FlsAlloc
push 0x1f
call fcn.00417646
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41780f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4251e8]
call esi
jmp 0x417815
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417859
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4283c8
push 0x4283c0
push str.FlsGetValue
push 0x21
call fcn.00417646
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417890
push dword [ebp + 8]
mov ecx, esi
call dword [0x4251e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417898
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4283d0
push 0x4283c8
push str.FlsSetValue
push 0x22
call fcn.00417646
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4178d2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4251e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41859f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b680
mov eax, dword [0x433064]
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.0041565e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4185e1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41873d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423a80
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 + 0x5150b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004193a1
mov ecx, dword [esi*4 + 0x5150b8]
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 0x418736
cmp eax, dword [ecx + edi + 0x24]
jne 0x418736
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 0x418736
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004193a1
add esp, 0x14
test edx, edx
jl 0x418736
jg 0x4186ac
test eax, eax
jb 0x418736
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418736
jl 0x4186c6
cmp dword [ebp - 0x1008], eax
ja 0x418736
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4186e4
test ebx, ebx
je 0x41871d
cmp ecx, edi
jae 0x41871d
mov al, byte [ecx]
cmp al, 0xd
jne 0x4186fe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41870a
cmp byte [ecx + 1], 0xa
jne 0x41870a
inc ecx
jmp 0x41870a
movzx eax, al
movsx eax, byte [eax + 0x4332e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4186e4
cmp edx, ebx
jne 0x4186e4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41873b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a8fe
leave
ret
Function at 0x418838
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 + 0x5150b8]
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 0x418878
cmp byte [ebx], 0xa
jne 0x418878
or byte [edi + eax + 0x28], 4
jmp 0x41887d
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 0x41897c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41895f
inc eax
cmp dl, 0xd
je 0x4188a9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4188cf
cmp eax, ecx
jae 0x4188dd
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 0x418891
jmp 0x41897c
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 0x41895a
cmp dword [ebp - 0x10], 0
je 0x41895a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5150b8]
test byte [eax + edi + 0x28], 0x48
je 0x418934
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41891f
mov byte [esi], dl
jmp 0x418930
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5150b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41897c
cmp byte [ebp - 1], 0xa
jne 0x418943
cmp esi, ebx
jne 0x418943
mov byte [esi], 0xa
jmp 0x41897b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004193bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41897c
mov byte [esi], 0xd
jmp 0x41897b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5150b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418979
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41897c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret