joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4347e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c0ac0
push 0x444270
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x4c4080]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x434875
xor al, al
jmp 0x4348fe
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4348a0
xor al, al
jmp 0x4348fe
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x4348eb
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0044279c
mov esp, ebp
pop ebp
ret
Function at 0x4349c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c0ae0
push 0x444270
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4c4080]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
or ebx, 0xffffffff
mov dword [ebp - 0x128], ebx
xor edi, edi
mov dword [ebp - 0x12c], edi
xor esi, esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.00434920
mov dword [ebp - 0x124], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x434ac2
push esi
push esi
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x128], ebx
cmp ebx, 0xffffffff
je 0x434ac2
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x12c], edi
test edi, edi
je 0x434ac2
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 0x14]
push ecx
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x130], esi
test esi, esi
je 0x434ac2
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0xc8]
mov eax, dword [ebp - 0x124]
sub ecx, dword [eax + 0xc]
add ecx, esi
add ecx, dword [eax + 0x14]
cmp dword [ecx + 0xc], 0
jne 0x434b1d
mov dword [ebp - 4], 0xfffffffe
call fcn.00434afc
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0044279c
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00452aab
int3
Function at 0x434b30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4c4080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edx, ebx
lea ecx, [ebp - 0x10c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x434b94
test al, al
je 0x434b90
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x434b94
add ecx, 2
add edx, 2
test al, al
jne 0x434b74
xor eax, eax
jmp 0x434b99
sbb eax, eax
or eax, 1
test eax, eax
je 0x434be9
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push edi
call esi
test eax, eax
je 0x434bfc
mov eax, ebx
lea ecx, [ebp - 0x10c]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x434be0
test dl, dl
je 0x434bdc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x434be0
add ecx, 2
add eax, 2
test dl, dl
jne 0x434bc0
xor eax, eax
jmp 0x434be5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x434ba3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044279c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044279c
mov esp, ebp
pop ebp
ret
Function at 0x436340
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ca56
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4c4080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
movups xmmword [ecx], xmm0
push 0x476129
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x476129
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.004361f0
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x18], esp
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x476129
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x476129
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.004361f0
xorps xmm0, xmm0
movups xmmword [edi + 0x60], xmm0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0xf
mov byte [edi + 0x60], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
lea ecx, [edi + 0x84]
mov byte [ebp - 4], 5
push 5
movups xmmword [ecx], xmm0
push str.Felix
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
lea ecx, [edi + 0x9c]
mov byte [ebp - 4], 6
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x476129
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
mov byte [ebp - 4], 7
lea ecx, [edi + 0xb4]
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x476129
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
lea ecx, [edi + 0xcc]
mov byte [ebp - 4], 8
xorps xmm0, xmm0
push 7
movups xmmword [ecx], xmm0
push str.4062976
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
lea ecx, [edi + 0xe4]
mov byte [ebp - 4], 9
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x476129
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040dc30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43f300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x43f332
jl 0x43f325
test ecx, ecx
jne 0x43f332
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x43f3f2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040c420
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x43f39e
jg 0x43f35d
test esi, esi
je 0x43f39e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x43f375
mov eax, dword [esp + 0x10]
jl 0x43f36f
cmp eax, esi
jae 0x43f375
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00444500
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x43f3bf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x43f3db
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x43f344
jl 0x43f3db
test ecx, ecx
jne 0x43f344
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x43f430
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x43f430
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00444500
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x43f499
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x43f456
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x43f484
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00450802
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x43f499
cmp edi, eax
ja 0x43f462
test edi, edi
je 0x43f499
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00450802
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44363f
Capabilities:
Parse pe header

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

Function at 0x44e5a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00443850
mov eax, dword [0x4c4080]
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.00459ca1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44e5ea
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44e746
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004694d0
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 + 0x4f6bc8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0045a1de
mov ecx, dword [esi*4 + 0x4f6bc8]
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 0x44e73f
cmp eax, dword [ecx + edi + 0x24]
jne 0x44e73f
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 0x44e73f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045a1de
add esp, 0x14
test edx, edx
jl 0x44e73f
jg 0x44e6b5
test eax, eax
jb 0x44e73f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44e73f
jl 0x44e6cf
cmp dword [ebp - 0x1008], eax
ja 0x44e73f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44e6ed
test ebx, ebx
je 0x44e726
cmp ecx, edi
jae 0x44e726
mov al, byte [ecx]
cmp al, 0xd
jne 0x44e707
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44e713
cmp byte [ecx + 1], 0xa
jne 0x44e713
inc ecx
jmp 0x44e713
movzx eax, al
movsx eax, byte [eax + 0x4c4350]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44e6ed
cmp edx, ebx
jne 0x44e6ed
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44e744
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044279c
leave
ret
Function at 0x45a25a
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 + 0x4f6bc8]
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 0x45a29a
cmp byte [ebx], 0xa
jne 0x45a29a
or byte [edi + eax + 0x28], 4
jmp 0x45a29f
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 0x45a39e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x45a381
inc eax
cmp dl, 0xd
je 0x45a2cb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x45a2f1
cmp eax, ecx
jae 0x45a2ff
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 0x45a2b3
jmp 0x45a39e
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 0x45a37c
cmp dword [ebp - 0x10], 0
je 0x45a37c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4f6bc8]
test byte [eax + edi + 0x28], 0x48
je 0x45a356
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45a341
mov byte [esi], dl
jmp 0x45a352
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4f6bc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45a39e
cmp byte [ebp - 1], 0xa
jne 0x45a365
cmp esi, ebx
jne 0x45a365
mov byte [esi], 0xa
jmp 0x45a39d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045a1fc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45a39e
mov byte [esi], 0xd
jmp 0x45a39d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4f6bc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a39b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a39e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a3a7
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 + 0x4f6bc8]
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 0x45a3ed
cmp word [ebx], dx
jne 0x45a3ed
or byte [eax + edi + 0x28], 4
jmp 0x45a3f2
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 0x45a555
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 0x45a535
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x45a433
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45a469
cmp eax, edx
jae 0x45a477
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 0x45a40e
jmp 0x45a555
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 0x45a530
cmp dword [ebp - 0x18], 0
je 0x45a530
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4f6bc8]
test byte [eax + edi + 0x28], 0x48
je 0x45a506
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 0x45a4ca
mov word [esi], cx
jmp 0x45a501
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4f6bc8]
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 + 0x4f6bc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4f6bc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x45a555
pop eax
cmp word [ebp - 4], ax
jne 0x45a516
cmp esi, ebx
jne 0x45a516
mov word [esi], ax
jmp 0x45a552
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045a1fc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45a555
push 0xd
pop eax
jmp 0x45a511
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4f6bc8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x45a54f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x45a555
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 0x45b24c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472660
push 0x472658
push str.FlsAlloc
push 0x1f
call fcn.0045b0b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45b280
push dword [ebp + 8]
mov ecx, esi
call dword [0x46e2d8]
call esi
jmp 0x45b286
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45b2ca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472670
push 0x472668
push str.FlsGetValue
push 0x21
call fcn.0045b0b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45b301
push dword [ebp + 8]
mov ecx, esi
call dword [0x46e2d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x45b309
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472678
push 0x472670
push str.FlsSetValue
push 0x22
call fcn.0045b0b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45b343
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x46e2d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46095b
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 0x4609f8
push ebx
push esi
call fcn.00460924
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.0045f7d2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4609a5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4609f7
push edi
push eax
call fcn.00458e25
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4609c5
call fcn.00458deb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4609f6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045f7d2
add esp, 0x20
test eax, eax
jne 0x4609e4
push edi
call fcn.00458deb
jmp 0x4609ec
push ebx
call fcn.00458deb
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 0x4609fb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x460a0c
pop esi
ret
push ebx
push edi
push esi
call fcn.00460924
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00458e25
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x460a34
push ebx
push esi
push edi
call fcn.00444500
add esp, 0xc
push 0
call fcn.00458deb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x46118e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00460ca9

Function at 0x4637fb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00458a37
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 0x46386a
cmp esi, dword [ebp - 4]
je 0x463865
cmp dword [ebp + 0xc], 0
je 0x463865
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x463842
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0046334d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x46386c
xor eax, eax
inc eax
jmp 0x46386c
xor eax, eax
pop edi
pop esi
leave
ret