joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4440e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45c06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040e289
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040c5cc
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410d17
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4347af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434625
Function at 0x40605a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40607e
xor eax, eax
test eax, eax
je 0x406090
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406090
xor ecx, ecx
jmp 0x406093
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40613d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdfc], 0
push esi
jne 0x406174
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40614e
mov dword [ecx*4 + 0x42bdf8], eax
inc ecx
cmp ecx, 0x100
jl 0x406149
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4061a5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdf8]
xor eax, esi
inc ecx
dec edx
jne 0x406187
pop edi
not eax
pop esi
ret 0xc

Function at 0x16a4ad4
Capabilities:
Encode data using xor

Disassembly:
push 0x32
inc ebp
xchg ebx, eax
lodsb al, byte [esi]
xor eax, 0x722a73a1
adc al, 0x51
insd dword es:[edi], dx
pop ds
mov bh, byte [esi + ecx*4 + 0x1349860b]
invalid
mov esp, 0x49860b8e
adc ecx, dword [edi + edi*8 - 0x1c3e581e]
push esi
cmpsd dword [esi], dword es:[edi]
shr dword [edi], 1
lahf
jne 0x16a4a57
cld
cmp dword [ebp - 0x37], 0xffffff83
push edi
out dx, eax
cmc
in eax, 0xbb
mov al, byte [0xc77f7a75]
in eax, dx
push ecx
mov bl, 0xda
mov byte [0x2dc6dc46], al
invalid
iretd
jg 0x16a4a67
das
or dl, byte [esi + edx*4]
jmp 0x16a4ade
pushal
call 0x16a4ae4
pop ebp
sub ebp, 0x10
sub ebp, 0x12a4ad4
jmp 0x16a4afa
mov eax, 0x12a4ad4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a0
mov edx, 0xe837f02c
xor byte [eax], dl
inc eax
dec ecx
jne 0x16a4b11
jmp 0x16a4b24
cmpsd dword [esi], dword es:[edi]
loope 0x16a4ace
movsd dword es:[edi], dword [esi]
adc byte [esp + ebp], ch
sub al, 0xad
in eax, dx
aam 0x2c
sub al, 0x2c
das
loope 0x16a4ac9
and eax, 0x962c2c2c
add al, 0x2c
sub al, 0x2c
fcmovne st(0), st(6)
das
in al, 0xa7
lodsd eax, dword [esi]
and byte [esp + ebp], ch
sub al, 0x2f
jmp 0xd17293ef
Function at 0x1017729e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101806e8], 0
mov byte [0x101806ec], 0
mov dword [0x101806e0], 0x33f9
mov dword [0x101806dc], 0x9a0
mov dword [0x101806e4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101772f7
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101806e4]
add eax, 1
mov dword [0x101806e4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101772f7
xor eax, eax
mov dword [0x101806e0], 0x1f91
mov dword [0x101806e4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101806f0], 0
mov dword [0x101806dc], 0x2391
mov edx, dword [0x101806e8]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101806f0], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x101806e8], edx
mov dword [0x101806dc], 0x1197
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101806ec], cl
mov dword [0x101806dc], 0xd5c
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x101806ec]
mov edx, dword [0x101806e8]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x101806dc], 0xcb9
mov edx, dword [0x101806e4]
add edx, 1
mov dword [0x101806e4], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10177336
jmp 0x101772ef
Function at 0x1017740b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
mov ecx, dword [0x101806e0]
add ecx, 0xffffe38f
mov dword [0x101806dc], ecx
mov dword [ebp - 0x130], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jmp 0x10177444
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..code
imul esi, eax, 0x68
mov edi, edx
add edi, esi
add edi, 0x18
mov esi, dword [edi]
imul edi, eax, 0x68
add edx, edi
add edx, 4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0xfd
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10177444
lea eax, [0x10179045]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.1017803d
mov dword [0x101806dc], 0x846
call fcn.10178435
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.10176fce
mov dword [0x101806fc], eax
mov ecx, dword [0x101806dc]
add ecx, 0xfffff5c8
mov dword [0x101806e0], ecx
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x101806e0]
add edx, 0xffffe65e
mov dword [0x101806dc], edx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..code
imul esi, eax, 0x68
mov edi, edx
add edi, esi
add edi, 0x18
mov esi, dword [edi]
imul edi, eax, 0x68
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x68
add edx, ebx
add edx, 4
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.10177a46
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0xfd
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x10177552
lea eax, [0x10179053]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x101806dc], 0xede
mov dword [0x101806e0], 0x956
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1017729e
mov dword [0x101806dc], 0x1f08
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.10177cfc
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x30eaa
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [0x101806e0], 0xe1f
mov dword [edx + 4], 0x136200
mov ecx, dword [ebp - 0x148]
add ecx, 0x24af2
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2010
mov ecx, dword [0x101806e0]
add ecx, 0xfffff859
mov dword [0x101806dc], ecx
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10177787
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [0x101806e0], 0x1825
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101806dc], 0x262b
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x10177816
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff5
mov dword [0x101806dc], 0xffffde32
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0x61
je 0x101778da
jmp 0x10177910
mov dword [0x101806dc], 0x35
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10177854
jmp 0x10177910
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x101778b8
jmp 0x10177893
mov dword [0x101806dc], 0xffffe703
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101777c8
jmp 0x10177910
mov eax, 0x1438
mov ecx, 1
mov dword [0x101806dc], 0x166f
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jne 0x10177910
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [0x101806dc], ecx
add esp, 0x2c
pop esi
pop ebp
ret
mov dword [0x101806e0], 0x2454
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], eax
jl 0x10177816
mov eax, dword [ebp - 0x24]
mov dword [0x101806dc], 0xca2
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x10177832
jmp 0x10177910
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10177910
mov dword [0x101806dc], 0xb28
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x2e], dx
mov ax, word [ebp - 0x2e]
cmp ax, 0x64
je 0x101777f8
mov eax, 0x1f59
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x10177881
Function at 0x10177acf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.10176e6b
xor ecx, ecx
mov edx, eax
mov dword [0x101806e0], 0x11a4
mov esi, dword [eax + 0x3c]
mov dword [0x101806dc], 0x828
mov esi, dword [eax + esi + 0x78]
mov dword [0x101806e0], 0x1376
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101806dc], 0x4d3
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x10177bda
jmp 0x10177bc6
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101806e0], 0x14e4
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x101806dc], 0x674
mov dword [ebp - 0x24], edx
jmp 0x10177bda
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], ecx
jb 0x10177be5
jmp 0x10177bda
mov al, byte [ebp - 0x39]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x41]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x48], edx
jne 0x10177bff
jmp 0x10177c2c
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jmp 0x10177be5
mov eax, dword [ebp - 0x24]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x39], bh
mov byte [ebp - 0x41], cl
jne 0x10177b9b
mov al, byte [ebp - 0x41]
test al, 1
jne 0x10177b3f
jmp 0x10177b70
Function at 0x10177cfc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x101806e0]
mov dword [0x101806e4], 0
mov dword [0x101806e8], 0
mov dword [0x101806f4], 0
mov dword [ebp - 0x10], eax
mov eax, ebx
add eax, 0xfffff40b
mov dword [0x101806dc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10177e97
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, 0x100
mov ebx, eax
add ebx, 1
mov dword [ebp - 0x38], eax
mov eax, edx
add eax, 0xffffe8d2
add edx, 0xffffff04
add esi, 1
mov dword [ebp - 0x3c], eax
mov eax, esi
mov dword [ebp - 0x40], edx
cdq
idiv edi
mov dword [0x101806e4], edx
mov esi, dword [ebp - 0x2c]
movzx esi, byte [esi + edx]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x44], edx
cdq
idiv edi
mov dword [0x101806e8], edx
mov ecx, dword [ebp - 0x40]
mov dword [0x101806e0], ecx
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x44]
mov cl, byte [ecx + esi]
mov byte [0x101806ec], cl
mov edi, dword [ebp - 0x3c]
mov dword [0x101806dc], edi
mov edi, dword [ebp - 0x2c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101806ec]
mov edx, dword [0x101806e8]
mov byte [edi + edx], cl
mov dword [0x101806dc], 0xfea
mov edx, dword [0x101806e4]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101806e8]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101806f4], ecx
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov ch, byte [edx + esi]
mov dword [0x101806e0], 0xd1
xor ch, cl
mov byte [0x101806f8], ch
mov dword [0x101806dc], 0x538
mov edx, dword [ebp - 0x28]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x48], ebx
je 0x10177e8f
mov eax, dword [0x101806e8]
mov ecx, dword [0x101806e4]
mov edx, dword [0x101806dc]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], esi
jmp 0x10177d76
mov eax, dword [0x101806e0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add eax, 0xffffefe2
mov dword [0x101806dc], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10177eac
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x101806e0], 0xa89
mov edx, dword [0x101806dc]
add edx, 0xbf9
mov dword [0x101806dc], edx
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.1017740b
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x84], edx
mov dword [esp + 0x44], 0x136200
mov edx, dword [0x101806c8]
mov dword [esp + 0x68], edx
mov edx, dword [0x101806cc]
mov dword [esp + 0x50], edx
mov edx, dword [0x101806d0]
add ecx, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
lea eax, [0x1017810d]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ecx], edx
mov esi, dword [0x101806d4]
mov dword [esp + 0x6c], esi
mov esi, dword [0x101806d8]
mov dword [esp + 0x58], esi
mov dword [0x101806e0], 0x2bd
mov dword [0x101806dc], 0xfffff059
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x10177f8b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], ecx
je 0x10177fb1
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
and eax, 0xfffff000
mov dword [0x101806e0], 0xfde
mov dword [esp + 0x1c], eax
jmp 0x10177f68
mov eax, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov dword [0x101806dc], 0x828
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x64], edx
mov dword [0x101806e0], 0x1419
call fcn.10177787
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x10178033
lea eax, [esp + 0x40]
mov dword [0x101806dc], 0xa5a
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10178174
mov dword [0x101806dc], 0x1f96
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x101806e0], 0x2262
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10178174
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x10179045]
mov esi, 0xe
lea edi, [ebp - 0x2c]
mov ebx, dword [0x101806dc]
add ebx, 0xfffff1bd
mov dword [0x101806dc], ebx
mov dword [0x101806e0], 0x1ac5
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
call fcn.1017803d
call fcn.10178435
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.10176fce
xor ecx, ecx
mov edx, dword [0x101806e0]
add edx, 0xffffe3d9
mov dword [0x101806dc], edx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
je 0x101782c0
mov eax, dword [ebp - 0x40]
mov dword [0x101806e0], 0x1f5
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x101806e0]
add ecx, 0x121d
mov dword [0x101806dc], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], eax
call fcn.10177193
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x1c], ecx
mov dword [0x101806dc], 0xb6b
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x4c], ecx
mov dword [0x101806e0], 0x1691
cmp ecx, 0
mov dword [ebp - 0x44], eax
je 0x101782c0
mov eax, dword [ebp - 0x48]
add eax, 0x100f
mov dword [ebp - 0x4c], eax
mov dword [0x101806dc], 0xffffedf9
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402918
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x43b03c], 0x8088405
inc edx
mov dword [0x43b03c], edx
mul edx
mov eax, edx
ret

Function at 0x402a4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ae4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ac4
xor eax, eax
push ebp
push 0x402abd
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 0x402b00
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 0x402ac4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404310
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4044ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043c0
xor eax, eax
push ebp
push 0x4043b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4043a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4044cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4044a1
cmp byte [ebp - 0xd], 0
jne 0x404402
cmp byte [ebp - 0x12], 0
je 0x4044a1
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40441b
dec ebx
cmp byte [ebx], 0x2e
je 0x40442a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40441a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4044a1
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404457
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4044a1
cmp byte [ebp - 0xd], 0
je 0x4044a1
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4044a1
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40712c
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 0x407165
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403714
jmp 0x40716e
mov eax, ebx
mov edx, esi
call fcn.004036c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4