joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5159f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbf000]
push edi
jmp 0x515a0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x515a11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515a00
mov eax, 1
add ebx, ebx
jne 0x515a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x515a34
jne 0x515a53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515a53
dec eax
add ebx, ebx
jne 0x515a40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x515a18
add ebx, ebx
jne 0x515a4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x515aa5
xor ecx, ecx
sub eax, 3
jb 0x515a6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x515ada
sar eax, 1
mov ebp, eax
jmp 0x515a76
add ebx, ebx
jne 0x515a76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515a44
inc ecx
add ebx, ebx
jne 0x515a84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515a44
add ebx, ebx
jne 0x515a91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x515a86
jne 0x515aa2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x515a86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x515ac4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x515ab6
jmp 0x515a06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x515ac4
add edi, ecx
jmp 0x515a06
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x515ae2
cmp byte [edi], 0x11
jne 0x515ae2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x515ae7
lea edi, [esi + 0x10e000]
mov eax, dword [edi]
or eax, eax
je 0x515b5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x152140]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1522bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x515b14
mov ecx, edi
jns 0x515b43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1522c0]
or eax, eax
je 0x515b59
mov dword [ebx], eax
add ebx, 4
jmp 0x515b31
call dword [esi + 0x1522d0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x515b90
cmp al, 0xef
ja 0x515b83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x515b65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x515b72
mov ebp, dword [esi + 0x1522c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x515bc4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b004]
jne 0x40100a
repz ret
jmp fcn.00401561

Function at 0x407095
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.00404781
and dword [ebp - 4], 0
cmp dword [0x41d17c], 0
mov ebx, eax
jne 0x407146
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4071f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4071f7
push eax
call fcn.0040470f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d17c], eax
call esi
push eax
call fcn.0040470f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d180], eax
call esi
push eax
call fcn.0040470f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41d184], eax
call esi
push eax
call fcn.0040470f
pop ecx
mov dword [0x41d18c], eax
test eax, eax
je 0x407146
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040470f
pop ecx
mov dword [0x41d188], eax
mov eax, dword [0x41d188]
cmp eax, ebx
je 0x40719e
cmp dword [0x41d18c], ebx
je 0x40719e
push eax
call fcn.0040478a
push dword [0x41d18c]
mov esi, eax
call fcn.0040478a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40719e
test edi, edi
je 0x40719e
call esi
test eax, eax
je 0x407195
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407195
test byte [ebp - 0xc], 1
jne 0x40719e
or dword [ebp + 0x10], 0x200000
jmp 0x4071d7
mov eax, dword [0x41d180]
cmp eax, ebx
je 0x4071d7
push eax
call fcn.0040478a
pop ecx
test eax, eax
je 0x4071d7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4071d7
mov eax, dword [0x41d184]
cmp eax, ebx
je 0x4071d7
push eax
call fcn.0040478a
pop ecx
test eax, eax
je 0x4071d7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d17c]
call fcn.0040478a
pop ecx
test eax, eax
je 0x4071f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4071f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2b4b5f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x2b514cc]
cmp dword [eax + 0x28], 0
jne 0x2b4b608
xor eax, eax
jmp 0x2b4b737
mov ecx, dword [0x2b5143c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x2b51430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x2b5142c], eax
push 0
call dword [0x2b4f138]
mov dword [ebp - 0x10], eax
push 1
call dword [0x2b4f138]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x2b51430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x2b5142c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x2b514b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push SysReAllocString
push 0x2b4f680
push 0x2b4f6d0
push 0x88
call dword [0x2b4f134]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x2b51428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x2b4f10c]
push eax
call fcn.02b4b530
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [0x2b4f148]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x2b4f12c]
push 0x2b4b5c0
mov edx, dword [0x2b514cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [0x2b4f13c]
mov dword [0x2b51434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [0x2b4f130]
test eax, eax
je 0x2b4b737
cmp dword [ebp - 0x38], 0x12
jne 0x2b4b72b
mov dword [0x2b51444], 0
call fcn.02b4b740
xor eax, eax
jmp 0x2b4b737
lea edx, [ebp - 0x3c]
push edx
call dword [0x2b4f140]
jmp 0x2b4b6fc
mov esp, ebp
pop ebp
ret 4

Function at 0x2b4cb00
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [fcn.02b4f0dc]
call dword [fcn.02b4f124]
call dword [fcn.02b4f128]
call dword [fcn.02b4f094]
call dword [fcn.02b4f0fc]
call dword [fcn.02b4f0f4]
call dword [fcn.02b4f150]
call dword [fcn.02b4f00c]
call dword [fcn.02b4f000]
call dword [fcn.02b4f160]
call fcn.02b4e644
mov eax, 1
pop ebp
ret 4
Function at 0x2b4d69c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x2b4f168
sub eax, eax
test esi, esi
je 0x2b4d774
sub eax, 1
test ecx, ecx
je 0x2b4d772
test esi, 3
je 0x2b4d6da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x2b4d6bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x2b4d759
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x2b4d6e4
mov ecx, edx
test ecx, ecx
je 0x2b4d772
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x2b4d75f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x2b4d77c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02b4d7ff
jae 0x2b4d78a
xor ecx, ecx
call fcn.02b4d7ff
jae 0x2b4d7b9
xor eax, eax
call fcn.02b4d7ff
jae 0x2b4d7c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02b4d7ff
adc al, al
jae 0x2b4d7ab
jne 0x2b4d7f5
stosb byte es:[edi], al
jmp 0x2b4d78d
call fcn.02b4d80b
sub ecx, ebx
jne 0x2b4d7d2
call fcn.02b4d809
jmp 0x2b4d7f1
lodsb al, byte [esi]
shr eax, 1
je 0x2b4d81b
adc ecx, ecx
jmp 0x2b4d7ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02b4d809
cmp eax, 0x7d00
jae 0x2b4d7ee
cmp ah, 5
jae 0x2b4d7ef
cmp eax, 0x7f
ja 0x2b4d7f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2b4d78d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x2b4e14c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2b51000]
jne 0x2b4e156
repz ret
jmp fcn.02b4e3fd
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5a4e7606
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42e1d0
nop
mov ecx, 0x321c1bed
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405d8c
Capabilities:
Parse pe header

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

Function at 0x407bff
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x407c20
jl 0x407c17
test edi, edi
jne 0x407c20
xor eax, eax
xor edx, edx
jmp 0x407ce1
cmp dword [ebx + 0x38], 0
je 0x407c35
push eax
push edi
push dword [ebp + 8]
call fcn.00407ce7
jmp 0x407ce1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407c7c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407c7c
cmp eax, edi
jb 0x407c56
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408fe0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x407c82
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407cd6
mov ecx, ebx
call fcn.004073ec
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407cc1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412435
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407cd6
jmp 0x407c94
test edx, edx
je 0x407cd6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412435
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x412c8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405600
mov eax, dword [0x4354c0]
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.0041b9cc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412cd0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412e2c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004054c0
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 + 0x4370d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041cba1
mov ecx, dword [esi*4 + 0x4370d0]
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 0x412e25
cmp eax, dword [ecx + edi + 0x24]
jne 0x412e25
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 0x412e25
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cba1
add esp, 0x14
test edx, edx
jl 0x412e25
jg 0x412d9b
test eax, eax
jb 0x412e25
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412e25
jl 0x412db5
cmp dword [ebp - 0x1008], eax
ja 0x412e25
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412dd3
test ebx, ebx
je 0x412e0c
cmp ecx, edi
jae 0x412e0c
mov al, byte [ecx]
cmp al, 0xd
jne 0x412ded
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412df9
cmp byte [ecx + 1], 0xa
jne 0x412df9
inc ecx
jmp 0x412df9
movzx eax, al
movsx eax, byte [eax + 0x4357a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412dd3
cmp edx, ebx
jne 0x412dd3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412e2a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004054aa
leave
ret

Function at 0x419ecf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42def8
push 0x42def0
push str.FlsAlloc
push 0x1f
call fcn.00419cba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419f03
push dword [ebp + 8]
mov ecx, esi
call dword [0x42916c]
call esi
jmp 0x419f09
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x419f4d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42df08
push 0x42df00
push str.FlsGetValue
push 0x21
call fcn.00419cba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419f84
push dword [ebp + 8]
mov ecx, esi
call dword [0x42916c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419f8c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42df10
push 0x42df08
push str.FlsSetValue
push 0x22
call fcn.00419cba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419fc6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42916c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41be9f
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 + 0x4370d0]
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 0x41bedf
cmp byte [ebx], 0xa
jne 0x41bedf
or byte [edi + eax + 0x28], 4
jmp 0x41bee4
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 0x41bfe3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41bfc6
inc eax
cmp dl, 0xd
je 0x41bf10
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41bf36
cmp eax, ecx
jae 0x41bf44
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 0x41bef8
jmp 0x41bfe3
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 0x41bfc1
cmp dword [ebp - 0x10], 0
je 0x41bfc1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4370d0]
test byte [eax + edi + 0x28], 0x48
je 0x41bf9b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bf86
mov byte [esi], dl
jmp 0x41bf97
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4370d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bfe3
cmp byte [ebp - 1], 0xa
jne 0x41bfaa
cmp esi, ebx
jne 0x41bfaa
mov byte [esi], 0xa
jmp 0x41bfe2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cbbf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bfe3
mov byte [esi], 0xd
jmp 0x41bfe2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4370d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bfe0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bfe3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bfec
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 + 0x4370d0]
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 0x41c032
cmp word [ebx], dx
jne 0x41c032
or byte [eax + edi + 0x28], 4
jmp 0x41c037
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 0x41c19a
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 0x41c17a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41c078
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c0ae
cmp eax, edx
jae 0x41c0bc
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 0x41c053
jmp 0x41c19a
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 0x41c175
cmp dword [ebp - 0x18], 0
je 0x41c175
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4370d0]
test byte [eax + edi + 0x28], 0x48
je 0x41c14b
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 0x41c10f
mov word [esi], cx
jmp 0x41c146
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4370d0]
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 + 0x4370d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4370d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41c19a
pop eax
cmp word [ebp - 4], ax
jne 0x41c15b
cmp esi, ebx
jne 0x41c15b
mov word [esi], ax
jmp 0x41c197
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cbbf
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41c19a
push 0xd
pop eax
jmp 0x41c156
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4370d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41c194
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41c19a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e1a7
Capabilities:
Print debug messages

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