joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446f00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x49d094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x430]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x14c]
lea esi, [edi + 0x158]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x140], 0
mov dword [edi + 0x144], eax
jne 0x446f8e
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc0]
push eax
call fcn.0045a350
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x140], eax
mov edx, dword [edi + 0x144]
cmp edx, 4
jge 0x446fc1
push str.Received_too_short_packet
push ebx
call fcn.00421260
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004582a0
mov esp, ebp
pop ebp
ret
push esi
call fcn.00446af0
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x446fdc
jmp dword [eax*4 + 0x44711c]
cmp edx, 4
jle case.0x446fdc.4
push esi
call fcn.00446ad0
movzx ecx, word [edi + 0x154]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x446fdc.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.004211a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44703f
push 5
push edi
call fcn.004479d0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004582a0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x144]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.0042e9e0
jmp 0x4470e7
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x158]
push eax
call fcn.00446ad0
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.00447ae0
add esp, 0xc
cmp eax, esi
jae case.0x446fdc.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.00421320
jmp 0x4470e7
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.00446cb0
add esp, 0xc
test eax, eax
je case.0x446fdc.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004582a0
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x489478
push ebx
call fcn.00421260
add esp, 0xc
push ebx
call fcn.0042ecc0
add esp, 4
test eax, eax
je 0x446fae
push 5
push edi
call fcn.004479d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004582a0
mov esp, ebp
pop ebp
ret
Function at 0x4479d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x4479e0
jmp dword [edx*4 + 0x447a34]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00447410
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00447130
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00447c10
push str.TFTP_finished
push 0x483e68
push ecx
call fcn.00421320
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x489478
push ecx
call fcn.00421260
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x454210
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x454243
push 0x2e
push edi
call fcn.0045a0e0
add esp, 8
test eax, eax
je 0x454241
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4553a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49d094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x455432
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.00455490
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.004573e0
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x455444
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004582a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004582a0
mov esp, ebp
pop ebp
ret
Function at 0x455a10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
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
add esp, 4
test edi, edi
jne 0x455a3d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
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 0x455a87
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x455a8d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x455aeb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x455ab0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x455b17
mov eax, dword [esi + 4]
push 1
push 0x48e0f4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x48e0f5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x455af0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x455ba2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x4573e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x457430
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmp dl, 2
cmovb ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4573f2
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x457480
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4574bf
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0x459361
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4593a0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4593a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4593a0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4593a0
cmp dword [ecx + 0x74], 0xe
jbe 0x4593a0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x468ab7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00458b90
mov eax, dword [0x49d094]
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.00473ffa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x468af9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x468c55
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00458ae0
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 + 0x49ee98]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046b038
mov ecx, dword [esi*4 + 0x49ee98]
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 0x468c4e
cmp eax, dword [ecx + edi + 0x24]
jne 0x468c4e
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 0x468c4e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046b038
add esp, 0x14
test edx, edx
jl 0x468c4e
jg 0x468bc4
test eax, eax
jb 0x468c4e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x468c4e
jl 0x468bde
cmp dword [ebp - 0x1008], eax
ja 0x468c4e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x468bfc
test ebx, ebx
je 0x468c35
cmp ecx, edi
jae 0x468c35
mov al, byte [ecx]
cmp al, 0xd
jne 0x468c16
lea eax, [edi - 1]
cmp ecx, eax
jae 0x468c22
cmp byte [ecx + 1], 0xa
jne 0x468c22
inc ecx
jmp 0x468c22
movzx eax, al
movsx eax, byte [eax + 0x49d210]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x468bfc
cmp edx, ebx
jne 0x468bfc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x468c53
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004582a0
leave
ret
Function at 0x46a6b7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49d094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x491238
push esi
call fcn.00469b57
pop ecx
pop ecx
test eax, eax
jne 0x46a6e5
xor al, al
jmp 0x46a762
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.0046a3ec
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x46a71f
push dword [ebp - 0x210]
call fcn.00461713
xor al, al
jmp 0x46a760
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x46a725
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x46a745
push edx
call fcn.0046a5ee
pop ecx
test al, al
je 0x46a710
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x46a753
mov bl, 1
push dword [ebp - 0x210]
call fcn.00461713
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004582a0
leave
ret
Function at 0x470051
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 + 0x49ee98]
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 0x470091
cmp byte [ebx], 0xa
jne 0x470091
or byte [edi + eax + 0x28], 4
jmp 0x470096
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 0x470195
mov dl, byte [eax]
cmp dl, 0x1a
je 0x470178
inc eax
cmp dl, 0xd
je 0x4700c2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4700e8
cmp eax, ecx
jae 0x4700f6
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 0x4700aa
jmp 0x470195
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 0x470173
cmp dword [ebp - 0x10], 0
je 0x470173
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x49ee98]
test byte [eax + edi + 0x28], 0x48
je 0x47014d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x470138
mov byte [esi], dl
jmp 0x470149
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49ee98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x470195
cmp byte [ebp - 1], 0xa
jne 0x47015c
cmp esi, ebx
jne 0x47015c
mov byte [esi], 0xa
jmp 0x470194
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046b056
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x470195
mov byte [esi], 0xd
jmp 0x470194
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x49ee98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x470192
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470195
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47019e
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 + 0x49ee98]
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 0x4701e4
cmp word [ebx], dx
jne 0x4701e4
or byte [eax + edi + 0x28], 4
jmp 0x4701e9
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 0x47034c
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 0x47032c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47022a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x470260
cmp eax, edx
jae 0x47026e
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 0x470205
jmp 0x47034c
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 0x470327
cmp dword [ebp - 0x18], 0
je 0x470327
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x49ee98]
test byte [eax + edi + 0x28], 0x48
je 0x4702fd
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 0x4702c1
mov word [esi], cx
jmp 0x4702f8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x49ee98]
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 + 0x49ee98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x49ee98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47034c
pop eax
cmp word [ebp - 4], ax
jne 0x47030d
cmp esi, ebx
jne 0x47030d
mov word [esi], ax
jmp 0x470349
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046b056
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47034c
push 0xd
pop eax
jmp 0x470308
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x49ee98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x470346
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47034c
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 0x472e73
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49256c
push 0x492564
push str.FlsAlloc
push 0x1f
call fcn.00472c9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x472ea7
push dword [ebp + 8]
mov ecx, esi
call dword [0x482324]
call esi
jmp 0x472ead
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x472ef1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49257c
push 0x492574
push str.FlsGetValue
push 0x21
call fcn.00472c9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x472f28
push dword [ebp + 8]
mov ecx, esi
call dword [0x482324]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x472f30
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x492584
push 0x49257c
push str.FlsSetValue
push 0x22
call fcn.00472c9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x472f6a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x482324]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x478aec
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 0x478b89
push ebx
push esi
call fcn.00478ab5
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.0047335f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x478b36
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x478b88
push edi
push eax
call fcn.00472382
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x478b56
call fcn.00472348
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x478b87
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047335f
add esp, 0x20
test eax, eax
jne 0x478b75
push edi
call fcn.00472348
jmp 0x478b7d
push ebx
call fcn.00472348
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 0x478b8c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x478b9d
pop esi
ret
push ebx
push edi
push esi
call fcn.00478ab5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00472382
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x478bc5
push ebx
push esi
push edi
call fcn.0045a350
add esp, 0xc
push 0
call fcn.00472348
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x47931f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478e3a

Function at 0x47b50a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047270e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47b579
cmp esi, dword [ebp - 4]
je 0x47b574
cmp dword [ebp + 0xc], 0
je 0x47b574
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47b551
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0047b05c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x47b57b
xor eax, eax
inc eax
jmp 0x47b57b
xor eax, eax
pop edi
pop esi
leave
ret