joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425d6e
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 0x425dc6
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.00413126
add esp, 0xc
cmp esi, 0xffffffff
jne 0x425dea
push str.Error_accept__ing_server_connect
push edi
call fcn.004129df
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x425e54
push str.Connection_accepted_from_server_n
push edi
call fcn.00412a73
push 1
push esi
mov byte [ebx + 0x24e], 0
mov dword [ebx + 0x14c], esi
call fcn.0041d13e
add esp, 0x10
mov byte [ebx + 0x260], 1
cmp dword [edi + 0x1b8], 0
je 0x425e52
push 1
push edi
call fcn.004063fc
push 1
push esi
push dword [edi + 0x1bc]
call dword [edi + 0x1b8]
push 0
push edi
mov esi, eax
call fcn.004063fc
add esp, 0x1c
test esi, esi
je 0x425e52
push ebx
push edi
call fcn.004261fd
pop ecx
pop ecx
push 0x2a
jmp 0x425de7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427d19
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 0x427d47
push str.Couldnt_set_desired_mode
push esi
call fcn.004129df
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x427d9a
cmp ecx, 0xc8
je 0x427d5e
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push esi
call fcn.00412a73
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x427d70
push ebx
push esi
call fcn.00427a80
pop ecx
jmp 0x427d95
cmp eax, 0x14
jne 0x427d7d
push esi
call fcn.00426ce9
jmp 0x427d95
cmp eax, 0x15
jne 0x427d8a
push esi
call fcn.00427a6c
jmp 0x427d95
cmp eax, 0x16
jne 0x427d98
push esi
call fcn.00427c1f
mov edi, eax
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42ac98
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.0043b7c0
cmp byte [esi], 0x5b
mov edi, eax
pop ecx
jne 0x42ad93
cmp edi, 4
jb 0x42ada4
inc esi
sub edi, 2
lea ebx, [edi + esi]
cmp byte [ebx], 0x5d
jne 0x42ada4
push str.0123456789abcdefABCDEF:.
push esi
call fcn.00446b50
pop ecx
pop ecx
cmp edi, eax
je 0x42ad6c
lea ebx, [eax + esi]
cmp byte [ebx], 0x25
jne 0x42ada4
and dword [ebp + 0xc], 0
lea edi, [ebx + 1]
push 2
push 0x45f710
push edi
call fcn.004408e0
add esp, 0xc
test eax, eax
jne 0x42ad1a
lea eax, [edi + 2]
mov cl, byte [eax]
test cl, cl
je 0x42ad1a
cmp cl, 0x5d
cmovne edi, eax
mov al, byte [edi]
test al, al
je 0x42ada4
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
sub edx, edi
cmp al, 0x5d
je 0x42ad40
cmp ecx, 0xf
jge 0x42ad40
mov byte [edx + edi], al
inc ecx
inc edi
mov al, byte [edi]
test al, al
jne 0x42ad2c
test ecx, ecx
je 0x42ada4
cmp byte [edi], 0x5d
jne 0x42ada4
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 0x42ad68
push 7
pop eax
jmp 0x42ad8e
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 0x42ada4
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 0x459d38
push esi
call fcn.00446b00
pop ecx
pop ecx
cmp edi, eax
je 0x42ad84
push 3
jmp 0x42ad65
Function at 0x434d54
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 0x434e41
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 0x434dc0
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 0x434dc6
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 0x434e39
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 0x434dde
mov ebx, dword [ebp - 8]
jmp 0x434e39
push 1
push 0x46322f
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x463230
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x434e1b
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x434ea9
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 0x434eda
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 0x434fe6
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.0043b7c0
xor ebx, ebx
pop ecx
cmp byte [eax + edi - 1], 0x2e
jne 0x435006
mov byte [eax + edi - 1], bl
mov esi, dword [ebp + 0xc]
push esi
call fcn.0043b7c0
pop ecx
cmp byte [eax + esi - 1], 0x2e
jne 0x43501b
mov byte [eax + esi - 1], bl
push 0x2a
push esi
call fcn.00437c60
mov dword [ebp + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x435040
push edi
push esi
call fcn.004155de
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x435103
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 0x435101
lea eax, [ebp - 0x18]
push eax
push edi
push 0x17
call ebx
test eax, eax
jg 0x435101
push 0x2e
push esi
call fcn.00437c60
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x43502c
lea ecx, [ebx + 1]
push 0x2e
push ecx
call fcn.00437c60
pop ecx
pop ecx
test eax, eax
je 0x43502c
cmp dword [ebp + 8], ebx
ja 0x43502c
push 4
push 0x46324c
push esi
call fcn.00415637
add esp, 0xc
test eax, eax
jne 0x43502c
push 0x2e
push edi
call fcn.00437c60
mov dword [ebp + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x435101
push eax
push ebx
call fcn.004155de
pop ecx
pop ecx
test eax, eax
je 0x435101
mov ecx, dword [ebp + 0xc]
mov eax, ebx
sub ecx, edi
sub eax, esi
cmp ecx, eax
jl 0x435101
mov eax, dword [ebp + 8]
sub ebx, eax
sub eax, esi
dec ebx
push eax
push edi
push esi
call fcn.00415637
add esp, 0xc
test eax, eax
je 0x435101
mov eax, dword [ebp + 0xc]
sub eax, ebx
push ebx
push eax
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.00415637
add esp, 0xc
test eax, eax
je 0x435101
xor eax, eax
inc eax
jmp 0x435103
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441766
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00435ba0
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.0044abf4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4417a8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x441904
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00435bd0
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.0044c661
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 0x4418fd
cmp eax, dword [ecx + edi + 0x24]
jne 0x4418fd
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 0x4418fd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044c661
add esp, 0x14
test edx, edx
jl 0x4418fd
jg 0x441873
test eax, eax
jb 0x4418fd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4418fd
jl 0x44188d
cmp dword [ebp - 0x1008], eax
ja 0x4418fd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4418ab
test ebx, ebx
je 0x4418e4
cmp ecx, edi
jae 0x4418e4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4418c5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4418d1
cmp byte [ecx + 1], 0xa
jne 0x4418d1
inc ecx
jmp 0x4418d1
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 0x4418ab
cmp edx, ebx
jne 0x4418ab
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x441902
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004369de
leave
ret
Function at 0x4463b7
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 0x464b60
push esi
call fcn.00442e2c
pop ecx
pop ecx
test eax, eax
jne 0x4463e5
xor al, al
jmp 0x446462
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.004460ec
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x44641f
push dword [ebp - 0x210]
call fcn.0043b021
xor al, al
jmp 0x446460
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x446425
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x446445
push edx
call fcn.004462ee
pop ecx
test al, al
je 0x446410
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x446453
mov bl, 1
push dword [ebp - 0x210]
call fcn.0043b021
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004369de
leave
ret

Function at 0x447f63
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x447fa2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x447fa2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x447fa2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x447fa2
cmp dword [ecx + 0x74], 0xe
jbe 0x447fa2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4490a7
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 0x4490e7
cmp byte [ebx], 0xa
jne 0x4490e7
or byte [edi + eax + 0x28], 4
jmp 0x4490ec
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 0x4491eb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4491ce
inc eax
cmp dl, 0xd
je 0x449118
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44913e
cmp eax, ecx
jae 0x44914c
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 0x449100
jmp 0x4491eb
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 0x4491c9
cmp dword [ebp - 0x10], 0
je 0x4491c9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46d2b0]
test byte [eax + edi + 0x28], 0x48
je 0x4491a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44918e
mov byte [esi], dl
jmp 0x44919f
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 0x4491eb
cmp byte [ebp - 1], 0xa
jne 0x4491b2
cmp esi, ebx
jne 0x4491b2
mov byte [esi], 0xa
jmp 0x4491ea
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044c67f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4491eb
mov byte [esi], 0xd
jmp 0x4491ea
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46d2b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4491e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4491eb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4491f4
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 0x44923a
cmp word [ebx], dx
jne 0x44923a
or byte [eax + edi + 0x28], 4
jmp 0x44923f
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 0x4493a2
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 0x449382
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x449280
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4492b6
cmp eax, edx
jae 0x4492c4
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 0x44925b
jmp 0x4493a2
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 0x44937d
cmp dword [ebp - 0x18], 0
je 0x44937d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46d2b0]
test byte [eax + edi + 0x28], 0x48
je 0x449353
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 0x449317
mov word [esi], cx
jmp 0x44934e
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 0x4493a2
pop eax
cmp word [ebp - 4], ax
jne 0x449363
cmp esi, ebx
jne 0x449363
mov word [esi], ax
jmp 0x44939f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044c67f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4493a2
push 0xd
pop eax
jmp 0x44935e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46d2b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44939c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4493a2
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 0x44b3ce
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46603c
push 0x466034
push str.FlsAlloc
push 0x1f
call fcn.0044b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b402
push dword [ebp + 8]
mov ecx, esi
call dword [0x459268]
call esi
jmp 0x44b408
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44b44c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46604c
push 0x466044
push str.FlsGetValue
push 0x21
call fcn.0044b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b483
push dword [ebp + 8]
mov ecx, esi
call dword [0x459268]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44b48b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x466054
push 0x46604c
push str.FlsSetValue
push 0x22
call fcn.0044b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b4c5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x459268]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44e363
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.0044e2df
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44e4d2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44e4d2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44e487
jg 0x44e3bf
test eax, eax
je 0x44e47d
push 1
push 0x1000
call fcn.0044af98
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44e3e2
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44e474
push 0x8000
push ebx
call fcn.0044812b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44e40b
jg 0x44e406
cmp ecx, 0x1000
jb 0x44e40b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0044a311
add esp, 0x10
cmp eax, 0xffffffff
je 0x44e450
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 0x44e406
jl 0x44e437
test ecx, ecx
jne 0x44e3f8
push dword [ebp - 0xc]
push ebx
call fcn.0044812b
push esi
call fcn.0044aff5
add esp, 0xc
xor ebx, ebx
jmp 0x44e4e0
cmp byte [edi + 0x24], 0
je 0x44e467
cmp dword [edi + 0x20], 5
jne 0x44e467
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44e472
mov ebx, dword [edi + 0x18]
jmp 0x44e474
xor ebx, ebx
push esi
call fcn.0044aff5
pop ecx
jmp 0x44e4e0
test ecx, ecx
jg 0x44e449
jl 0x44e487
test eax, eax
jae 0x44e449
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044c67f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44e4a7
cmp byte [edi + 0x1c], 0
je 0x44e449
jmp 0x44e4d8
push ebx
call fcn.0044e275
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44e449
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 0x44e4e0
cmp byte [edi + 0x1c], 0
je 0x44e4dd
mov ebx, dword [edi + 0x18]
jmp 0x44e4e0
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044c67f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451082
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45111f
push ebx
push esi
call fcn.0045104b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044ecd3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4510cc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45111e
push edi
push eax
call fcn.0044b02f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4510ec
call fcn.0044aff5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45111d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044ecd3
add esp, 0x20
test eax, eax
jne 0x45110b
push edi
call fcn.0044aff5
jmp 0x451113
push ebx
call fcn.0044aff5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x451122
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x451133
pop esi
ret
push ebx
push edi
push esi
call fcn.0045104b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044b02f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45115b
push ebx
push esi
push edi
call fcn.00437160
add esp, 0xc
push 0
call fcn.0044aff5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4518b5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004513d0

Function at 0x4550fc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46c058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x45513f
call fcn.00440ed8
mov dword [eax], 0xf
call fcn.00440eeb
mov dword [eax], 0xd
call fcn.0043ad4a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004369de
leave
ret
test eax, eax
jne 0x455146
inc eax
jmp 0x455133
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x455131
xor eax, eax
cmp ecx, 1
setne al
jmp 0x455133