joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cb80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x565480]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45b34b
je 0x45b39e
cmp ebx, 0x20
jbe 0x45b3a4
cmp ebx, 0x40
jbe 0x45b3ea
jmp 0x45b48b
test ebx, ebx
je 0x45b394
add eax, 0x10
test ax, 0xff0
je 0x45b380
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4ca700]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x4ca800]
jmp 0x45b368
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45b368
pxor xmm1, xmmword [0x565490]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x565490]
pxor xmm2, xmmword [0x5654a0]
pxor xmm3, xmmword [0x5654b0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x565490]
pxor xmm2, xmmword [0x5654a0]
pxor xmm3, xmmword [0x5654b0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45b4ea
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x5651ce], 0
je 0x45cb9a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45b310
jmp fcn.00407370
Function at 0x4931c0
Capabilities:
Hash data with md5

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49326a
sub esp, 0x24
lea eax, [0x4a1ba0]
mov dword [esp], eax
call fcn.0040a820
mov eax, dword [esp + 4]
nop
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
lea ecx, [0x4ca3c0]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00493340
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebp
add esp, 0x24
ret
call fcn.0045b8c0
jmp fcn.004931c0

Function at 0x493280
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x493331
sub esp, 0x24
lea eax, [0x4a1c20]
mov dword [esp], eax
call fcn.0040a820
mov eax, dword [esp + 4]
nop
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
lea ecx, [0x4ca3e4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00493340
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebp
add esp, 0x24
ret
call fcn.0045b8c0
jmp fcn.00493280
Function at 0x401290
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x469900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x44c1cc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x1c], edx
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
add esi, eax
xor edi, edi
mov eax, dword [ebx]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], esi
movzx eax, word [eax + 6]
cmp edi, eax
jge 0x401380
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x401392
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x401374
mov eax, dword [esi + 0xc]
push 4
push 0x1000
push ebx
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0
push eax
mov dword [esi + 8], eax
call fcn.00403930
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ebx, dword [ebp + 0x10]
inc edi
add esi, 0x28
jmp 0x4012e8
mov ebx, dword [ebp + 0x10]
inc edi
add esi, 0x28
jmp 0x4012e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push 0x4544c0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x55
call fcn.00402ebe
int3
Function at 0x401480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [0x456018]
sub esp, 0x18
xor edx, edx
mov ecx, 0x45601c
push esi
push edi
mov edi, 0x5f
mov esi, dword [0x456014]
div edi
add dl, 0x58
movsx eax, dl
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
test esi, esi
je 0x401531
cmp esi, 0x40
jb 0x401518
mov edi, esi
and edi, 0xffffffc0
nop word [eax + eax]
movups xmm0, xmmword [ecx]
add eax, 0x40
xorps xmm0, xmm1
paddb xmm0, xmm1
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ecx + 0x10]
xorps xmm0, xmm1
paddb xmm0, xmm1
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
xorps xmm0, xmm1
paddb xmm0, xmm1
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
xorps xmm0, xmm1
paddb xmm0, xmm1
movups xmmword [ecx + 0x30], xmm0
add ecx, 0x40
cmp eax, edi
jb 0x4014d0
cmp eax, esi
jae 0x401531
sub esi, eax
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor al, dl
add al, dl
mov byte [ecx - 1], al
sub esi, 1
jne 0x401520
push 0x45601c
call fcn.00401980
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4015e8
push ebx
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x14], ebx
cmp dword [ecx + 0x7c], 0
je 0x4015dc
mov ecx, dword [ecx + 0x78]
add ecx, ebx
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4015dc
cmp dword [ecx + 0x14], 0
je 0x4015dc
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
add edx, ebx
add ecx, ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
test eax, eax
je 0x4015dc
nop
mov eax, dword [edx]
mov edi, dword [ebp + 8]
lea esi, [ebx + eax]
sub edi, esi
nop word [eax + eax]
mov cl, byte [edi + esi]
call fcn.00401770
mov cl, byte [esi]
mov bl, al
call fcn.00401770
cmp bl, al
ja 0x4015ee
jb 0x4015ee
inc esi
or al, bl
jne 0x4015a0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
movzx ecx, word [ecx]
cmp ecx, dword [eax + 0x14]
ja 0x4015dc
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx]
add eax, ecx
je 0x4015dc
call eax
push dword [ebp - 0x18]
call fcn.00401780
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
inc ecx
mov edx, dword [ebp - 0xc]
add dword [ebp - 4], 2
add edx, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
cmp ecx, dword [eax + 0x18]
jae 0x4015dc
mov ebx, dword [ebp - 0x14]
jmp 0x401590
Function at 0x401780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x469900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x401896
cmp dword [ebx + 0x10], 0
je 0x4017ba
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push 0
push 0
mov eax, dword [eax + 0x28]
push ecx
add eax, ecx
call eax
mov dword [ebx + 0x10], 0
cmp dword [ebx + 8], 0
je 0x40185a
push esi
xor esi, esi
push edi
cmp dword [ebx + 0xc], esi
jle 0x4017e7
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebx + 8]
mov eax, dword [eax + esi*4]
cmp eax, 0xffffffff
je 0x4017e1
push eax
call edi
inc esi
cmp esi, dword [ebx + 0xc]
jl 0x4017d3
mov edi, dword [ebx + 8]
push 0x44c1b0
push str.kernel32.dll
mov dword [ebp - 0x14], 0x4e52454b
mov dword [ebp - 0x10], 0x32334c45
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x24], 0x50746547
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0x65636f72
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0x65487373
push eax
mov word [ebp - 0x18], 0x7061
mov byte [ebp - 0x16], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0
call eax
push eax
call esi
pop edi
pop esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x40186f
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x44c1f4
push 0x44c220
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401d42
mov esp, ebp
pop ebp
ret
Function at 0x401980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b610
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x469900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401c3b
mov esi, dword [ecx + 0x3c]
lea eax, [ecx + 0x3c]
add esi, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0x4550
jne 0x401c3b
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esi + 0x34]
push 4
push 0x2000
push dword [esi + 0x50]
mov dword [ebp - 0x28], eax
push dword [eax]
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x401c4f
push 4
push 0x2000
push dword [esi + 0x50]
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x401c4f
jmp 0x401c3b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
mov dword [eax + 0x10], 0
push 0x4544c0
lea ecx, [eax + 4]
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
add eax, 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ecx], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x3f
call fcn.00402ebe
push 0x4544c0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x30], 0x1f
call fcn.00402ebe
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, 0x401cd2
ret

Function at 0x40293c
Capabilities:
Parse pe header

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

Function at 0x40ee55
Capabilities:
Parse pe header

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

Function at 0x42ea39
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e90d
Function at 0x42f534
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x469900]
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 0x42f57f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042f9d4
test al, al
jne 0x42f579
sub edx, 2
cmp edx, edi
jne 0x42f55f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42f5a1
lea eax, [edi + 2]
cmp edx, eax
je 0x42f5a1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042f1fb
add esp, 0x10
jmp 0x42f69b
push esi
lea ecx, [ebp - 0x255]
call fcn.0042f9d4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f5e4
push dword [ebp - 0x25c]
jmp 0x42f591
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 0x42f621
cmp word [ebp - 0x226], 0
je 0x42f642
cmp word [ebp - 0x226], ax
jne 0x42f621
cmp word [ebp - 0x224], 0
je 0x42f642
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042f1fb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42f68e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42f5fb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42f676
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42f69b
push 0x42ec4b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043a860
add esp, 0x10
jmp 0x42f66b
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.00401d42
leave
ret
Function at 0x430fc3
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 0x431060
push ebx
push esi
call fcn.00430f7f
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.00430ebc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43100d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43105f
push edi
push eax
call fcn.004337c6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43102d
call fcn.0042ebf9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43105e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00430ebc
add esp, 0x20
test eax, eax
jne 0x43104c
push edi
call fcn.0042ebf9
jmp 0x431054
push ebx
call fcn.0042ebf9
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 0x431063
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431074
pop esi
ret
push ebx
push edi
push esi
call fcn.00430f7f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004337c6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43109c
push ebx
push esi
push edi
call fcn.004033b0
add esp, 0xc
push 0
call fcn.0042ebf9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43198b
Capabilities:
Set environment variable

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

Function at 0x435ade
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042df53
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 0x435b4d
cmp esi, dword [ebp - 4]
je 0x435b48
cmp dword [ebp + 0xc], 0
je 0x435b48
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x435b25
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00435630
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x435b4f
xor eax, eax
inc eax
jmp 0x435b4f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x435bb4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x469900]
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.0042df53
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.0042df53
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 0x435c2b
cmp word [ecx], dx
je 0x435c2b
mov eax, dword [0x44eb9c]
push edi
dec eax
push eax
push 0x44ea88
call fcn.00435b53
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x435c9e
cmp word [eax], dx
je 0x435c9e
mov eax, dword [edi]
test eax, eax
je 0x435c4f
cmp word [eax], dx
je 0x435c4f
lea eax, [ebp - 0x10]
push eax
call fcn.00435536
jmp 0x435c58
lea eax, [ebp - 0x10]
push eax
call fcn.004355d1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x435cc8
mov eax, dword [0x44ea84]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44e778
call fcn.00435b53
add esp, 0xc
test al, al
je 0x435cc8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x435c93
cmp word [eax], di
je 0x435c93
lea eax, [ebp - 0x10]
push eax
call fcn.00435536
pop ecx
jmp 0x435cca
lea eax, [ebp - 0x10]
push eax
call fcn.004355d1
jmp 0x435c90
mov eax, dword [edi]
test eax, eax
je 0x435cb5
cmp word [eax], dx
je 0x435cb5
lea eax, [ebp - 0x10]
push eax
call fcn.004354cd
pop ecx
jmp 0x435cc8
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 0x435d93
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004359d8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x435d93
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x435d93
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x435d93
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x435d20
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00436aa1
test ebx, ebx
je 0x435d8e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00436aa1
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435d93
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 0x435d93
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043bd23
add esp, 0x10
xor eax, eax
inc eax
jmp 0x435d95
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d42
leave
ret
Function at 0x436713
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fdc4
push 0x44fdbc
push str.FlsAlloc
push 0x1f
call fcn.004363e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436747
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c154]
call esi
jmp 0x43674d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x436791
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fdd4
push 0x44fdcc
push str.FlsGetValue
push 0x21
call fcn.004363e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4367c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4367d0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44fddc
push 0x44fdd4
push str.FlsSetValue
push 0x22
call fcn.004363e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43680a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44c154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]