joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411600
Capabilities:
Get system information on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [0x46dd8c]
mov ebp, edx
push edi
push esi
push 4
push dword [0x46ecc0]
mov dword [esp + 0x20], 4
mov dword [esp + 0x1c], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push esi
push ebx
push 4
lea eax, [esp + 0x24]
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x41169e
cmp esi, 8
jae 0x4116a4
push ebx
push 0
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
push 4
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x411652
nop
test edi, edi
jns 0x4116c3
push ebx
push 0
lfence
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
lfence
mov ecx, dword [esp + 0x10]
cmp ecx, 0x100000
ja 0x4116d8
mov dword [0x46dd8c], ecx
mov eax, dword [esp + 0x1c]
mov dword [ebp], ebx
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x411d00
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46efa8]
test ecx, ecx
je 0x411d1f
mov eax, dword [0x46efa4]
mov dword [edi], eax
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x50], 0
je 0x411d50
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x50]
cmp dword [eax], 0
je 0x411d50
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0x50]
add esi, 0x1e
jmp 0x411d55
mov esi, 0x7ffe0030
mov ecx, esi
call fcn.00406960
lea ecx, [eax + eax]
movzx eax, word [ecx + esi - 2]
mov edx, ecx
mov ebx, eax
cmp eax, 0x5c
jne 0x411d70
lea edx, [ecx - 2]
lea eax, [ecx - 2]
mov dword [edi], edx
cmp ebx, 0x5c
mov dword [edi + 4], esi
cmovne eax, ecx
xor ecx, ecx
mov dword [0x46efa4], eax
lea eax, [esp + 0xc]
lock or dword [eax], ecx
pop edi
mov dword [0x46efa8], esi
pop esi
pop ebx
pop ecx
ret

Function at 0x412920
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 3
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0x6a09e667
mov dword [ecx + 0x10], 0xbb67ae85
mov dword [ecx + 0x14], 0x3c6ef372
mov dword [ecx + 0x18], 0xa54ff53a
mov dword [ecx + 0x1c], 0x510e527f
mov dword [ecx + 0x20], 0x9b05688c
mov dword [ecx + 0x24], 0x1f83d9ab
mov dword [ecx + 0x28], 0x5be0cd19
ret
Function at 0x412980
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.0x41298a
jmp dword [eax*4 + 0x412a08]
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.0041e940
pop edi
ret 4
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.00420260
pop edi
ret 4
mov eax, dword ds:[edi + 4]
push esi
mov esi, dword [esp + 0xc]
not eax
test esi, esi
je 0x4129de
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4694a0]
sub esi, 1
jne 0x4129c4
not eax
pop esi
mov dword [edi + 4], eax
pop edi
ret 4
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.0041e6e0
pop edi
ret 4
push 0xc000000d
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
xchg ecx, eax
sub dword [ecx], eax
mov dword [0xb3004129], eax
sub dword [ecx], eax
call 0xcc416b42
int3

Function at 0x413000
Capabilities:
Create directory

Disassembly:
sub esp, 0xc8
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0xc0], eax
test byte [0x46ddec], 1
push ebx
push esi
push edi
jne 0x413187
mov edi, 0x46ddec
lock bts dword [edi], 0x1f
setb al
test al, al
jne 0x41303b
mov al, 1
jmp 0x41304d
test byte [0x46ddec], 1
jne 0x41304b
mov ecx, edi
call fcn.004152c0
xor al, al
test al, al
je 0x413187
call fcn.004190e0
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 0x467b70
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 0x467b7c
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 [0x46dad8], 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 0x46ee8c
mov dword [esp + 0x38], 0
call dword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
lock bts dword [edi], 0
setb al
test al, al
jne 0x413187
mov esi, dword [0x46ddf0]
test esi, esi
je 0x41315d
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 0x413187
test esi, esi
je 0x413187
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46ddf0], 0
mov ecx, dword [esp + 0xcc]
mov eax, dword [0x46ee8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00421733
add esp, 0xc8
ret
Function at 0x4134a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [0x46ecb8]
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 0x413534
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 0x413534
test edi, edi
je 0x413514
mov eax, dword [esp + 0x10]
mov dword [edi], eax
test esi, esi
je 0x41351e
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.00421733
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.00421733
add esp, 0x1c
ret 0xc

Function at 0x413560
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 [0x46ecb8]
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 0x4135af
nop dword [eax]
test esi, esi
je 0x4135d3
cmp dword [eax + 0x18], esi
je 0x4135d3
mov eax, dword [eax]
cmp eax, ecx
jne 0x4135a4
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 0x41362a
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
test eax, eax
je 0x4135af
movzx ecx, word ds:[eax + 0x24]
mov edx, ecx
test cx, cx
jne 0x4135ee
call fcn.00406f40
mov esi, eax
jmp 0x4135b1
mov ebx, dword ds:[eax + 0x28]
mov edi, edx
mov edx, dword [0x46ecb4]
lea ecx, [edi + 0xa]
call fcn.00406000
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 0x4135b1
push edi
push ebx
push dword [esi + 4]
call fcn.00423550
add esp, 0xc
jmp 0x4135b1
mov ecx, esi
call fcn.0040fce0
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x413648
call fcn.004060e0
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x413660
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 [0x46dad8], 0x3e
jb 0x4136c2
test ebx, ebx
je 0x4136c2
push ecx
mov dl, 1
mov ecx, ebx
call fcn.00407960
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 0x4136be
nop dword [eax + eax]
cmp dword [esi + 0x90], eax
je 0x413714
mov esi, dword [esi]
cmp esi, ecx
jne 0x4136b0
xor esi, esi
jmp 0x413714
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 0x413714
nop word [eax + eax]
movzx ecx, word [edi + 0x2c]
mov eax, dword [edi + 0x30]
test ebx, ebx
je 0x413712
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
cmp ecx, eax
jb 0x41370a
push 1
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.00406a60
test al, al
jne 0x413712
mov edi, dword [edi]
cmp edi, ebp
jne 0x4136e0
jmp 0x413714
mov esi, edi
test esi, esi
je 0x41371d
mov esi, dword [esi + 0x18]
jmp 0x41371f
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 0x413740
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 0x4139bf
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4139bf
cmp eax, 0x7fffffff
jae 0x4139bf
add eax, edi
mov dword [esp + 0xc], eax
cmp dword [eax], 0x4550
jne 0x4139bf
lea edx, [eax + 0x78]
mov eax, dword [edx]
test eax, eax
je 0x4139bf
cmp dword [edx + 4], 0
je 0x4139bf
push dword [ebp + 8]
add eax, edi
push esi
push eax
call fcn.00413a20
cmp dword [0x46dad8], 0x64
mov ebx, eax
jb 0x4139b4
call fcn.0041bd20
nop dword [eax]
test eax, eax
je 0x4139b4
call fcn.0041bd20
mov esi, eax
mov ecx, eax
call dword [0x44127c]
call esi
nop dword [eax]
test al, al
je 0x4139b4
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.004139e0
test eax, eax
js 0x4139b4
mov edx, dword ds:[esp + 0x14]
mov ecx, dword [edx]
lea eax, [edx + 0x5c]
add ecx, edx
cmp eax, ecx
ja 0x4139b4
mov eax, dword [edx + 0x58]
shr eax, 0xe
test al, 1
je 0x4139b4
cmp byte [0x46ee34], 0
nop dword [eax]
jne 0x4138db
mov edx, dword [0x46ecac]
mov ecx, 0x28
mov byte [0x46ee34], 1
call fcn.00406000
mov esi, dword [0x46ecc0]
mov edi, eax
push 0x40
push 4
push esi
mov dword [edi], 8
mov dword [edi + 4], 0x4079e0
mov dword [edi + 8], 0x407a00
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.004233f0
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 [0x46efb4], edi
jmp 0x4138e1
mov edi, dword [0x46efb4]
test edi, edi
je 0x4139b4
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, edi
call fcn.004077e0
lea ecx, ds:[eax + 4]
neg eax
sbb eax, eax
test ecx, eax
jne 0x4139b4
mov dword [esp + 0x14], 0
call fcn.0041bb80
test eax, eax
je 0x4139b4
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.0041bb80
call eax
xor ecx, ecx
cmp eax, 0xc0000045
cmovne ecx, eax
test ecx, ecx
js 0x4139b4
mov ecx, dword [0x46efb4]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
call fcn.004076c0
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 0x414a00
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 0x414a2e
mov edi, ebx
mov dword [esp + 0x14], edi
jmp 0x414aa1
cmp dword [0x46f008], 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
push eax
jge 0x414a8f
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 0x414a9d
mov edx, 0x1000
lea ecx, [esp + 0x18]
call fcn.0041b8a0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x414ba4
cmp dword [0x46dad8], 0x3e
jb 0x414ba4
test byte [0x46de34], 1
nop dword [eax]
jne 0x414b82
mov ebp, 0x46de34
lock bts dword [ebp], 0x1f
setb al
test al, al
je 0x414af2
test byte [0x46de34], 1
nop
jne 0x414b82
mov ecx, ebp
call fcn.004152c0
jmp 0x414b82
cmp dword [0x46dad8], 0x3e
jb 0x414b37
mov ecx, str.user32.dll
call fcn.00406960
add eax, eax
mov dword [esp + 0x1c], str.user32.dll
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00413660
nop dword [eax]
test eax, eax
je 0x414b32
push 0
mov edx, str.IsImmersiveProcess
mov ecx, eax
call fcn.00413740
mov dword [0x46efcc], eax
lock bts dword [ebp], 0
setb al
test al, al
jne 0x414b82
mov esi, dword [0x46de38]
test esi, esi
je 0x414b57
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 0x414b82
test esi, esi
je 0x414b82
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46de38], 0
mov esi, dword [0x46efcc]
test esi, esi
jne 0x414b90
xor al, al
jmp 0x414ba0
push edi
mov ecx, esi
call dword [0x44127c]
call esi
test eax, eax
setne al
mov byte [esp + 0x34], al
lea eax, [esp + 0x28]
push eax
push 0x414940
call dword [sym.imp.USER32.dll_EnumWindows]
test ebx, ebx
jne 0x414bcb
mov eax, dword ds:[esp + 0x14]
test eax, eax
je 0x414bcb
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 0x415260
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 0x415291
xor eax, eax
pop ecx
ret
cmp dword [0x46dad8], 0xffffffff
jae 0x4152ad
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov ecx, eax
add esp, 4
jmp fcn.00414c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add esp, 4
jmp fcn.00414c00
Function at 0x41a800
Capabilities:
Resolve function by parsing pe exports

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

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

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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x46d040]
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.004233f0
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.00420260
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.00421733
add esp, 0x4c
ret

Function at 0x42239a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004338d1
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 0x43783a
cmp esi, dword [ebp - 4]
je 0x437835
cmp dword [ebp + 0xc], 0
je 0x437835
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x437812
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00437308
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43783c
xor eax, eax
inc eax
jmp 0x43783c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4378a7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46d040]
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.004338d1
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.004338d1
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 0x43791e
cmp word [ecx], dx
je 0x43791e
mov eax, dword [0x4616ec]
push edi
dec eax
push eax
push 0x4615d8
call fcn.00437840
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x437991
cmp word [eax], dx
je 0x437991
mov eax, dword [edi]
test eax, eax
je 0x437942
cmp word [eax], dx
je 0x437942
lea eax, [ebp - 0x10]
push eax
call fcn.0043720e
jmp 0x43794b
lea eax, [ebp - 0x10]
push eax
call fcn.004372a9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4379bb
mov eax, dword [0x4615d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4612c8
call fcn.00437840
add esp, 0xc
test al, al
je 0x4379bb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x437986
cmp word [eax], di
je 0x437986
lea eax, [ebp - 0x10]
push eax
call fcn.0043720e
pop ecx
jmp 0x4379bd
lea eax, [ebp - 0x10]
push eax
call fcn.004372a9
jmp 0x437983
mov eax, dword [edi]
test eax, eax
je 0x4379a8
cmp word [eax], dx
je 0x4379a8
lea eax, [ebp - 0x10]
push eax
call fcn.004371c3
pop ecx
jmp 0x4379bb
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 0x437a86
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004376c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x437a86
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x437a86
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x437a86
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x437a13
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004380b2
test ebx, ebx
je 0x437a81
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004380b2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437a86
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 0x437a86
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042b9ef
add esp, 0x10
xor eax, eax
inc eax
jmp 0x437a88
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421733
leave
ret