joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447170
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 0x4471fe
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc0]
push eax
call fcn.0045a5c0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x140], eax
mov edx, dword [edi + 0x144]
cmp edx, 4
jge 0x447231
push str.Received_too_short_packet
push ebx
call fcn.004214d0
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.0045851f
mov esp, ebp
pop ebp
ret
push esi
call fcn.00446d60
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x44724c
jmp dword [eax*4 + 0x44738c]
cmp edx, 4
jle case.0x44724c.4
push esi
call fcn.00446d40
movzx ecx, word [edi + 0x154]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x44724c.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.00421410
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4472af
push 5
push edi
call fcn.00447c40
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045851f
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.0042ec50
jmp 0x447357
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x158]
push eax
call fcn.00446d40
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.00447d50
add esp, 0xc
cmp eax, esi
jae case.0x44724c.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.00421590
jmp 0x447357
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.00446f20
add esp, 0xc
test eax, eax
je case.0x44724c.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045851f
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x489478
push ebx
call fcn.004214d0
add esp, 0xc
push ebx
call fcn.0042ef30
add esp, 4
test eax, eax
je 0x44721e
push 5
push edi
call fcn.00447c40
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0045851f
mov esp, ebp
pop ebp
ret
Function at 0x447c40
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.0x447c50
jmp dword [edx*4 + 0x447ca4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00447680
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004473a0
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00447e80
push str.TFTP_finished
push 0x483e68
push ecx
call fcn.00421590
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x489478
push ecx
call fcn.004214d0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x454490
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 0x4544c3
push 0x2e
push edi
call fcn.0045a350
add esp, 8
test eax, eax
je 0x4544c1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x455620
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 0x4556b2
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.00455710
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00457660
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 0x4556c4
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.0045851f
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.0045851f
mov esp, ebp
pop ebp
ret
Function at 0x455c90
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 0x455cbd
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 0x455d07
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 0x455d0d
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 0x455d6b
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 0x455d30
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x455d97
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 0x455d70
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x455df0
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 0x455e22
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 0x457660
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 0x4576b0
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 0x457672
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x457700
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 0x45773f
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 0x4595d1
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00458e00
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.00474269
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x468d69
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x468ec5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00458d50
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.0046b2a8
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 0x468ebe
cmp eax, dword [ecx + edi + 0x24]
jne 0x468ebe
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 0x468ebe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046b2a8
add esp, 0x14
test edx, edx
jl 0x468ebe
jg 0x468e34
test eax, eax
jb 0x468ebe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x468ebe
jl 0x468e4e
cmp dword [ebp - 0x1008], eax
ja 0x468ebe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x468e6c
test ebx, ebx
je 0x468ea5
cmp ecx, edi
jae 0x468ea5
mov al, byte [ecx]
cmp al, 0xd
jne 0x468e86
lea eax, [edi - 1]
cmp ecx, eax
jae 0x468e92
cmp byte [ecx + 1], 0xa
jne 0x468e92
inc ecx
jmp 0x468e92
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 0x468e6c
cmp edx, ebx
jne 0x468e6c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x468ec3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045851f
leave
ret
Function at 0x46a927
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.00469dc7
pop ecx
pop ecx
test eax, eax
jne 0x46a955
xor al, al
jmp 0x46a9d2
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.0046a65c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x46a98f
push dword [ebp - 0x210]
call fcn.00461983
xor al, al
jmp 0x46a9d0
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x46a995
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x46a9b5
push edx
call fcn.0046a85e
pop ecx
test al, al
je 0x46a980
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x46a9c3
mov bl, 1
push dword [ebp - 0x210]
call fcn.00461983
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045851f
leave
ret
Function at 0x4702c1
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 0x470301
cmp byte [ebx], 0xa
jne 0x470301
or byte [edi + eax + 0x28], 4
jmp 0x470306
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 0x470405
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4703e8
inc eax
cmp dl, 0xd
je 0x470332
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x470358
cmp eax, ecx
jae 0x470366
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 0x47031a
jmp 0x470405
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 0x4703e3
cmp dword [ebp - 0x10], 0
je 0x4703e3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x49ee98]
test byte [eax + edi + 0x28], 0x48
je 0x4703bd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4703a8
mov byte [esi], dl
jmp 0x4703b9
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 0x470405
cmp byte [ebp - 1], 0xa
jne 0x4703cc
cmp esi, ebx
jne 0x4703cc
mov byte [esi], 0xa
jmp 0x470404
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046b2c6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x470405
mov byte [esi], 0xd
jmp 0x470404
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x49ee98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x470402
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470405
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47040e
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 0x470454
cmp word [ebx], dx
jne 0x470454
or byte [eax + edi + 0x28], 4
jmp 0x470459
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 0x4705bc
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 0x47059c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47049a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4704d0
cmp eax, edx
jae 0x4704de
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 0x470475
jmp 0x4705bc
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 0x470597
cmp dword [ebp - 0x18], 0
je 0x470597
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x49ee98]
test byte [eax + edi + 0x28], 0x48
je 0x47056d
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 0x470531
mov word [esi], cx
jmp 0x470568
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 0x4705bc
pop eax
cmp word [ebp - 4], ax
jne 0x47057d
cmp esi, ebx
jne 0x47057d
mov word [esi], ax
jmp 0x4705b9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046b2c6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4705bc
push 0xd
pop eax
jmp 0x470578
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x49ee98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4705b6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4705bc
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 0x4730e3
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.00472f0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x473117
push dword [ebp + 8]
mov ecx, esi
call dword [0x482324]
call esi
jmp 0x47311d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x473161
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.00472f0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x473198
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 0x4731a0
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.00472f0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4731da
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 0x478d5b
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 0x478df8
push ebx
push esi
call fcn.00478d24
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.004735ce
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x478da5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x478df7
push edi
push eax
call fcn.004725f2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x478dc5
call fcn.004725b8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x478df6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004735ce
add esp, 0x20
test eax, eax
jne 0x478de4
push edi
call fcn.004725b8
jmp 0x478dec
push ebx
call fcn.004725b8
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 0x478dfb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x478e0c
pop esi
ret
push ebx
push edi
push esi
call fcn.00478d24
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004725f2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x478e34
push ebx
push esi
push edi
call fcn.0045a5c0
add esp, 0xc
push 0
call fcn.004725b8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x47958e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004790a9

Function at 0x47b779
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047297e
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 0x47b7e8
cmp esi, dword [ebp - 4]
je 0x47b7e3
cmp dword [ebp + 0xc], 0
je 0x47b7e3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47b7c0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0047b2cb
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x47b7ea
xor eax, eax
inc eax
jmp 0x47b7ea
xor eax, eax
pop edi
pop esi
leave
ret