joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dbe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5c8ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov bl, al
shr eax, 1
push 0xffffffffffffffff
and al, 1
xor esi, esi
push esi
mov byte [esp + 0x17], al
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
and bl, 1
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], ax
call fcn.00402610
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp byte [esp + 0xf], 0
mov dword [esp + 0x40], esi
je 0x42dc67
lea ecx, [esp + 0x10]
push ecx
call fcn.0042db80
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x42dc7a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42dcaa
mov edx, dword [esp + 0x2c]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x24], esi
jb 0x42dca6
mov eax, dword [esp + 0x10]
push eax
call fcn.00584768
add esp, 4
xor al, al
jmp 0x42dcf6
test al, 0x10
je 0x42dcd4
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x24], esi
jb 0x42dcce
mov edx, dword [esp + 0x10]
push edx
call fcn.00584768
add esp, 4
mov al, byte [esp + 0xf]
jmp 0x42dcf6
mov eax, dword [esp + 0x2c]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x24], esi
jb 0x42dcf4
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00584768
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00585b7b
add esp, 0x38
ret
Function at 0x42fdf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e7d98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call fcn.0042dd40
add esp, 8
push 0
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.0042fbf0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1c], 8
jb 0x42fe66
mov edx, dword [esp + 8]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00585b7b
add esp, 0x34
ret 4
Function at 0x432030
Capabilities:
Get session user name
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x432064
push esi
push edi
push str.username
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x432064
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x432660
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x14], 8
jb 0x432674
mov eax, dword [edi]
jmp 0x432676
mov eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x432692
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4326c1
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.00421b20
cmp dword [edi + 0x14], 8
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
jb 0x4326b3
mov edi, dword [edi]
push esi
push eax
push edi
call ebx
lea ecx, [esp + 0xc]
call fcn.004215e0
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret

Function at 0x433040
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
push esi
xor esi, esi
push esi
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00432ed0
add esp, 0xc
test eax, eax
je 0x433081
mov eax, dword [esp + 4]
cmp ax, si
je 0x433081
mov esi, dword [esp + 0x30]
push eax
push esi
call fcn.00432e10
add esp, 8
mov eax, esi
pop esi
add esp, 0x28
ret
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 8]
cmp eax, 0xc
ja case.0x4330a1.1
movzx edx, byte [eax + 0x433154]
jmp dword [edx*4 + 0x43313c]
mov esi, dword [esp + 0x30]
push 0x5fd27c
mov ecx, esi
call fcn.00402bb0
mov eax, esi
pop esi
add esp, 0x28
ret
mov esi, dword [esp + 0x30]
push 0x5fd2c0
mov ecx, esi
call fcn.00402bb0
mov eax, esi
pop esi
add esp, 0x28
ret
mov esi, dword [esp + 0x30]
push str.ARM64
mov ecx, esi
call fcn.00402bb0
mov eax, esi
pop esi
add esp, 0x28
ret
mov esi, dword [esp + 0x30]
push str.Itanium
mov ecx, esi
call fcn.00402bb0
mov eax, esi
pop esi
add esp, 0x28
ret
mov esi, dword [esp + 0x30]
push 0x5fd290
mov ecx, esi
call fcn.00402bb0
mov eax, esi
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 0x30]
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 7
xor ecx, ecx
mov word [eax], cx
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
pop esi
add esp, 0x28
ret
Function at 0x433280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c6fa9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 8], eax
mov esi, dword [esp + 0x24]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
xor ecx, ecx
mov word [esi], cx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
push 0x104
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 1
call fcn.00421b20
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push 0x104
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xc]
call fcn.004215e0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x435570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c74e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x28]
lea eax, [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], eax
call fcn.0041de00
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.0041d2b0
push eax
lea ecx, [esp + 0x14]
call fcn.0041d2b0
push eax
push edi
push esi
call fcn.0040b680
add esp, 0x10
cmp byte [esp + 0x30], 0
mov edi, 8
je 0x435624
mov esi, dword [esp + 0x28]
test esi, esi
je 0x435624
mov edx, dword [esi + 0x1c]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esi + 0x14], edi
jb 0x435608
mov eax, dword [esi]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], cx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x3c], 0
je 0x43566b
mov esi, dword [esp + 0x34]
test esi, esi
je 0x43566b
mov edx, dword [esi + 0x1c]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esi + 0x14], edi
jb 0x43564f
mov eax, dword [esi]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], cx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x1c
Function at 0x438880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c7bb3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
mov dword [esi], vtable.wxConfigBase.0
push ebx
xor eax, eax
push ecx
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x28], ebx
mov word [esi + 0xc], ax
call fcn.00402610
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], ebx
push eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x28], 1
mov word [esi + 0x30], dx
call fcn.00402610
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ecx
mov word [esi + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x14
Function at 0x43a750
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5c7fb9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x28], eax
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 8], edi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
xor eax, eax
mov word [esi], ax
mov dword [esp + 0xc], esi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 0x1004
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x43a7dc
cmp word [esp + 0x10], 0x30
jne 0x43a7d0
cmp word [esp + 0x12], di
je 0x43a7dc
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004054f0
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00585b7b
add esp, 0x38
ret
Function at 0x43b290
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5c813c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c0]
mov edi, dword [esp + 0x2c8]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c4]
xor ecx, ecx
mov dword [esp + 0x2b4], ebx
mov word [esp + 0xa8], cx
cmp eax, 5
ja case.default.0x43b322
jmp dword [eax*4 + 0x43b500]
push 0x100
lea edx, [esp + 0xac]
push edx
push 0xf
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.default.0x43b322
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004054f0
jmp case.default.0x43b322
xor edx, edx
cmp edi, 2
sete dl
push 0x100
lea ecx, [esp + 0xac]
push ecx
lea edx, [edx*8 + 0xe]
push edx
jmp 0x43b338
sub eax, 2
je 0x43b39b
dec eax
je 0x43b394
sub eax, 2
je 0x43b38d
xor eax, eax
jmp 0x43b3a0
mov eax, 0x1003
jmp 0x43b3a0
mov eax, 0x20
jmp 0x43b3a0
mov eax, 0x1f
push 0x100
lea ecx, [esp + 0xac]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.default.0x43b322
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x88]
call fcn.00402c90
lea eax, [esp + 0x84]
push eax
push esi
mov byte [esp + 0x2bc], 1
call fcn.0043a8e0
add esp, 8
lea ecx, [esp + 0x84]
call fcn.00405eb0
lea ecx, [esp + 0x18]
call fcn.00405eb0
jmp 0x43b4d3
push edi
push 2
lea ecx, [esp + 0x44]
push ebp
push ecx
call fcn.0043b290
add esp, 0x10
mov byte [esp + 0x2b4], 2
cmp dword [esp + 0x4c], ebx
je 0x43b47e
push edi
push 5
lea edx, [esp + 0x68]
push ebp
push edx
call fcn.0043b290
add esp, 0x10
mov byte [esp + 0x2b4], 3
cmp dword [esp + 0x70], ebx
je 0x43b475
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.004023f0
mov eax, 0x20
push eax
push 1
lea ecx, [esp + 0x20]
call fcn.00414190
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
call fcn.004023f0
lea ecx, [esp + 0x60]
call fcn.00405eb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], bl
call fcn.00405eb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402610
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x43b4d3
mov edx, dword [esp + 0x18]
push edx
call fcn.00584768
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.00585b7b
add esp, 0x2a4
ret
Function at 0x43b329
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5c813c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c0]
mov edi, dword [esp + 0x2c8]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c4]
xor ecx, ecx
mov dword [esp + 0x2b4], ebx
mov word [esp + 0xa8], cx
cmp eax, 5
ja case.default.0x43b322
jmp dword [eax*4 + 0x43b500]
push 0x100
lea edx, [esp + 0xac]
push edx
push 0xf
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.default.0x43b322
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004054f0
jmp case.default.0x43b322
xor edx, edx
cmp edi, 2
sete dl
push 0x100
lea ecx, [esp + 0xac]
push ecx
lea edx, [edx*8 + 0xe]
push edx
jmp 0x43b338
sub eax, 2
je 0x43b39b
dec eax
je 0x43b394
sub eax, 2
je 0x43b38d
xor eax, eax
jmp 0x43b3a0
mov eax, 0x1003
jmp 0x43b3a0
mov eax, 0x20
jmp 0x43b3a0
mov eax, 0x1f
push 0x100
lea ecx, [esp + 0xac]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.default.0x43b322
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x88]
call fcn.00402c90
lea eax, [esp + 0x84]
push eax
push esi
mov byte [esp + 0x2bc], 1
call fcn.0043a8e0
add esp, 8
lea ecx, [esp + 0x84]
call fcn.00405eb0
lea ecx, [esp + 0x18]
call fcn.00405eb0
jmp 0x43b4d3
push edi
push 2
lea ecx, [esp + 0x44]
push ebp
push ecx
call fcn.0043b290
add esp, 0x10
mov byte [esp + 0x2b4], 2
cmp dword [esp + 0x4c], ebx
je 0x43b47e
push edi
push 5
lea edx, [esp + 0x68]
push ebp
push edx
call fcn.0043b290
add esp, 0x10
mov byte [esp + 0x2b4], 3
cmp dword [esp + 0x70], ebx
je 0x43b475
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.004023f0
mov eax, 0x20
push eax
push 1
lea ecx, [esp + 0x20]
call fcn.00414190
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
call fcn.004023f0
lea ecx, [esp + 0x60]
call fcn.00405eb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], bl
call fcn.00405eb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402610
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x43b4d3
mov edx, dword [esp + 0x18]
push edx
call fcn.00584768
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.00585b7b
add esp, 0x2a4
ret
Function at 0x43b35d
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5c813c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c0]
mov edi, dword [esp + 0x2c8]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c4]
xor ecx, ecx
mov dword [esp + 0x2b4], ebx
mov word [esp + 0xa8], cx
cmp eax, 5
ja case.default.0x43b322
jmp dword [eax*4 + 0x43b500]
push 0x100
lea edx, [esp + 0xac]
push edx
push 0xf
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.default.0x43b322
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004054f0
jmp case.default.0x43b322
xor edx, edx
cmp edi, 2
sete dl
push 0x100
lea ecx, [esp + 0xac]
push ecx
lea edx, [edx*8 + 0xe]
push edx
jmp 0x43b338
sub eax, 2
je 0x43b39b
dec eax
je 0x43b394
sub eax, 2
je 0x43b38d
xor eax, eax
jmp 0x43b3a0
mov eax, 0x1003
jmp 0x43b3a0
mov eax, 0x20
jmp 0x43b3a0
mov eax, 0x1f
push 0x100
lea ecx, [esp + 0xac]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.default.0x43b322
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x88]
call fcn.00402c90
lea eax, [esp + 0x84]
push eax
push esi
mov byte [esp + 0x2bc], 1
call fcn.0043a8e0
add esp, 8
lea ecx, [esp + 0x84]
call fcn.00405eb0
lea ecx, [esp + 0x18]
call fcn.00405eb0
jmp 0x43b4d3
push edi
push 2
lea ecx, [esp + 0x44]
push ebp
push ecx
call fcn.0043b290
add esp, 0x10
mov byte [esp + 0x2b4], 2
cmp dword [esp + 0x4c], ebx
je 0x43b47e
push edi
push 5
lea edx, [esp + 0x68]
push ebp
push edx
call fcn.0043b290
add esp, 0x10
mov byte [esp + 0x2b4], 3
cmp dword [esp + 0x70], ebx
je 0x43b475
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.004023f0
mov eax, 0x20
push eax
push 1
lea ecx, [esp + 0x20]
call fcn.00414190
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
call fcn.004023f0
lea ecx, [esp + 0x60]
call fcn.00405eb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], bl
call fcn.00405eb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402610
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x43b4d3
mov edx, dword [esp + 0x18]
push edx
call fcn.00584768
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.00585b7b
add esp, 0x2a4
ret
Function at 0x43b37c
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5c813c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c0]
mov edi, dword [esp + 0x2c8]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c4]
xor ecx, ecx
mov dword [esp + 0x2b4], ebx
mov word [esp + 0xa8], cx
cmp eax, 5
ja case.default.0x43b322
jmp dword [eax*4 + 0x43b500]
push 0x100
lea edx, [esp + 0xac]
push edx
push 0xf
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.default.0x43b322
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004054f0
jmp case.default.0x43b322
xor edx, edx
cmp edi, 2
sete dl
push 0x100
lea ecx, [esp + 0xac]
push ecx
lea edx, [edx*8 + 0xe]
push edx
jmp 0x43b338
sub eax, 2
je 0x43b39b
dec eax
je 0x43b394
sub eax, 2
je 0x43b38d
xor eax, eax
jmp 0x43b3a0
mov eax, 0x1003
jmp 0x43b3a0
mov eax, 0x20
jmp 0x43b3a0
mov eax, 0x1f
push 0x100
lea ecx, [esp + 0xac]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.default.0x43b322
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x88]
call fcn.00402c90
lea eax, [esp + 0x84]
push eax
push esi
mov byte [esp + 0x2bc], 1
call fcn.0043a8e0
add esp, 8
lea ecx, [esp + 0x84]
call fcn.00405eb0
lea ecx, [esp + 0x18]
call fcn.00405eb0
jmp 0x43b4d3
push edi
push 2
lea ecx, [esp + 0x44]
push ebp
push ecx
call fcn.0043b290
add esp, 0x10
mov byte [esp + 0x2b4], 2
cmp dword [esp + 0x4c], ebx
je 0x43b47e
push edi
push 5
lea edx, [esp + 0x68]
push ebp
push edx
call fcn.0043b290
add esp, 0x10
mov byte [esp + 0x2b4], 3
cmp dword [esp + 0x70], ebx
je 0x43b475
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.004023f0
mov eax, 0x20
push eax
push 1
lea ecx, [esp + 0x20]
call fcn.00414190
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
call fcn.004023f0
lea ecx, [esp + 0x60]
call fcn.00405eb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], bl
call fcn.00405eb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00402610
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x43b4d3
mov edx, dword [esp + 0x18]
push edx
call fcn.00584768
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.00585b7b
add esp, 0x2a4
ret
Function at 0x43c260
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
jne 0x43c278
mov dword [esi + 0xc], 1
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c2a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x6d
setne dl
lea edx, [edx + edx + 1]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0xc]
pop esi
ret 8

Function at 0x43c2e0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
mov ebx, ecx
mov dword [ebx + 0xc], ebp
cmp esi, ebp
jbe 0x43c33a
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c327
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43c339
add edi, eax
add ebp, eax
sub esi, eax
jne 0x43c2f7
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x6d
setne dl
inc edx
mov dword [ebx + 0xc], edx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 8
Function at 0x43ee00
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.FlsAlloc
push 0x5fd260
mov esi, ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.FlsFree
push 0x5fd260
mov dword [esi], eax
mov dword [esi + 4], 0
call edi
push eax
call ebx
push str.FlsGetValue
push 0x5fd260
mov dword [esi + 8], eax
call edi
push eax
call ebx
push str.FlsSetValue
push 0x5fd260
mov dword [esi + 0xc], eax
call edi
push eax
call ebx
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x43ee85
cmp dword [esi + 8], 0
je 0x43ee85
cmp dword [esi + 0xc], 0
je 0x43ee85
test eax, eax
je 0x43ee85
push 0x43edc0
call ecx
mov dword [esi + 0x14], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov ecx, dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 8], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
call eax
mov dword [esi + 0x14], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret