joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4f4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x4c9100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0x51
mov byte [ebp - 0x3e], 0x64
mov byte [ebp - 0x3d], 0x46
mov byte [ebp - 0x3c], 0x64
mov byte [ebp - 0x3b], 0x7d
mov byte [ebp - 0x3a], 0x64
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x64
mov byte [ebp - 0x37], 0x52
mov byte [ebp - 0x36], 0x64
mov byte [ebp - 0x35], 3
mov byte [ebp - 0x34], 0x64
mov byte [ebp - 0x33], 0x29
mov byte [ebp - 0x32], 0x64
mov byte [ebp - 0x31], 0x2f
mov byte [ebp - 0x30], 0x64
mov byte [ebp - 0x2f], 0x31
mov byte [ebp - 0x2e], 0x64
mov byte [ebp - 0x2d], 3
mov byte [ebp - 0x2c], 0x64
mov byte [ebp - 0x2b], 0x31
mov byte [ebp - 0x2a], 0x64
mov byte [ebp - 0x29], 0x7d
mov byte [ebp - 0x28], 0x64
mov byte [ebp - 0x27], 0x27
mov byte [ebp - 0x26], 0x64
mov byte [ebp - 0x25], 0x2f
mov byte [ebp - 0x24], 0x64
mov byte [ebp - 0x23], 0x5e
mov byte [ebp - 0x22], 0x64
mov byte [ebp - 0x21], 0x7d
mov byte [ebp - 0x20], 0x64
mov byte [ebp - 0x1f], 0x31
mov byte [ebp - 0x1e], 0x64
mov byte [ebp - 0x1d], 0x60
mov byte [ebp - 0x1c], 0x64
mov byte [ebp - 0x1b], 0x2e
mov byte [ebp - 0x1a], 0x64
mov byte [ebp - 0x19], 8
mov byte [ebp - 0x18], 0x64
mov byte [ebp - 0x17], 0x35
mov byte [ebp - 0x16], 0x64
mov byte [ebp - 0x15], 8
mov byte [ebp - 0x14], 0x64
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0x64
mov al, byte [ebp - 0x3f]
mov al, byte [ebp - 0x40]
mov dword [ebp - 0x48], edi
test al, al
jne 0x430a7e
xor esi, esi
lea edi, [esi + 0x7f]
mov al, byte [ebp + esi - 0x3f]
mov ecx, 0x64
movzx eax, al
sub ecx, eax
mov eax, ecx
shl eax, 5
sub eax, ecx
add eax, eax
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [ebp + esi - 0x3f], dl
inc esi
cmp esi, 0x2e
jb 0x430a51
mov edi, dword [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x3f]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x60], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430aa0
sub ecx, edx
lea eax, [ebp - 0x3f]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00429760
lea edx, [ebp - 0x60]
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00439d10
mov ecx, dword [ebp - 0x4c]
cmp ecx, 7
jbe 0x430b03
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x430af9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430b19
push ecx
push edx
call fcn.004615bb
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0048347f
int3
Function at 0x440b50
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c4af0
push 0x4794d0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4c9100]
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 esi, ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x440cb6
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call edi
test eax, eax
jne 0x440cb6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
jne 0x440cb6
push dword [ebp - 0x48]
call fcn.00487f00
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x440cb6
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x48]
push eax
push 1
push esi
call edi
test eax, eax
je 0x440ca3
xor edi, edi
mov dword [ebp - 0x4c], edi
cmp edi, dword [ebp - 0x20]
jae 0x440cf2
lea eax, [edi + edi*8]
mov ecx, dword [ebp - 0x50]
movups xmm1, xmmword [ecx + eax*4]
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movups xmmword [ebp - 0x70], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x60], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x440ca3
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x440ca3
cmp dword [ebp - 0x40], 1
je 0x440cd2
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x440ca3
cmp dword [ebp - 0x40], 1
je 0x440cd2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
jbe 0x440c67
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4c9100
call fcn.0047c520
add esp, 0xc
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.0046157d
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.00440cea
inc edi
jmp 0x440c10
mov dword [ebp - 4], 0xfffffffe
call fcn.00440d00
jmp 0x440cb6
Function at 0x440d10
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c4b18
push 0x4794d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4c9100]
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 esi, ecx
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov dword [ebp - 0x48], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
test ebx, ebx
je 0x440d8a
cmp dword [esi + 0x14], 7
jbe 0x440d70
mov esi, dword [esi]
push 0x2c
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
jne 0x440da6
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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.0046157d
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x440e88
mov eax, dword [ebp - 0x40]
cmp eax, 1
je 0x440e88
mov ecx, 0x2710
cmp eax, 3
jne 0x440e36
mov eax, 0xcccccccd
mul dword [ebp - 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x440df8
mov edx, 0x3e8
jmp 0x440e01
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x20]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x440e88
cmp dword [ebp - 0x40], 1
je 0x440e88
call edi
sub eax, dword [ebp - 0x48]
cmp eax, 0x7530
ja 0x440e88
mov eax, dword [ebp - 0x40]
jmp 0x440dd4
mov ecx, esi
call fcn.00440b50
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x440e88
nop
cmp dword [ebp - 0x40], 1
je 0x440ea0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x20]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x440e88
cmp dword [ebp - 0x40], 1
je 0x440ea0
call edi
sub eax, dword [ebp - 0x48]
cmp eax, 0x7530
jbe 0x440e50
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4c9100
call fcn.0047c520
add esp, 0xc
jmp 0x440d8a
mov dword [ebp - 4], 0xfffffffe
call fcn.00440eb7
jmp 0x440d8a
Function at 0x443c80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], 0x7f
nop dword [eax]
lea ecx, [esp + 0x20]
call fcn.00430940
mov esi, eax
cmp dword [esi + 0x14], 7
jbe 0x443cb3
mov esi, dword [esi]
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0x1f
mov byte [esp + 0x16], 0x3b
mov byte [esp + 0x17], 1
mov byte [esp + 0x18], 0x3b
mov byte [esp + 0x19], 0x4d
mov byte [esp + 0x1a], 0x3b
mov byte [esp + 0x1b], 0x3d
mov byte [esp + 0x1c], 0x3b
mov byte [esp + 0x1d], 0x3b
mov byte [esp + 0x1e], 0x3b
mov al, byte [esp + 0x15]
mov al, byte [esp + 0x14]
test al, al
jne 0x443d24
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esp + ecx + 0x15]
movzx eax, al
sub eax, 0x3b
imul eax, eax, 0x37
cdq
idiv dword [esp + 0x10]
lea eax, [edx + 0x7f]
cdq
idiv dword [esp + 0x10]
mov byte [esp + ecx + 0x15], dl
inc ecx
cmp ecx, 0xa
jb 0x443d00
push 5
push 0
push 0
push esi
lea eax, [esp + 0x25]
push eax
push 0
call ebx
mov ecx, dword [esp + 0x34]
cmp ecx, 7
jbe 0x443d6c
mov edx, dword [esp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x443d62
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x443d7d
push ecx
push edx
call fcn.004615bb
add esp, 8
inc edi
cmp edi, 1
jl 0x443ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0048347f
int3

Function at 0x444010
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a57cd
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4c9100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
call fcn.0046158b
mov dword [ebp - 0x14], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x4442b0
push 0
push 0
call fcn.00487e2d
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x44408a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046157d
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.00463576
int3
Function at 0x44ac40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5fe5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c9100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
push 0x40
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
call fcn.00423350
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 0x3f
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x4b0a74]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x4b0a84]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x4b0a94]
mov dword [edi + 0x30], eax
mov ax, word [0x4b0a98]
mov word [edi + 0x34], ax
mov al, byte [0x4b0a9a]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
movups xmmword [esi + 0x10], xmm0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
call fcn.00423350
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
movups xmm0, xmmword [edi]
push 0x40
push edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.004615bb
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046157d
mov esp, ebp
pop ebp
ret
Function at 0x45c550
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x18
test eax, eax
je 0x45c6e7
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x24]
push edi
cmp eax, 4
jb 0x45c593
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x45c578
mov dword [esp + 0x34], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x45c6e3
cmp eax, 8
jb 0x45c6c8
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x45c5c5
cmp edi, ebx
jae 0x45c6c8
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x45c5d6
cmp edi, edx
jae 0x45c6c8
cmp eax, 0x40
jb 0x45c67c
mov edi, eax
mov ecx, eax
and edi, 0x3f
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], edi
sub ecx, edi
mov dword [esp + 0x10], eax
mov edi, edx
mov dword [esp + 0x20], ecx
sub edi, ebx
lea ecx, [ebx + 0x10]
mov ebx, dword [esp + 0x10]
mov eax, edx
sub eax, esi
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x20]
nop
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x60], xmm1
movups xmm1, xmmword [edi + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [ebx + ecx - 0x40], xmm1
mov ebx, dword [esp + 0x1c]
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [esp + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x45c610
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
jb 0x45c6c4
jmp 0x45c680
mov edi, edx
sub edi, ebx
and eax, 0xfffffff8
lea ecx, [ebx + ebp]
mov dword [esp + 0x20], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
nop word [eax + eax]
movq xmm1, qword [ecx + edi]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add ebp, 8
pxor xmm1, xmm0
movq qword [ecx + edx - 8], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x45c6a0
mov edx, dword [esp + 0x18]
cmp ebp, eax
jae 0x45c6e3
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x45c6d1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x462650
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x46268f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46268f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46268f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46268f
cmp dword [ecx + 0x74], 0xe
jbe 0x46268f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4787a1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0048e360
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4787e4
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4787e4
sub eax, 1
je 0x4787df
sub eax, 1
je 0x4787db
xor eax, eax
leave
ret
push 3
jmp 0x4787e6
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x49911c
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 0x4991b9
push ebx
push esi
call fcn.004990e5
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.004978cd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x499166
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4991b8
push edi
push eax
call fcn.004954a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x499186
call fcn.00495450
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4991b7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004978cd
add esp, 0x20
test eax, eax
jne 0x4991a5
push edi
call fcn.00495450
jmp 0x4991ad
push ebx
call fcn.00495450
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 0x4991bc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4991cd
pop esi
ret
push ebx
push edi
push esi
call fcn.004990e5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004954a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4991f5
push ebx
push esi
push edi
call fcn.004796c0
add esp, 0xc
push 0
call fcn.00495450
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4995c4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049920a

Function at 0x49c16c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00495270
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 0x49c1db
cmp esi, dword [ebp - 4]
je 0x49c1d6
cmp dword [ebp + 0xc], 0
je 0x49c1d6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49c1b3
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049bcc1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49c1dd
xor eax, eax
inc eax
jmp 0x49c1dd
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x49c248
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c9100]
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.00495270
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.00495270
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 0x49c2bf
cmp word [ecx], dx
je 0x49c2bf
mov eax, dword [0x4bb784]
push edi
dec eax
push eax
push 0x4bb670
call fcn.0049c1e1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x49c332
cmp word [eax], dx
je 0x49c332
mov eax, dword [edi]
test eax, eax
je 0x49c2e3
cmp word [eax], dx
je 0x49c2e3
lea eax, [ebp - 0x10]
push eax
call fcn.0049bbc7
jmp 0x49c2ec
lea eax, [ebp - 0x10]
push eax
call fcn.0049bc62
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x49c35c
mov eax, dword [0x4bb66c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4bb360
call fcn.0049c1e1
add esp, 0xc
test al, al
je 0x49c35c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x49c327
cmp word [eax], di
je 0x49c327
lea eax, [ebp - 0x10]
push eax
call fcn.0049bbc7
pop ecx
jmp 0x49c35e
lea eax, [ebp - 0x10]
push eax
call fcn.0049bc62
jmp 0x49c324
mov eax, dword [edi]
test eax, eax
je 0x49c349
cmp word [eax], dx
je 0x49c349
lea eax, [ebp - 0x10]
push eax
call fcn.0049bb7c
pop ecx
jmp 0x49c35c
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 0x49c427
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0049c066
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49c427
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x49c427
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
test eax, eax
je 0x49c427
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49c3b4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004973bb
test ebx, ebx
je 0x49c422
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004973bb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x49c427
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 0x49c427
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004a2043
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49c429
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046157d
leave
ret
Function at 0x4a3810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a383d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a383d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xaa6e28
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0xaa6e94
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0xaa6edd
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00abf9d0
add esp, 8
test eax, eax
jne 0xaa6edb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0xaa6edf
jmp 0xaa6e8b
xor eax, eax
mov esp, ebp
pop ebp
ret