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

Disassembly:
push ecx
push ebx
push ebp
push edi
push 0x34
call fcn.00446395
mov ecx, dword [esp + 0x18]
mov edi, eax
push dword [esp + 0x24]
xor eax, eax
xor ebp, ebp
inc eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ebp
mov dword [edi + 0x10], 2
mov dword [edi + 4], eax
call fcn.00447c7a
push ebp
push ebp
mov dword [edi + 0x18], eax
call fcn.0044ad70
mov dword [edi + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 4
push edi
push 0x44d4e0
push dword [esp + 0x38]
push ebp
call fcn.004caaf7
add esp, 0x28
mov dword [edi + 0x30], eax
test eax, eax
jne 0x44d29a
mov ebx, str.Error_creating_thread
jmp 0x44d2e9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44d2a6
mov eax, dword [eax]
jmp 0x44d2b3
call dword [0x4fe1b8]
push eax
call dword [0x4fe1c0]
cmp eax, 0x7fffffff
jne 0x44d2c1
mov ebx, str.Error_getting_current_thread_priority
jmp 0x44d2e9
push eax
push dword [edi + 0x30]
call dword [0x4fe1bc]
test eax, eax
jne 0x44d2d6
mov ebx, str.Error_setting_new_thread_priority
jmp 0x44d2e9
push dword [edi + 0x30]
call dword [0x4fe1c8]
cmp eax, 0xffffffff
jne 0x44d33f
mov ebx, str.Error_resuming_new_thread
push esi
call dword [0x4fe0c4]
push eax
call fcn.0045621f
pop ecx
mov esi, eax
push esi
push ebx
push str._s:__s
push ebp
call fcn.00441a43
push eax
push dword [esp + 0x44]
call fcn.004418a5
push esi
call fcn.00441dce
add esp, 0x1c
pop esi
cmp dword [edi + 0x30], ebp
je 0x44d328
push dword [edi + 0x30]
call dword [0x4fe0c0]
push dword [edi + 0x24]
call fcn.0044b111
push edi
push 0x34
call fcn.004463df
add esp, 0xc
xor eax, eax
jmp 0x44d341
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x45589a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [edx + 0x9c0]
cmp edi, 0x270
jb 0x45594a
push ebx
xor edi, edi
mov ebx, 0x7fffffff
push esi
mov esi, edi
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebx
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x52b1b4]
xor ecx, dword [edx + esi*4 + 0x634]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0xe3
jl 0x4558bc
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebx
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x52b1b4]
xor ecx, dword [edx + esi*4 - 0x38c]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0x26f
jl 0x4558e9
mov ecx, dword [edx + 0x9bc]
xor ecx, dword [edx]
and ecx, ebx
xor ecx, dword [edx + 0x9bc]
mov eax, ecx
shr ecx, 1
and eax, 1
pop esi
pop ebx
mov eax, dword [eax*4 + 0x52b1b4]
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
mov dword [edx + 0x9c0], edi
mov ecx, dword [edx + edi*4]
lea eax, [edi + 1]
mov dword [edx + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop edi
ret

Function at 0x455aba
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [esp + 0xc]
call fcn.00455c33
mov edx, dword [esp + 8]
sub eax, 0x14
je 0x455b04
xor ecx, ecx
mov dword [edx], esi
inc ecx
mov dword [edx + 0x9c0], ecx
mov eax, dword [edx + ecx*4 - 4]
shr eax, 0x1e
xor eax, dword [edx + ecx*4 - 4]
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [edx + ecx*4], eax
inc dword [edx + 0x9c0]
mov ecx, dword [edx + 0x9c0]
cmp ecx, 0x270
jb 0x455ad8
pop esi
ret
test esi, esi
mov eax, 0x6b842128
cmovne eax, esi
xor ecx, ecx
inc ecx
mov dword [edx], eax
mov dword [edx + 0x9c0], ecx
imul eax, dword [edx + ecx*4 - 4], 0x10dcd
mov dword [edx + ecx*4], eax
inc dword [edx + 0x9c0]
mov ecx, dword [edx + 0x9c0]
cmp ecx, 0x270
jb 0x455b19
pop esi
ret

Function at 0x4578a2
Capabilities:
Create directory

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
call fcn.0044bdbd
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4578cc
call fcn.004bb8cc
pop ebx
mov dword [eax], 0x16
or eax, 0xffffffff
ret
push esi
push edi
push ebx
call fcn.004cbc0a
mov edi, eax
call fcn.004bb8cc
push ebx
mov esi, dword [eax]
call fcn.00441dce
pop ecx
pop ecx
call fcn.004bb8cc
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4b5619
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x790aac], esi
je 0x4b5632
xor eax, eax
inc eax
jmp 0x4b56a7
lea eax, [ebp - 4]
push eax
push 0x28
call dword [0x4fe108]
push eax
call dword [0x4fe044]
test eax, eax
je 0x4b5696
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push str.SeDebugPrivilege
inc edi
push esi
mov dword [ebp - 0x14], edi
call dword [0x4fe054]
test eax, eax
je 0x4b5695
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 4]
call dword [0x4fe058]
test eax, eax
je 0x4b5695
call dword [0x4fe0c4]
cmp eax, 0x514
je 0x4b5695
mov dword [0x790aac], edi
mov esi, edi
pop edi
cmp dword [ebp - 4], 0
je 0x4b56a5
push dword [ebp - 4]
call dword [0x4fe0c0]
mov eax, esi
pop esi
leave
ret

Function at 0x4b6c32
Capabilities:
Parse pe header

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

Function at 0x4f0a56
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push dword [ebp + 8]
call fcn.004f0a27
mov esi, eax
pop ecx
test esi, esi
je 0x4f0af3
mov eax, dword [esi + 0x3c]
push edi
mov edi, dword [eax + esi + 0x78]
mov edx, dword [eax + esi + 0x7c]
add edi, esi
dec edx
add edx, edi
mov dword [ebp - 8], edx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4f0af2
mov ecx, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 4], eax
add ecx, esi
mov eax, dword [edi + 0x24]
push ebx
add eax, esi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 0xc], eax
cmp dword [edi + 0x18], ebx
jbe 0x4f0af1
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
add ecx, esi
cmp ecx, edi
jb 0x4f0ab9
cmp ecx, edx
jbe 0x4f0ae5
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 1
mov eax, dword [eax + ebx*4]
add eax, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x4f0af1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc ebx
mov ecx, dword [ebp - 0x10]
cmp ebx, dword [edi + 0x18]
jb 0x4f0aa8
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4f3890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f38bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f38bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10015057
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002dffa
call fcn.10016e35
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015074
xor eax, eax
jmp 0x10015151
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001514f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x10015125
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000127b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000127b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1002529b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x1001512f
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x100150a4
jmp 0x10015148
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016ddf
ret

Function at 0x1002529b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x100252aa
pop dword [ebp - 0x30]
mov eax, 0xf29a114a
add eax, 0x1d684160
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3b5c6
push 0
mov eax, 0x78af12b5
add eax, 0x9753eea7
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xde75b759
sub ecx, 0xde7582d2
xor ebx, ebx
add ebx, eax
mov edx, 0x1004bc00
add edx, dword [ebp - 0x30]
mov edi, 0xbc7897a5
xor dword [ebp - 0x20], edx
mov esi, dword [edx]
sub dword [ebp - 0x14], 0x25b7daf3
xor esi, edi
xor dword [ebp - 0xc], ecx
mov dword [ebx], esi
sub dword [ebp - 8], edi
add ebx, 4
add edx, 0xe551d82
add edx, 0xf1aae282
loop 0x100252ff
add eax, 0x71f545d
sub eax, 0x71e8f6e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb2e310bf
add ecx, 0x5d1cef41
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x100113e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100113f0
pop dword [ebp - 0x4c]
mov eax, 0x100113f0
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x204e9671
add dword [ebp - 0x5c], 0x2e03aeda
mov dword [ebp - 0x58], 0x83dde530
sub dword [ebp - 0x58], 0x51aa98eb
mov dword [ebp - 0x54], 0xa43f253b
add dword [ebp - 0x54], 0xa80d1ef3
mov dword [ebp - 0x50], 0xbf18b959
add dword [ebp - 0x50], 0x40e746a7
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x67e56f12
sub eax, 0x57e440ba
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x9f417d74
add dword [ebp - 0x5c], 0xd530ebe2
mov dword [ebp - 0x58], 0x541e0115
add dword [ebp - 0x58], 0xed4e6060
mov dword [ebp - 0x54], 0x13123961
sub dword [ebp - 0x54], 0xafa2ccf5
mov dword [ebp - 0x50], 0xfb7cc8ea
sub dword [ebp - 0x50], 0xfb7cc8ea
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x4e174d4d
add eax, 0xc1e9e10f
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x357c2
push 0
call eax
mov ecx, 0x68d26e1c
sub ecx, 0x68d22a32
xor esi, esi
add esi, eax
mov edi, 0x7cafc599
sub edi, 0x6cae4b99
add edi, dword [ebp - 0x4c]
mov ebx, 0x9b7b544d
sub dword [ebp - 0x3c], edi
mov edx, dword [edi]
sub dword [ebp - 0x38], edi
xor edx, ebx
add dword [ebp - 0x2c], 0x5f93dbd5
mov dword [esi], edx
xor dword [ebp - 0x40], 0x102f919f
add esi, 4
add edi, 0x9fc81c76
sub edi, 0x9fc81c72
loop 0x10011509
add eax, 0x9417a719
add eax, 0x6be95b62
mov ebx, eax
add eax, 0x19a206ff
sub eax, 0x19a206fa
mov ecx, sym.clearkey.dll_Ordinal_0
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x40260c
Capabilities:
Encode data using xor

Disassembly:
call fcn.00402547
xor ecx, ecx
sub ecx, 0xffffff85
call 0x40260c
rcr byte [esi - 0x7f], 0x76
push cs
sti
test al, 0x85
xchg edx, eax
xor dword [esi + 0xe], 0x9285a8fb
sub esi, 0xfffffffc
loop 0x40260f
inc ecx
xor al, 0x4e
retf

Function at 0x406f30
Capabilities:
Set socket configuration

Disassembly:
adc byte [ebp - 0x76990089], cl
add dword [ebx], ebp
mov edx, dword [eax + ebx - 0x66]
dec edi
fimul word [ebp + 0x50520153]
or byte [ecx - 0x25], bl
invalid
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
mov edx, dword [edx + 0x56c18b08]
mov ecx, dword [esp + ecx - 0x7d]
lcall 0, 0x2c70d03
add byte [eax], al
sub eax, dword [di + 0x748e]
aaa
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x406eee
cmp eax, 0x1e
je 0x406f9c
test cl, 0x59
je 0x406f7d
pop edi
mov eax, 0x11187
inc eax
pop ebp
ret 0x18
mov ecx, 2
mov esi, dword [esi]
sbb al, 0xe
push ecx
dec ebp
adc al, 0x51
push eax
push esi
mov bl, 0x25
xchg esi, eax
add byte [eax], al
add byte [ebx + 0x5e7918a0], al
pop ebp
ret 0x18
or al, 0x90
nop
nop
push ebp
mov ebx, dword [ebx + 0x5324ec83]
push esi
mov esi, dword [ebp + 0xc]
xchg ecx, eax
fstp xword [ebx]
pop edx
mov dword [ebp - 0xc], esi
jne 0x406fba
cli
inc eax
and edx, dword [ecx]
mov al, byte [esi]
ja 0x406ffb
jl 0x407043
cmp al, 0x19
jg 0xaa707d
push 0x400034
push esi
in al, 0x15
sbb al, 0xc1
outsb dx, byte [esi]
add byte [ebx - 0x7c017430], cl
leave
push dword [ebx]
rol byte [ebx - 0x510df73c], 0xf7
ror dword [ecx + 0x3b], 1
mov dl, 0xf
test dword [esi + 0x56000000], edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x24]
mov dword [ecx], esp
in al, dx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax + 7]
mov cl, 0x19
je 0x40710c
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0x1c]
push 0x38
push edx
call 0x34404ae6
mov edx, ebx
xor eax, eax
sti
salc
mov ecx, 0xa5
rep stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov ebp, dword [edx - 0x74f9e004]
xchg ecx, eax
or al, 0x8b
sub eax, 0x14e98b17
aaa
push es
mov edx, dword [ecx + 0x172d8b0c]
mov ebp, ecx
adc al, 0x37
pop esp
add cl, byte [ebx + 0x4e898917]
sub al, 0xfb
jne 0x407038
jmp ebx
mov eax, dword [0x45e43c74]
or eax, 0x2d74c085
cmp eax, dword [ebp - 0x24]
jb 0x407137
mov edx, ds
or al, 0x57
cmp byte [ebp - 1], bl
push ebp
or byte [ebx - 0x3f7afb3c], al
bswap edi
xchg esp, eax
or al, byte [eax]
add byte [ebx + 0x78b044f], cl
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x10]
inc eax
mov ebp, eax
hlt
Function at 0x408f37
Capabilities:
Parse pe header

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

Function at 0x418073
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b130
push 0x42b128
push str.FlsAlloc
push 0x1f
call fcn.00417ede
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4180a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x427160]
call esi
jmp 0x4180ad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4180f1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b140
push 0x42b138
push str.FlsGetValue
push 0x21
call fcn.00417ede
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418128
push dword [ebp + 8]
mov ecx, esi
call dword [0x427160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418130
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b148
push 0x42b140
push str.FlsSetValue
push 0x22
call fcn.00417ede
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41816a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41a547
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004090a0
mov eax, dword [0x436010]
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.00415cba
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a589
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a6e5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425d30
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 + 0x437990]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041a96c
mov ecx, dword [esi*4 + 0x437990]
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 0x41a6de
cmp eax, dword [ecx + edi + 0x24]
jne 0x41a6de
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 0x41a6de
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a96c
add esp, 0x14
test edx, edx
jl 0x41a6de
jg 0x41a654
test eax, eax
jb 0x41a6de
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a6de
jl 0x41a66e
cmp dword [ebp - 0x1008], eax
ja 0x41a6de
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a68c
test ebx, ebx
je 0x41a6c5
cmp ecx, edi
jae 0x41a6c5
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a6a6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a6b2
cmp byte [ecx + 1], 0xa
jne 0x41a6b2
inc ecx
jmp 0x41a6b2
movzx eax, al
movsx eax, byte [eax + 0x436950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a68c
cmp edx, ebx
jne 0x41a68c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a6e3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408286
leave
ret
Function at 0x41dc20
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 0x41dcbd
push ebx
push esi
call fcn.0041dbe9
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.0041c91a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41dc6a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dcbc
push edi
push eax
call fcn.00414d49
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dc8a
call fcn.00414d0f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dcbb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c91a
add esp, 0x20
test eax, eax
jne 0x41dca9
push edi
call fcn.00414d0f
jmp 0x41dcb1
push ebx
call fcn.00414d0f
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 0x4202ea
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00416188
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 0x420359
cmp esi, dword [ebp - 4]
je 0x420354
cmp dword [ebp + 0xc], 0
je 0x420354
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x420331
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041fe3c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42035b
xor eax, eax
inc eax
jmp 0x42035b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4203c0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x436010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00416188
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00416188
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x420437
cmp word [ecx], dx
je 0x420437
mov eax, dword [0x42b764]
push edi
dec eax
push eax
push 0x42b650
call fcn.0042035f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4204aa
cmp word [eax], dx
je 0x4204aa
mov eax, dword [edi]
test eax, eax
je 0x42045b
cmp word [eax], dx
je 0x42045b
lea eax, [ebp - 0x10]
push eax
call fcn.0041fd42
jmp 0x420464
lea eax, [ebp - 0x10]
push eax
call fcn.0041fddd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4204d4
mov eax, dword [0x42b64c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42b340
call fcn.0042035f
add esp, 0xc
test al, al
je 0x4204d4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42049f
cmp word [eax], di
je 0x42049f
lea eax, [ebp - 0x10]
push eax
call fcn.0041fd42
pop ecx
jmp 0x4204d6
lea eax, [ebp - 0x10]
push eax
call fcn.0041fddd
jmp 0x42049c
mov eax, dword [edi]
test eax, eax
je 0x4204c1
cmp word [eax], dx
je 0x4204c1
lea eax, [ebp - 0x10]
push eax
call fcn.0041fcf7
pop ecx
jmp 0x4204d4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42059f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004201e4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42059f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42059f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42059f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42052c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00418270
test ebx, ebx
je 0x42059a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00418270
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42059f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42059f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00424b06
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4205a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408286
leave
ret