joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xa18228]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40f394
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x40f3e2
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0xa1a77c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x40f410
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0xa18228]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40f440
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0xa18228]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x40f47e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x40f47e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x40f480
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40f8a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0xa18228]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x417370
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x417390
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x417390
mov eax, dword [eax + 0x44]
test eax, eax
je 0x417390
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4338d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xa8
mov eax, dword [0xa1a560]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x433957
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x43394b
mov dword [0xa1a560], 2
add esp, 0xa8
ret
mov dword [0xa1a560], 1
jmp 0x43395c
cmp eax, 2
je 0x4339a8
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x43398a
mov eax, dword [esp + 4]
cmp eax, dword [esp]
jg 0x4339a8
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
add esp, 0xa8
ret
Function at 0x441300
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x441349
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x441349
lea eax, [esp]
push eax
call dword [0xa18238]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x446190
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x446323
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44630d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4461df
lea ebx, [eax + 0xe]
jmp 0x4461eb
cmp eax, 0x17
jne 0x44629a
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x44629a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x44629a
cmp eax, ebx
jb 0x44629a
push 0x20
call dword [0xa1822c]
mov esi, eax
add esp, 4
test esi, esi
je 0x446302
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0xa1822c]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4462f1
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x446285
push eax
call dword [0xa18238]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4462d7
test ebp, ebp
jne 0x44628b
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x446296
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4461d2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4462b9
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x446309
push ebp
call fcn.00446150
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0xa18230]
push esi
call dword [0xa18230]
add esp, 8
jmp 0x4462a9
push esi
mov ebx, 8
call dword [0xa18230]
add esp, 4
jmp 0x4462a9
mov ebx, 8
jmp 0x4462a9
test ebp, ebp
jne 0x446319
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x446770
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.00446720
mov al, 1
ret
Function at 0x44c1cb
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0xa1a5bc
cmp dword [0xa1a5b8], edi
jne 0x44c1fa
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0xa1a5b8], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0xa1a5b4]
test esi, esi
je 0x44c255
test edi, edi
jne 0x44c39c
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x44c22b
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x44c21c
jmp 0x44c247
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.0044c174
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x44c20b
test edi, edi
jne 0x44c39c
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x44c39c
mov esi, dword [0xa1a5b4]
jmp 0x44c296
cmp dword [esi + 0xc], 0x3f
jl 0x44c337
mov esi, dword [esi]
test esi, esi
jne 0x44c28a
push 0x310
push 8
push dword [0xa19cd8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x44c396
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 8], eax
test eax, eax
je 0x44c388
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x44c3af
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x44c383
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.0044c174
mov eax, dword [0xa1a5b4]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x44c32f
mov dword [eax + 4], esi
mov dword [0xa1a5b4], esi
jmp 0x44c39c
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.0044c174
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x44c39c
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0xa19cd8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0xa1a5bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x44d490
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x44eac6
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x44eac6
cmp dword [ecx + 0xc], 0
je 0x44eac6
cmp dword [ecx], 0
jne 0x44d4c8
cmp dword [ecx + 4], 0
jne 0x44eac6
cmp dword [edi], 0xb
jne 0x44d4d3
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x44de45
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x44d520
jmp dword [eax*4 + 0x44ead0]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x702f6341
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x156e4073
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40e675
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x40e684
pop dword [ebp - 4]
mov eax, 0xe206db44
sub eax, 0xe1c5f4c0
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x11dab4da
sub dword [ebp - 0x14], 0xc3886f8f
mov dword [ebp - 0x10], 0xa41bf502
sub dword [ebp - 0x10], 0x71e8a8bd
mov dword [ebp - 0xc], 0x22a4a4a1
sub dword [ebp - 0xc], 0xd6586073
mov dword [ebp - 8], 0xc72eaa80
add dword [ebp - 8], 0x38d15580
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xaf1c2c9e
sub dword [ebp - 0x14], 0x3aa9c348
mov dword [ebp - 0x10], 0xd4584140
add dword [ebp - 0x10], 0x6d142035
mov dword [ebp - 0xc], 0x73b1b03b
sub dword [ebp - 0xc], 0x104243cf
mov dword [ebp - 8], 0x2d629a16
sub dword [ebp - 8], 0x2d629a16
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x1f5b098d
sub eax, 0x1f17469d
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x451b6
push 0
call eax
mov ecx, 0xb7e220a5
sub ecx, 0xb7e1dbdd
xor esi, esi
add esi, eax
mov edi, 0x475600
add edi, dword [ebp - 4]
mov edx, 0x1e30f26e
sub edx, 0xe01bf261
mov ebx, dword [edi]
xor ebx, edx
mov dword [esi], ebx
add esi, 0x815026b0
add esi, 0x7eafd954
add edi, 0x396010cc
add edi, 0xc69fef38
loop 0x40e79d
add eax, 0x3ad93b75
add eax, 0xc527ca7e
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8
Function at 0x100025a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1006bde9
call fcn.1006b65d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and dword [ebp - 0x428], 0
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
and dword [ebp - 4], 0
and dword [ebp - 0x430], 0
and dword [ebp - 0x418], 0
mov dword [ebp - 0x42c], ecx
push 0x60
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10006532
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10002622
push 2
mov ecx, esi
call fcn.10006532
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10002622
call fcn.10001cd6
mov esi, eax
jmp 0x10002727
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10002645
call fcn.10001cd6
jmp 0x1000271a
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000263b
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10002678
mov esi, 0x8007000e
jmp 0x1000271c
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
test edx, edx
ja 0x10002755
jb 0x10002693
cmp eax, 0xffffffff
ja 0x10002755
cmp eax, 0x400
jbe 0x100026a8
push eax
lea ecx, [ebp - 0x418]
call fcn.10019180
jmp 0x100026c8
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x100026c8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x1000266e
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000263b
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.10019180
mov esi, eax
test edi, edi
je 0x10002727
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10002740
lea ecx, [ebp - 0x418]
call fcn.10005d95
lea ecx, [ebp - 0x428]
call fcn.10005af7
mov eax, esi
call fcn.1006b5ae
ret 0x10
push 0x80070216
call fcn.10019180
int3
Function at 0x1000a082
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc0
mov eax, 0x1006c454
call fcn.1006b5ef
mov eax, dword [ebp - 0xc8]
xor ebx, ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc8], 0x1009c058
mov dword [0x1009c058], ebx
mov dword [0x1009c05c], ebx
mov dword [0x1009c060], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], ebx
push eax
inc ecx
push ecx
push ebx
push str.Control_PanelInternational
push SysReAllocString
mov dword [ebp - 0xcc], ecx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a1f9
mov edi, dword [sym.imp.advapi32.dll_RegGetValueW]
lea eax, [ebp - 0xc0]
push eax
push ebx
push ebx
push 0x20000020
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
mov dword [ebp - 0xc0], ebx
call edi
test eax, eax
jne 0x1000a1ed
cmp dword [ebp - 0xc0], 3
jbe 0x1000a1ed
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1000a1ed
lea eax, [ebp - 0xc0]
push eax
push esi
push ebx
push 0x20
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
call edi
test eax, eax
jne 0x1000a1e5
mov ebx, dword [ebp - 0xc0]
cmp ebx, 3
jbe 0x1000a1e5
xor edx, edx
shr ebx, 1
push edx
pop ecx
mov eax, edx
mov edi, edx
mov word [esi + ebx*2 - 2], cx
je 0x1000a1e5
jmp 0x1000a190
cmp eax, ebx
jae 0x1000a196
inc eax
cmp word [esi + eax*2], dx
je 0x1000a18b
cmp word [esi + edi*2], dx
jne 0x1000a1e0
cmp edi, eax
jbe 0x1000a1e0
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [ebp - 0xbc], cx
lea ecx, [ebp - 0xbc]
push 0x55
push ecx
push eax
call dword [sym.imp.kernel32.dll_ResolveLocaleName]
test eax, eax
je 0x1000a1db
cmp word [ebp - 0xbc], 0
je 0x1000a1db
lea eax, [ebp - 0xbc]
mov ecx, 0x1009c058
push eax
call fcn.10019180
lea eax, [edi + 1]
xor edx, edx
inc edi
cmp edi, ebx
jb 0x1000a190
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 0xc4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x1009c058
call fcn.1006b5a1
ret 4

Function at 0x1001224d
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x10012267
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1001225a
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1001512f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10015171
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
je 0x10015171
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x10015171
cmp word [eax + 2], 0
je 0x10015171
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x10015171
add eax, 0x30
jmp 0x10015176
mov eax, 0x10073710
pop edi
pop esi
ret
Function at 0x10019180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1001918f
pop dword [ebp - 0x1c]
mov eax, 0xbb1c234f
sub eax, 0xab1a91c0
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xfc39e7e4
add dword [ebp - 0x2c], 0x52185d67
mov dword [ebp - 0x28], 0xd3781a8b
add dword [ebp - 0x28], 0x5ebb31ba
mov dword [ebp - 0x24], 0x6fbe1935
add dword [ebp - 0x24], 0xdc8e2af9
mov dword [ebp - 0x20], 0x59e989c8
add dword [ebp - 0x20], 0xa6167638
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xf607b638
add eax, 0x19ff4c48
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x4f29722b
sub dword [ebp - 0x2c], 0xdab708d5
mov dword [ebp - 0x28], 0xdac7c6b7
add dword [ebp - 0x28], 0x66a49abe
mov dword [ebp - 0x24], 0x7698201a
sub dword [ebp - 0x24], 0x1328b3ae
mov dword [ebp - 0x20], 0x2de5fc9
sub dword [ebp - 0x20], 0x2de5fc9
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x18a98c65
add eax, 0xf75d760f
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x4e0db
push 0
call eax
mov ecx, 0x857b1f00
sub ecx, 0x857ad7b7
xor edi, edi
add edi, eax
mov ebx, 0xb91d06c
sub ebx, 0xfb870c6c
add ebx, dword [ebp - 0x1c]
mov esi, 0x30b0b54e
sub esi, 0xe32471c1
add dword [ebp - 8], 0xd536561
mov edx, dword [ebx]
xor dword [ebp - 0x10], esi
sub edx, esi
add dword [ebp - 0x10], ecx
mov dword [edi], edx
xor dword [ebp - 0x10], esi
add edi, 0x967c2921
add edi, 0x6983d6e3
add ebx, 0x28c8b7c
sub ebx, 0x28c8b78
loop 0x100192b3
add eax, 0x92c41a54
sub eax, 0x92c30a5d
mov ebx, eax
add eax, 0x1e73bc3c
add eax, 0xe18c43c9
mov ecx, 0x1c6bfb09
add ecx, 0xf39404f7
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x1001e503
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1001e50f
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x1001e537
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1001e51d
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10047d0b
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1c
test byte [0x1009b9c0], 0x20
push esi
push edi
mov esi, ecx
je 0x10047d40
push dword [ebx + 0xc]
mov edx, 0x10089d30
push dword [ebx + 8]
call fcn.10019180
mov eax, dword [0x10097054]
mov ecx, 0x10097054
push 0x1c135e
call dword [eax + 4]
lea eax, [esi + 8]
mov ecx, dword [eax]
mov esi, ecx
mov edi, dword [eax + 4]
mov edx, edi
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0xc
dec eax
mov dword [ebp - 0x10], esi
shl eax, 0xc
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
mov eax, esi
mov esi, dword [ebp - 4]
push ebx
mov ebx, ecx
mov ecx, edi
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, dword [ebp - 0x10]
jne 0x10047d90
cmp ecx, edi
je 0x10047dc0
mov esi, eax
mov dword [ebp - 0x10], ecx
shr esi, 0xc
mov edi, eax
dec esi
mov edx, ecx
shl esi, 0xc
xor esi, eax
and esi, 0x7f000
xor esi, eax
push ebx
mov ebx, esi
mov esi, dword [ebp - 4]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, edi
jne 0x10047d90
cmp ecx, dword [ebp - 0x10]
jne 0x10047d90
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc