joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412ae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 3
ja case.default.0x412aea
jmp dword [eax*4 + 0x412b68]
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.0041eac0
pop edi
ret 4
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.004203e0
pop edi
ret 4
mov eax, dword ds:[edi + 4]
push esi
mov esi, dword [esp + 0xc]
not eax
test esi, esi
je 0x412b3e
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x46a480]
sub esi, 1
jne 0x412b24
not eax
pop esi
mov dword [edi + 4], eax
pop edi
ret 4
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.0041e860
pop edi
ret 4
push 0xc000000d
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
int1
sub al, byte [ecx]
add ebp, dword [ebx]
inc ecx
add byte [ebx], dl
sub eax, dword [ecx]
dec eax
sub eax, dword [ecx]
int3

Function at 0x413160
Capabilities:
Create directory

Disassembly:
sub esp, 0xc8
mov eax, dword [0x46e040]
xor eax, esp
mov dword [esp + 0xc0], eax
test byte [0x46edec], 1
push ebx
push esi
push edi
jne 0x4132e7
mov edi, 0x46edec
lock bts dword [edi], 0x1f
setb al
test al, al
jne 0x41319b
mov al, 1
jmp 0x4131ad
test byte [0x46edec], 1
jne 0x4131ab
mov ecx, edi
call fcn.00415400
xor al, al
test al, al
je 0x4132e7
call fcn.00419260
mov esi, eax
lea eax, [esp + 0x30]
push 1
push eax
mov bl, byte [esi + 1]
call dword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
movzx ecx, bl
lea eax, [esp + 0x44]
push 2
lea ecx, [ecx*4 + 0x4c]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlCreateAcl]
push 0x468b58
push 0xf000f
push 2
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push esi
push 0xf000f
push 2
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0x468b64
push 7
push 2
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0
lea eax, [esp + 0x48]
push eax
push 1
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
cmp dword [0x46ead8], 0x64
mov dword [esp + 0x10], 0x420040
sbb eax, eax
mov dword [esp + 0x14], str.BaseNamedObjectsSystemInformer
and eax, 0xfffff000
mov dword [esp + 0x18], 0x18
add eax, 0x1080
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push 0x2000000
push 0x46fe8c
mov dword [esp + 0x38], 0
call dword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
lock bts dword [edi], 0
setb al
test al, al
jne 0x4132e7
mov esi, dword [0x46edf0]
test esi, esi
je 0x4132bd
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [edi], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4132e7
test esi, esi
je 0x4132e7
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46edf0], 0
mov ecx, dword [esp + 0xcc]
mov eax, dword [0x46fe8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004218f3
add esp, 0xc8
ret
Function at 0x413600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
mov eax, dword [0x46e040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [0x46fcb8]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
push eax
push 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xa
push eax
push ebx
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x413694
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lfence
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x413694
test edi, edi
je 0x413674
mov eax, dword [esp + 0x10]
mov dword [edi], eax
test esi, esi
je 0x41367e
mov eax, dword [esp + 0x14]
mov dword [esi], eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004218f3
add esp, 0x1c
ret 0xc
mov ecx, dword ds:[esp + 0x24]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004218f3
add esp, 0x1c
ret 0xc

Function at 0x4136c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 8
mov eax, dword [eax + 0x30]
push ebx
push esi
mov esi, dword [0x46fcb8]
push edi
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
cmp eax, ecx
je 0x41370f
nop dword [eax]
test esi, esi
je 0x413733
cmp dword [eax + 0x18], esi
je 0x413733
mov eax, dword [eax]
cmp eax, ecx
jne 0x413704
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x41378a
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
test eax, eax
je 0x41370f
movzx ecx, word ds:[eax + 0x24]
mov edx, ecx
test cx, cx
jne 0x41374e
call fcn.00406f80
mov esi, eax
jmp 0x413711
mov ebx, dword ds:[eax + 0x28]
mov edi, edx
mov edx, dword [0x46fcb4]
lea ecx, [edi + 0xa]
call fcn.004060a0
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
mov word [eax + edi], cx
test ebx, ebx
je 0x413711
push edi
push ebx
push dword [esi + 4]
call fcn.00423710
add esp, 0xc
jmp 0x413711
mov ecx, esi
call fcn.0040fdc0
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4137a8
call fcn.00406180
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4137c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 0xc
mov eax, dword [eax + 0x30]
push ebx
push ebp
push esi
push edi
push dword [eax + 0xa0]
mov ebx, edx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x46ead8], 0x3e
jb 0x413822
test ebx, ebx
je 0x413822
push ecx
mov dl, 1
mov ecx, ebx
call fcn.004079c0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov esi, dword [ecx]
cmp esi, ecx
je 0x41381e
nop dword [eax + eax]
cmp dword [esi + 0x90], eax
je 0x413874
mov esi, dword [esi]
cmp esi, ecx
jne 0x413810
xor esi, esi
jmp 0x413874
mov eax, dword fs:[0x18]
xor esi, esi
mov eax, dword [eax + 0x30]
mov ebp, dword [eax + 0xc]
add ebp, 0xc
mov edi, dword [ebp]
cmp edi, ebp
je 0x413874
nop word [eax + eax]
movzx ecx, word [edi + 0x2c]
mov eax, dword [edi + 0x30]
test ebx, ebx
je 0x413872
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
cmp ecx, eax
jb 0x41386a
push 1
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.00406b00
test al, al
jne 0x413872
mov edi, dword [edi]
cmp edi, ebp
jne 0x413840
jmp 0x413874
mov esi, edi
test esi, esi
je 0x41387d
mov esi, dword [esi + 0x18]
jmp 0x41387f
xor esi, esi
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4138a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, 0x5a4d
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp word [edi], ax
jne 0x413b1f
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x413b1f
cmp eax, 0x7fffffff
jae 0x413b1f
add eax, edi
mov dword [esp + 0xc], eax
cmp dword [eax], 0x4550
jne 0x413b1f
lea edx, [eax + 0x78]
mov eax, dword [edx]
test eax, eax
je 0x413b1f
cmp dword [edx + 4], 0
je 0x413b1f
push dword [ebp + 8]
add eax, edi
push esi
push eax
call fcn.00413b80
cmp dword [0x46ead8], 0x64
mov ebx, eax
jb 0x413b14
call fcn.0041bbc0
nop dword [eax]
test eax, eax
je 0x413b14
call fcn.0041bbc0
mov esi, eax
mov ecx, eax
call dword [0x44227c]
call esi
nop dword [eax]
test al, al
je 0x413b14
mov edx, dword ds:[esp + 0xc]
lea eax, [esp + 0x14]
push ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
push 0xa
call fcn.00413b40
test eax, eax
js 0x413b14
mov edx, dword ds:[esp + 0x14]
mov ecx, dword [edx]
lea eax, [edx + 0x5c]
add ecx, edx
cmp eax, ecx
ja 0x413b14
mov eax, dword [edx + 0x58]
shr eax, 0xe
test al, 1
je 0x413b14
cmp byte [0x46fe34], 0
nop dword [eax]
jne 0x413a3b
mov edx, dword [0x46fcac]
mov ecx, 0x28
mov byte [0x46fe34], 1
call fcn.004060a0
mov esi, dword [0x46fcc0]
mov edi, eax
push 0x40
push 4
push esi
mov dword [edi], 8
mov dword [edi + 4], 0x407a40
mov dword [edi + 8], 0x407a60
mov dword [edi + 0xc], 0x10
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword ds:[edi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [edi + 0x10], eax
call fcn.004235b0
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [edi + 0x14], eax
shl eax, 4
push eax
push 4
push esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x24], 0
mov dword [0x46ffb4], edi
jmp 0x413a41
mov edi, dword [0x46ffb4]
test edi, edi
je 0x413b14
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, edi
call fcn.00407840
lea ecx, ds:[eax + 4]
neg eax
sbb eax, eax
test ecx, eax
jne 0x413b14
mov dword [esp + 0x14], 0
call fcn.0041ba20
test eax, eax
je 0x413b14
mov eax, ebx
mov dword [esp + 0x10], 0x1000
and eax, 0xfffff000
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
mov eax, ebx
movlpd qword [esp + 0x38], xmm0
and eax, 0xfff
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push 0x20
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], 1
push eax
push 1
push 2
push 0xffffffffffffffff
mov dword [esp + 0x44], 0
call fcn.0041ba20
call eax
xor ecx, ecx
cmp eax, 0xc0000045
cmovne ecx, eax
test ecx, ecx
js 0x413b14
mov ecx, dword [0x46ffb4]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
call fcn.00407720
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414b40
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebx, edx
mov dword [esp + 0xc], 0
xorps xmm0, xmm0
push esi
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x31], 0
push edi
test ebx, ebx
je 0x414b6e
mov edi, ebx
mov dword [esp + 0x14], edi
jmp 0x414be1
cmp dword [0x470018], 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
push eax
jge 0x414bcf
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x18
push eax
push 0x1000
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 0
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
jmp 0x414bdd
mov edx, 0x1000
lea ecx, [esp + 0x18]
call fcn.0041bd60
mov edi, dword [esp + 0x14]
test edi, edi
je 0x414ce4
cmp dword [0x46ead8], 0x3e
jb 0x414ce4
test byte [0x46ee34], 1
nop dword [eax]
jne 0x414cc2
mov ebp, 0x46ee34
lock bts dword [ebp], 0x1f
setb al
test al, al
je 0x414c32
test byte [0x46ee34], 1
nop
jne 0x414cc2
mov ecx, ebp
call fcn.00415400
jmp 0x414cc2
cmp dword [0x46ead8], 0x3e
jb 0x414c77
mov ecx, str.user32.dll
call fcn.00406a00
add eax, eax
mov dword [esp + 0x1c], str.user32.dll
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004137c0
nop dword [eax]
test eax, eax
je 0x414c72
push 0
mov edx, str.IsImmersiveProcess
mov ecx, eax
call fcn.004138a0
mov dword [0x46ffcc], eax
lock bts dword [ebp], 0
setb al
test al, al
jne 0x414cc2
mov esi, dword [0x46ee38]
test esi, esi
je 0x414c97
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [ebp], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x414cc2
test esi, esi
je 0x414cc2
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46ee38], 0
mov esi, dword [0x46ffcc]
test esi, esi
jne 0x414cd0
xor al, al
jmp 0x414ce0
push edi
mov ecx, esi
call dword [0x44227c]
call esi
test eax, eax
setne al
mov byte [esp + 0x34], al
lea eax, [esp + 0x28]
push eax
push 0x414a80
call dword [sym.imp.USER32.dll_EnumWindows]
test ebx, ebx
jne 0x414d0b
mov eax, dword ds:[esp + 0x14]
test eax, eax
je 0x414d0b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword ds:[esp + 0x2c]
test ecx, ecx
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
cmovne eax, ecx
pop ebx
add esp, 0x40
ret 4

Function at 0x4153a0
Capabilities:
Query service status

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x24
push edx
xorps xmm0, xmm0
movups xmmword [edx], xmm0
push 0
movups xmmword [edx + 0x10], xmm0
push ecx
mov dword [edx + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4153d1
xor eax, eax
pop ecx
ret
cmp dword [0x46ead8], 0xffffffff
jae 0x4153ed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov ecx, eax
add esp, 4
jmp fcn.00414d40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add esp, 4
jmp fcn.00414d40
Function at 0x41a980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x41a99d
xorps xmm3, xmm3
mov eax, 6
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.00419b80
nop dword [eax]
cmp eax, 0x3b9aca00
jge 0x41a9b7
xorps xmm3, xmm3
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.00419b80
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x41ae36
mov eax, 6
mov dword [esp + 4], eax
jmp fcn.00419b80
cmp eax, 0x3b9aca00
jge 0x41ae46
mov dword [esp + 4], eax
jmp fcn.00419b80
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret 4
Function at 0x420480
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x46e040]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
mov ebp, ecx
mov ebx, edx
push edi
mov eax, 0x38
mov esi, 0x78
mov edi, dword [ebp + 0x30]
mov edx, edi
and edx, 0x3f
sub eax, edx
sub esi, edx
cmp edx, 0x38
cmovb esi, eax
lea eax, [esi - 1]
push eax
lea eax, [esp + 0x15]
push 0
push eax
call fcn.004235b0
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
shl eax, 3
mov ecx, edi
shr ecx, 0x1d
add esp, 0xc
or ecx, eax
mov byte [esp + 0x10], 0x80
lea eax, [edi*8]
bswap eax
bswap ecx
mov dword [esp + esi + 0x14], eax
lea eax, [esi + 8]
mov dword [esp + esi + 0x10], ecx
mov ecx, ebp
push eax
call fcn.004203e0
mov ecx, dword [ebp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx], edx
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [ebp + 0x20]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 8], edx
mov ecx, dword [ebp + 0x24]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp + 0x28]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [esp + 0x58]
shl eax, 8
pop edi
or edx, eax
mov dword [ebx + 0x10], edx
pop esi
mov dword [ebp + 0x18], 0x67452301
mov dword [ebp + 0x1c], 0xefcdab89
mov dword [ebp + 0x20], 0x98badcfe
mov dword [ebp + 0x24], 0x10325476
mov dword [ebp + 0x28], 0xc3d2e1f0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
pop ebp
pop ebx
xor ecx, esp
call fcn.004218f3
add esp, 0x4c
ret

Function at 0x42255a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00433a91
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 0x4379fa
cmp esi, dword [ebp - 4]
je 0x4379f5
cmp dword [ebp + 0xc], 0
je 0x4379f5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4379d2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004374c8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4379fc
xor eax, eax
inc eax
jmp 0x4379fc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x437a67
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46e040]
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.00433a91
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.00433a91
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 0x437ade
cmp word [ecx], dx
je 0x437ade
mov eax, dword [0x4626ec]
push edi
dec eax
push eax
push 0x4625d8
call fcn.00437a00
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x437b51
cmp word [eax], dx
je 0x437b51
mov eax, dword [edi]
test eax, eax
je 0x437b02
cmp word [eax], dx
je 0x437b02
lea eax, [ebp - 0x10]
push eax
call fcn.004373ce
jmp 0x437b0b
lea eax, [ebp - 0x10]
push eax
call fcn.00437469
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x437b7b
mov eax, dword [0x4625d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4622c8
call fcn.00437a00
add esp, 0xc
test al, al
je 0x437b7b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x437b46
cmp word [eax], di
je 0x437b46
lea eax, [ebp - 0x10]
push eax
call fcn.004373ce
pop ecx
jmp 0x437b7d
lea eax, [ebp - 0x10]
push eax
call fcn.00437469
jmp 0x437b43
mov eax, dword [edi]
test eax, eax
je 0x437b68
cmp word [eax], dx
je 0x437b68
lea eax, [ebp - 0x10]
push eax
call fcn.00437383
pop ecx
jmp 0x437b7b
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 0x437c46
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00437885
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x437c46
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x437c46
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x437c46
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x437bd3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00438272
test ebx, ebx
je 0x437c41
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00438272
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437c46
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 0x437c46
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042bbaf
add esp, 0x10
xor eax, eax
inc eax
jmp 0x437c48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004218f3
leave
ret
Function at 0x439f94
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x439fdf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043a12d
test al, al
jne 0x439fd9
sub edx, 2
cmp edx, edi
jne 0x439fbf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43a001
lea eax, [edi + 2]
cmp edx, eax
je 0x43a001
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00439ee0
add esp, 0x10
jmp 0x43a0f9
push esi
lea ecx, [ebp - 0x255]
call fcn.0043a12d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43a042
push dword [ebp - 0x25c]
jmp 0x439ff1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43a07f
cmp word [ebp - 0x226], 0
je 0x43a0a0
cmp word [ebp - 0x226], ax
jne 0x43a07f
cmp word [ebp - 0x224], 0
je 0x43a0a0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00439ee0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43a0ec
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43a059
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43a0d4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43a0f9
push 0x439d10
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00430900
add esp, 0x10
jmp 0x43a0c9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004218f3
leave
ret

Function at 0x43a240
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43a251
pop esi
ret
push ebx
push edi
push esi
call fcn.0043a209
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00432080
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43a279
push ebx
push esi
push edi
call fcn.00423710
add esp, 0xc
push 0
call fcn.00432030
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43a648
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043a28e
Function at 0x43f060
Capabilities:
Parse pe header

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