joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422325
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.00446b6d
add esp, 0x18
test eax, eax
je 0x422345
cmp eax, 0xffffffff
jne 0x422347
xor eax, eax
pop ebp
ret

Function at 0x422f92
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.00437130
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42304b
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42302e
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42302e
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x42302e
cmp esi, dword [ebp - 0xc]
jb 0x42302e
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x42303c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x42304b
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425e9f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x84]
or esi, 0xffffffff
push ecx
mov ebx, dword [edi + 0xc]
mov eax, dword [ebx + 0x14c]
push eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x425ef7
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 4]
push ebx
push edi
call fcn.00413257
add esp, 0xc
cmp esi, 0xffffffff
jne 0x425f1b
push str.Error_accept__ing_server_connect
push edi
call fcn.00412b10
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x425f85
push str.Connection_accepted_from_server_n
push edi
call fcn.00412ba4
push 1
push esi
mov byte [ebx + 0x24e], 0
mov dword [ebx + 0x14c], esi
call fcn.0041d26f
add esp, 0x10
mov byte [ebx + 0x260], 1
cmp dword [edi + 0x1b8], 0
je 0x425f83
push 1
push edi
call fcn.0040652c
push 1
push esi
push dword [edi + 0x1bc]
call dword [edi + 0x1b8]
push 0
push edi
mov esi, eax
call fcn.0040652c
add esp, 0x1c
test esi, esi
je 0x425f83
push ebx
push edi
call fcn.0042632e
pop ecx
pop ecx
push 0x2a
jmp 0x425f18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427e4a
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x427e78
push str.Couldnt_set_desired_mode
push esi
call fcn.00412b10
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x427ecb
cmp ecx, 0xc8
je 0x427e8f
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push esi
call fcn.00412ba4
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x427ea1
push ebx
push esi
call fcn.00427bb1
pop ecx
jmp 0x427ec6
cmp eax, 0x14
jne 0x427eae
push esi
call fcn.00426e1a
jmp 0x427ec6
cmp eax, 0x15
jne 0x427ebb
push esi
call fcn.00427b9d
jmp 0x427ec6
cmp eax, 0x16
jne 0x427ec9
push esi
call fcn.00427d50
mov edi, eax
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42adc6
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.0043b900
cmp byte [esi], 0x5b
mov edi, eax
pop ecx
jne 0x42aec1
cmp edi, 4
jb 0x42aed2
inc esi
sub edi, 2
lea ebx, [edi + esi]
cmp byte [ebx], 0x5d
jne 0x42aed2
push str.0123456789abcdefABCDEF:.
push esi
call fcn.00446c90
pop ecx
pop ecx
cmp edi, eax
je 0x42ae9a
lea ebx, [eax + esi]
cmp byte [ebx], 0x25
jne 0x42aed2
and dword [ebp + 0xc], 0
lea edi, [ebx + 1]
push 2
push 0x45f720
push edi
call fcn.00440a20
add esp, 0xc
test eax, eax
jne 0x42ae48
lea eax, [edi + 2]
mov cl, byte [eax]
test cl, cl
je 0x42ae48
cmp cl, 0x5d
cmovne edi, eax
mov al, byte [edi]
test al, al
je 0x42aed2
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
sub edx, edi
cmp al, 0x5d
je 0x42ae6e
cmp ecx, 0xf
jge 0x42ae6e
mov byte [edx + edi], al
inc ecx
inc edi
mov al, byte [edi]
test al, al
jne 0x42ae5a
test ecx, ecx
je 0x42aed2
cmp byte [edi], 0x5d
jne 0x42aed2
lea eax, [ebp - 0x10]
mov byte [ebp + ecx - 0x10], 0
push eax
call dword [0x46c00c]
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x42ae96
push 7
pop eax
jmp 0x42aebc
mov byte [ebx + 1], 0
lea eax, [ebp - 0x20]
mov byte [ebx], 0
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x42aed2
mov byte [ebx], 0x5d
xor eax, eax
cmp byte [esi], al
push 0xe
pop ecx
cmove eax, ecx
pop edi
pop esi
pop ebx
leave
ret
push 0x459d48
push esi
call fcn.00446c40
pop ecx
pop ecx
cmp edi, eax
je 0x42aeb2
push 3
jmp 0x42ae93
Function at 0x434e82
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
pop ecx
test edi, edi
je 0x434f6f
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x434eee
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x434ef4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push ecx
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x434f67
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x434f0c
mov ebx, dword [ebp - 8]
jmp 0x434f67
push 1
push 0x46323f
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x463240
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x434f49
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x434fd7
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 0x18
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x435008
lea eax, [esi + 4]
push eax
push edi
push edi
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret
Function at 0x435114
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0043b900
xor ebx, ebx
pop ecx
cmp byte [eax + edi - 1], 0x2e
jne 0x435134
mov byte [eax + edi - 1], bl
mov esi, dword [ebp + 0xc]
push esi
call fcn.0043b900
pop ecx
cmp byte [eax + esi - 1], 0x2e
jne 0x435149
mov byte [eax + esi - 1], bl
push 0x2a
push esi
call fcn.00437d90
mov dword [ebp + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x43516e
push edi
push esi
call fcn.0041570f
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x435231
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push edi
push 2
call ebx
test eax, eax
jg 0x43522f
lea eax, [ebp - 0x18]
push eax
push edi
push 0x17
call ebx
test eax, eax
jg 0x43522f
push 0x2e
push esi
call fcn.00437d90
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x43515a
lea ecx, [ebx + 1]
push 0x2e
push ecx
call fcn.00437d90
pop ecx
pop ecx
test eax, eax
je 0x43515a
cmp dword [ebp + 8], ebx
ja 0x43515a
push 4
push 0x46325c
push esi
call fcn.00415768
add esp, 0xc
test eax, eax
jne 0x43515a
push 0x2e
push edi
call fcn.00437d90
mov dword [ebp + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x43522f
push eax
push ebx
call fcn.0041570f
pop ecx
pop ecx
test eax, eax
je 0x43522f
mov ecx, dword [ebp + 0xc]
mov eax, ebx
sub ecx, edi
sub eax, esi
cmp ecx, eax
jl 0x43522f
mov eax, dword [ebp + 8]
sub ebx, eax
sub eax, esi
dec ebx
push eax
push edi
push esi
call fcn.00415768
add esp, 0xc
test eax, eax
je 0x43522f
mov eax, dword [ebp + 0xc]
sub eax, ebx
push ebx
push eax
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.00415768
add esp, 0xc
test eax, eax
je 0x43522f
xor eax, eax
inc eax
jmp 0x435231
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4418a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00435cd0
mov eax, dword [0x46c058]
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.0044ad33
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4418e8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x441a44
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00435d00
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 + 0x46d2b0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0044c7a0
mov ecx, dword [esi*4 + 0x46d2b0]
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 0x441a3d
cmp eax, dword [ecx + edi + 0x24]
jne 0x441a3d
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 0x441a3d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044c7a0
add esp, 0x14
test edx, edx
jl 0x441a3d
jg 0x4419b3
test eax, eax
jb 0x441a3d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x441a3d
jl 0x4419cd
cmp dword [ebp - 0x1008], eax
ja 0x441a3d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4419eb
test ebx, ebx
je 0x441a24
cmp ecx, edi
jae 0x441a24
mov al, byte [ecx]
cmp al, 0xd
jne 0x441a05
lea eax, [edi - 1]
cmp ecx, eax
jae 0x441a11
cmp byte [ecx + 1], 0xa
jne 0x441a11
inc ecx
jmp 0x441a11
movzx eax, al
movsx eax, byte [eax + 0x46c140]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4419eb
cmp edx, ebx
jne 0x4419eb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x441a42
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00436b0e
leave
ret
Function at 0x4464f7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46c058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x464b70
push esi
call fcn.00442f6c
pop ecx
pop ecx
test eax, eax
jne 0x446525
xor al, al
jmp 0x4465a2
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0044622c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x44655f
push dword [ebp - 0x210]
call fcn.0043b161
xor al, al
jmp 0x4465a0
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x446565
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x446585
push edx
call fcn.0044642e
pop ecx
test al, al
je 0x446550
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x446593
mov bl, 1
push dword [ebp - 0x210]
call fcn.0043b161
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00436b0e
leave
ret

Function at 0x4480a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4480e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4480e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4480e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4480e2
cmp dword [ecx + 0x74], 0xe
jbe 0x4480e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4491e5
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 + 0x46d2b0]
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 0x449225
cmp byte [ebx], 0xa
jne 0x449225
or byte [edi + eax + 0x28], 4
jmp 0x44922a
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 0x449329
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44930c
inc eax
cmp dl, 0xd
je 0x449256
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44927c
cmp eax, ecx
jae 0x44928a
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 0x44923e
jmp 0x449329
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 0x449307
cmp dword [ebp - 0x10], 0
je 0x449307
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46d2b0]
test byte [eax + edi + 0x28], 0x48
je 0x4492e1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4492cc
mov byte [esi], dl
jmp 0x4492dd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46d2b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x449329
cmp byte [ebp - 1], 0xa
jne 0x4492f0
cmp esi, ebx
jne 0x4492f0
mov byte [esi], 0xa
jmp 0x449328
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044c7be
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x449329
mov byte [esi], 0xd
jmp 0x449328
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46d2b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x449326
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x449329
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x449332
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 + 0x46d2b0]
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 0x449378
cmp word [ebx], dx
jne 0x449378
or byte [eax + edi + 0x28], 4
jmp 0x44937d
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 0x4494e0
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 0x4494c0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4493be
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4493f4
cmp eax, edx
jae 0x449402
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 0x449399
jmp 0x4494e0
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 0x4494bb
cmp dword [ebp - 0x18], 0
je 0x4494bb
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46d2b0]
test byte [eax + edi + 0x28], 0x48
je 0x449491
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 0x449455
mov word [esi], cx
jmp 0x44948c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46d2b0]
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 + 0x46d2b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46d2b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4494e0
pop eax
cmp word [ebp - 4], ax
jne 0x4494a1
cmp esi, ebx
jne 0x4494a1
mov word [esi], ax
jmp 0x4494dd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044c7be
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4494e0
push 0xd
pop eax
jmp 0x44949c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46d2b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4494da
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4494e0
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 0x44b50d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46604c
push 0x466044
push str.FlsAlloc
push 0x1f
call fcn.0044b38c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b541
push dword [ebp + 8]
mov ecx, esi
call dword [0x459278]
call esi
jmp 0x44b547
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44b58b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46605c
push 0x466054
push str.FlsGetValue
push 0x21
call fcn.0044b38c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b5c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x459278]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44b5ca
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x466064
push 0x46605c
push str.FlsSetValue
push 0x22
call fcn.0044b38c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b604
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x459278]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44e4a2
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0044e41e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44e611
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44e611
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44e5c6
jg 0x44e4fe
test eax, eax
je 0x44e5bc
push 1
push 0x1000
call fcn.0044b0d7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44e521
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44e5b3
push 0x8000
push ebx
call fcn.00448269
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44e54a
jg 0x44e545
cmp ecx, 0x1000
jb 0x44e54a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0044a450
add esp, 0x10
cmp eax, 0xffffffff
je 0x44e58f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44e545
jl 0x44e576
test ecx, ecx
jne 0x44e537
push dword [ebp - 0xc]
push ebx
call fcn.00448269
push esi
call fcn.0044b134
add esp, 0xc
xor ebx, ebx
jmp 0x44e61f
cmp byte [edi + 0x24], 0
je 0x44e5a6
cmp dword [edi + 0x20], 5
jne 0x44e5a6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44e5b1
mov ebx, dword [edi + 0x18]
jmp 0x44e5b3
xor ebx, ebx
push esi
call fcn.0044b134
pop ecx
jmp 0x44e61f
test ecx, ecx
jg 0x44e588
jl 0x44e5c6
test eax, eax
jae 0x44e588
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044c7be
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44e5e6
cmp byte [edi + 0x1c], 0
je 0x44e588
jmp 0x44e617
push ebx
call fcn.0044e3b4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44e588
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44e61f
cmp byte [edi + 0x1c], 0
je 0x44e61c
mov ebx, dword [edi + 0x18]
jmp 0x44e61f
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044c7be
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret