joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4af12b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4af14f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4af16a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4b37d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b3808
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b27d4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b27ab
jmp 0x4b3814
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b5116
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b5158
call fcn.004c4fdb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4b5158
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b514f
xor eax, eax
jmp 0x4b5160
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b5166
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bc6d7
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4ce0bc
call fcn.004971a8
push ecx
push ecx
push esi
push 0x10
call fcn.004b28ea
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4bc724
mov ecx, esi
call fcn.004b7903
mov eax, dword [0x503908]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004b24ad
jmp 0x4bc726
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4ebc30
push eax
mov dword [ebp - 0x10], esi
call fcn.004987fc
pop esi
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001aa0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x10049930], eax
test eax, eax
je 0x10001b95
mov esi, dword [section..data]
cmp byte [ebp + 8], 0
push 0
cmovne esi, dword [str.api.tacocomfort.com]
push 0
push 3
push 0
push 0
push 0x50
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [0x10049934], eax
test eax, eax
je 0x10001b95
push esi
push str.Host:__s
push 0x200
push 0x10049f40
mov byte [0x10049f40], 0
call fcn.10001080
push str.Content_Type:_application_x_www_form_urlencoded
push 0x200
push 0x10049f40
call fcn.100010b0
push str.Connection:_keep_alive
push 0x200
push 0x10049f40
call fcn.100010b0
push str.Cache_Control:_no_cache
push 0x200
push 0x10049f40
call fcn.100010b0
push str.Accept:__
push 0x200
push 0x10049f40
call fcn.100010b0
add esp, 0x40
push str.User_Agent:_HVACS
push 0x200
push 0x10049f40
call fcn.100010b0
mov ecx, 0x10049f40
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001b81
sub ecx, edx
mov al, 1
mov dword [0x1004993c], ecx
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
pop ebp
ret
Function at 0x1000fe55
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 0x1000fef2
push ebx
push esi
call fcn.1000fe1e
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.1000fd67
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000fe9f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000fef1
push edi
push eax
call fcn.1000d47b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000febf
call fcn.1000d441
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000fef0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000fd67
add esp, 0x20
test eax, eax
jne 0x1000fede
push edi
call fcn.1000d441
jmp 0x1000fee6
push ebx
call fcn.1000d441
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 0x1001015d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001b008
push 0x1001b000
push str.FlsAlloc
push 0x1e
call fcn.1001007b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010191
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001812c]
call esi
jmp 0x10010197
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100101db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001b018
push 0x1001b010
push str.FlsGetValue
push 0x20
call fcn.1001007b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010212
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001812c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10017100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001712d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001712d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100012f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x1000efb8
call fcn.1000eecd
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [edi], ebx
cmp dword [ebp + 0xc], ebx
je 0x1000131f
mov eax, 0x80040110
jmp 0x100014e8
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.10005fd0
test eax, eax
je 0x1000134d
mov eax, 0x80040112
jmp 0x100014e8
mov edx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [edx + ecx*4 + 8]
mov esi, 0x10010874
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x21c]
jne 0x10001499
inc ecx
cmp ecx, 4
jne 0x10001352
call fcn.10005fd0
test eax, eax
je 0x100014e3
push 4
mov ecx, ebx
pop edx
mov eax, dword [esi + ecx*4]
mov esi, 0x10010884
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x21c]
jne 0x100013f1
inc ecx
cmp ecx, edx
jne 0x10001382
mov ecx, dword [0x1001640c]
test ecx, ecx
jne 0x100013e5
push 0x10
pop ecx
call fcn.10001222
mov ecx, eax
mov dword [ebp - 0x220], ecx
test ecx, ecx
je 0x100013cf
inc dword [0x10016410]
mov dword [ecx], vtable.CShellExtension.0
mov byte [ecx + 4], bl
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
jmp 0x100013d1
mov ecx, ebx
mov dword [0x1001640c], ecx
test ecx, ecx
jne 0x100013e5
mov eax, 0x8007000e
jmp 0x100014e8
mov eax, dword [ecx]
push edi
push esi
push ecx
call dword [eax]
jmp 0x100014e8
mov ecx, ebx
mov eax, dword [esi + ecx*4]
mov esi, 0x1001034c
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x21c]
jne 0x100014e3
inc ecx
cmp ecx, edx
jne 0x100013f3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], ebx
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x224], edx
push eax
lea eax, [ebp - 0x228]
mov esi, ebx
push eax
push str.ShowCacheFolder
push str.SoftwareMicrosoftOffice16.0MS_Project
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x1000145a
cmp dword [ebp - 0x22c], eax
sete al
mov dword [ebp - 0x220], eax
mov esi, eax
push 0x58
pop ecx
call fcn.10001222
mov dword [ebp - 0x220], eax
test eax, eax
je 0x10001479
lea ecx, [esi + 1]
push ecx
mov ecx, eax
call fcn.10005fd0
mov ebx, eax
test ebx, ebx
je 0x100013db
push edi
push dword [ebp - 0x21c]
mov eax, dword [ebx]
push ebx
call dword [eax]
mov ecx, dword [ebx]
mov esi, eax
push ebx
call dword [ecx + 8]
mov eax, esi
jmp 0x100014e8
mov ecx, ebx
mov eax, dword [edx + ecx*4 + 8]
mov esi, 0x10010b2c
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x21c]
jne 0x100014e3
inc ecx
cmp ecx, 4
jne 0x1000149b
push 0x4c
pop ecx
call fcn.10001222
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x100014d3
mov ecx, eax
call fcn.10007cce
mov ebx, eax
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100013db
push edi
push esi
jmp 0x10001488
mov eax, 0x80004002
call fcn.1000ee8c
ret 0x10
Function at 0x10005fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10005fdf
pop dword [ebp - 0x20]
mov eax, 0x21c90448
sub eax, 0x11c8a469
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x4a3f0278
sub dword [ebp - 0x30], 0xfbecbd2d
mov dword [ebp - 0x2c], 0xa47a96ab
add dword [ebp - 0x2c], 0x8db8b59a
mov dword [ebp - 0x28], 0xcadc9e84
sub dword [ebp - 0x28], 0x7e905a56
mov dword [ebp - 0x24], 0x87c9fd1d
sub dword [ebp - 0x24], 0x87c9fd1d
lea eax, [ebp - 0x30]
push eax
mov eax, 0x7666d2b2
add eax, 0x999a2d56
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2e8d0480
add dword [ebp - 0x30], 0x45e564d6
mov dword [ebp - 0x2c], 0xf93d814e
add dword [ebp - 0x2c], 0x482ee027
mov dword [ebp - 0x28], 0x17c063d3
sub dword [ebp - 0x28], 0xb450f767
mov dword [ebp - 0x24], 0x24846f22
add dword [ebp - 0x24], 0xdb7b90de
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x9c8f0aa8
add eax, 0x7371f574
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38109
push 0
call eax
mov ecx, 0x456d
xor ebx, ebx
add ebx, eax
mov esi, 0x10044600
add esi, dword [ebp - 0x20]
mov edi, 0xf6378391
sub edi, 0x29a001fe
xor dword [ebp - 0xc], ebx
mov edx, dword [esi]
xor dword [ebp - 4], 0x24ecb2e2
add edx, edi
add dword [ebp - 0xc], 0x467a7b5e
mov dword [ebx], edx
xor dword [ebp - 0x1c], ecx
add ebx, 0x9638f49
sub ebx, 0x9638f45
add esi, 0x108a679a
sub esi, 0x108a6796
loop 0x100060f7
add eax, 0xc41be6ee
sub eax, 0xc41ade67
xor ebx, ebx
add ebx, eax
add eax, 0x4c51caaa
add eax, 0xb3ae355b
mov ecx, 0xca14ba52
add ecx, 0x45eb45ae
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10009a7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x100150e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0xdc], eax
or edi, 0xffffffff
mov eax, dword [ecx + 0x20]
xor ebx, ebx
mov dword [ebp - 0xd4], 0x64
test eax, eax
je 0x10009ab8
mov edx, dword [eax]
jmp 0x10009aba
mov edx, ebx
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.10005fd0
mov esi, eax
test esi, esi
js 0x10009b9a
lea eax, [ebp - 0xd8]
push eax
push 0x20019
push ebx
push str.MSProject.ApplicationCurVer
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009b93
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xd0]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009b93
push 0x16
lea eax, [ebp - 0xd0]
push str.MSProject.Application.
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10009b93
mov eax, dword [ebp - 0xa4]
push 0x30
pop ecx
cmp ax, cx
jbe 0x10009b93
cmp ax, 0x39
ja 0x10009b93
movzx edi, ax
mov eax, dword [ebp - 0xa2]
sub edi, ecx
push 0x17
pop ebx
test ax, ax
je 0x10009b7f
movzx edx, ax
lea eax, [edx - 0x30]
cmp ax, 9
ja 0x10009b7f
imul ecx, edi, 0xa
movzx edi, dx
movzx edx, word [ebp + ebx*2 - 0xce]
add edi, 0xffffffd0
add edi, ecx
inc ebx
test dx, dx
jne 0x10009b5d
xor ecx, ecx
mov eax, 0x80004005
cmp word [ebp + ebx*2 - 0xd0], cx
cmovne esi, eax
jmp 0x10009b98
mov esi, 0x80004005
test esi, esi
mov eax, dword [ebp - 0xdc]
cmovns esi, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
call fcn.10001171
leave
ret 8

Function at 0x1000bc9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.1000ee3e
mov eax, dword [0x100150e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, 0x1048
mov esi, dword [eax]
lea eax, [ebp - 0x104c]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1050], edi
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1054]
push eax
push 0
push str.Path
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
pop edi
pop esi
test ecx, ecx
jne 0x1000bd10
lea eax, [ebp - 0x104c]
push eax
call fcn.10007b7d
jmp 0x1000bd1d
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001171
leave
ret 4
Function at 0x401220
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc27160]
mov ecx, dword [0xc260b4]
shr eax, 3
sub esp, 0x81c
test eax, eax
jbe 0x401310
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0xc27160], 0x959
jne 0x4012f6
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push str.ducofikinevodugucexejayeyide_jofubupazekatajikuwayoj
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
lea eax, [ebp - 0x81c]
push eax
push 0
push str.lebogegimoramigefunolerulodidi_peyewuvuhicucalikid_suyucedizejabije
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0
push 0
push 0
push str.laduvig_xupewufodarahut
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
push edx
call fcn.00401030
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x401260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f38
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45e008], 0x8088405
inc edx
mov dword [ebx + 0x45e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403428
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403408
xor eax, eax
push ebp
push 0x403401
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403444
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403408
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45e024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404148
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ef04c], 0
je 0x4041a9
cmp word [0x4ef220], 0xd7b2
jne 0x404171
cmp dword [0x4ef228], 0
jbe 0x404171
mov eax, 0x4ef21c
call dword [0x4ef238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e034], 0
jne 0x4041c5
push 0
push 0x45e068
push 0x45e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406198
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4061fe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040453c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f54
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406205
lea eax, [ebp - 0x10]
call fcn.004042cc
ret

Function at 0x40b4d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b509
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043bc
jmp 0x40b512
mov eax, ebx
mov edx, esi
call fcn.00404320
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b51c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b53d
mov al, byte [esp]
jmp 0x40b53f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bbd4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba3c
mov eax, dword [0x4ee0c8]
cmp byte [eax], 0
je 0x40bc50
mov eax, dword [0x4edec8]
call fcn.00402da4
call fcn.00402c14
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408c08
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bc98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ede78]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ef668]
call fcn.00405604
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret