joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c80b6a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6c80b823
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x6c80b81b
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x6c80b6fc
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x6c80b6fc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x6c80b70f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x6c80b7f0
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x6c80b7e2
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x6c80b7db
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x6c80b766
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x6c80b7af
mov eax, 1
cmp eax, ecx
ja 0x6c80b79d
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.6c81a520
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x6c80b7d6
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x6c80b7a2
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x6c80b76b
call fcn.6c81a4c0
xor eax, eax
call fcn.6c81a4b0
call fcn.6c81a520
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x6c80b816
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x6c80b7e7
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x6c80b714
call fcn.6c81a4c0
xor eax, eax
call fcn.6c81a4b0
nop
call fcn.6c819000
jmp fcn.6c80b6a0
Function at 0x6c812cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6c812d5f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.6c81a5f7
lea ecx, [0x6c812d70]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.6c818ef0
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.6c819000
jmp fcn.6c812cc0
Function at 0x6c81a2c0
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 [0x6c9404c0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x6c818aab
je 0x6c818afe
cmp ebx, 0x20
jbe 0x6c818b04
cmp ebx, 0x40
jbe 0x6c818b4a
jmp 0x6c818beb
test ebx, ebx
je 0x6c818af4
add eax, 0x10
test ax, 0xff0
je 0x6c818ae0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x6c8b3080]
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 + 0x6c8b3180]
jmp 0x6c818ac8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x6c818ac8
pxor xmm1, xmmword [0x6c9404d0]
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 [0x6c9404d0]
pxor xmm2, xmmword [0x6c9404e0]
pxor xmm3, xmmword [0x6c9404f0]
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 [0x6c9404d0]
pxor xmm2, xmmword [0x6c9404e0]
pxor xmm3, xmmword [0x6c9404f0]
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 0x6c818c4a
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 [0x6c94020c], 0
je 0x6c81a2da
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x6c818a70
jmp fcn.6c7c8040
Function at 0x6c81a2e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6c7c2a7e
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.6c7c8040
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.6c819000
jmp 0x6c7c2a40
cmp byte [0x6c94020c], 0
je 0x6c81a2fb
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x6c818a70
jmp 0x6c7c2a40
Function at 0x6c860590
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
sub esp, 0x10
mov dword [0x6c945610], eax
test eax, eax
je 0x6c8605d8
mov dword [esp], 0x6c945614
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
add esp, 0x1c
ret
mov dword [esp], 2
call dword [0x6c8781bc]
mov dword [esp + 8], 0x3d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.runtime:_failed_to_create_runtime_initialization_wait_event._n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6c860cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6c945998]
test esi, esi
jle 0x6c860e00
mov edi, dword [0x6c94599c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6c860d24
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6c860da5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x6c860d10
mov dword [esp], eax
mov ebx, eax
call fcn.6c861440
test eax, eax
mov edi, eax
je 0x6c860e27
mov eax, dword [0x6c94599c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6c861540
add eax, dword [edi + 0xc]
mov edx, dword [0x6c94599c]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6c860e07
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6c860d9e
sub eax, 4
and eax, 0xfffffffb
jne 0x6c860db0
add dword [0x6c945998], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x6c94599c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6c860d9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6c861a08
lea esi, [esi]
xor esi, esi
jmp 0x6c860d2e
mov eax, dword [0x6c94599c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6c861a08
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6c861a08
lea esi, [esi]
nop
Function at 0x6c8610c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6c9459a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6c9459a0]
sub esp, 4
test ebx, ebx
je 0x6c861115
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6c86110e
test esi, esi
je 0x6c86110e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6c8610f0
mov dword [esp], 0x6c9459a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6c861a08
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6c8619e0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6c8619e0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp fcn.6c7c13e0
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1194642d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x11917d7e
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x10002e00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0
call ebp
push 0
call ebp
mov esi, dword [esp + 0x28]
push 0
mov edi, dword [esi + 4]
mov dword [esp + 0x18], edi
call ebp
push 0
call ebp
mov eax, dword [esi]
xor ecx, ecx
push 0
mov cx, word [eax + 0x14]
lea ebx, [ecx + eax + 0x18]
call ebp
mov edx, dword [esi]
mov dword [esp + 0x10], 0
cmp word [edx + 6], 0
jbe 0x10002efb
add ebx, 0x10
jmp 0x10002e56
mov edi, dword [esp + 0x14]
cmp dword [ebx], 0
jne 0x10002e9b
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x10002edb
mov ecx, dword [ebx - 4]
push 4
push 0x1000
add ecx, edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov edi, eax
call ebp
push 0
mov dword [ebx - 8], edi
call ebp
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10002edb
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [ebx + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx]
add esi, edx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x1c], eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov eax, dword [esp + 0x18]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x10002e52
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10002f10
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0
call ebx
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 8], 0
mov eax, dword [eax]
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x10003082
push ebp
push edi
add esi, 0x24
push 0
call ebx
mov edi, dword [esi]
push 0
shr edi, 0x1d
and edi, 1
call ebx
mov ebp, dword [esi]
push 0
shr ebp, 0x1e
and ebp, 1
call ebx
mov eax, dword [esi]
push 0
shr eax, 0x1f
mov dword [esp + 0x18], eax
call ebx
test dword [esi], 0x2000000
je 0x10002f90
mov edx, dword [esi - 0x14]
mov eax, dword [esi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000305c
mov edx, dword [esp + 0x14]
lea ecx, [ebp + edi*2]
push 0
lea eax, [edx + ecx*2]
mov ebp, dword [eax*4 + 0x10098c18]
call ebx
test dword [esi], 0x4000000
je 0x10002fb4
or ebp, 0x200
mov edi, dword [esi - 0x14]
push 0
call ebx
test edi, edi
jne 0x10002fe7
mov eax, dword [esi]
test al, 0x40
je 0x10002fd4
mov ecx, dword [esp + 0x30]
push 0
mov edx, dword [ecx]
mov edi, dword [edx + 0x20]
call ebx
jmp 0x10002fe5
test al, 0x80
je 0x10003060
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edi, dword [ecx + 0x24]
test edi, edi
jbe 0x10003060
lea edx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x56
push edx
push str.KERNEL32.dll
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], 0x74
mov byte [esp + 0x28], 0x75
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], 0x6c
mov byte [esp + 0x2b], 0x50
mov byte [esp + 0x2c], 0x72
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2e], 0x74
mov byte [esp + 0x2f], 0x65
mov byte [esp + 0x30], 0x63
mov byte [esp + 0x31], 0x74
mov byte [esp + 0x32], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi - 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebp
push edi
push edx
call eax
test eax, eax
jne 0x10003060
push 0
call ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x10002f47
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x10003d60
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10c
push esi
push edi
push 0
call sub.MFC42.DLL_AfxEnableControlContainer
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x10098c64
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
jne 0x10003dbc
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 8], 0x4d
mov byte [esp + 9], 0x61
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0
lea edx, [esp + 8]
push edx
call fcn.10003960
add esp, 4
push 0x36ee80
call esi
jmp 0x10003ddb
Function at 0x10002d10
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x10002d32
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
push 0x10002550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret 0xc
Function at 0x10010911
Capabilities:
Parse pe header

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

Function at 0x100156fd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025fd8
push 0x10025fd0
push str.FlsAlloc
push 0x1f
call fcn.10015568
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015731
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002215c]
call esi
jmp 0x10015737
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001577b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025fe8
push 0x10025fe0
push str.FlsGetValue
push 0x21
call fcn.10015568
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100157b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002215c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100157ba
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025ff0
push 0x10025fe8
push str.FlsSetValue
push 0x22
call fcn.10015568
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100157f4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002215c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017e57
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 0x10017ef4
push ebx
push esi
call fcn.10017e20
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.10016bf5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017ea1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017ef3
push edi
push eax
call fcn.100135d3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017ec1
call fcn.10013599
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017ef2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10016bf5
add esp, 0x20
test eax, eax
jne 0x10017ee0
push edi
call fcn.10013599
jmp 0x10017ee8
push ebx
call fcn.10013599
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 0x1001a7cb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10011be9
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 0x1001a83a
cmp esi, dword [ebp - 4]
je 0x1001a835
cmp dword [ebp + 0xc], 0
je 0x1001a835
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001a812
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001a31d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001a83c
xor eax, eax
inc eax
jmp 0x1001a83c
xor eax, eax
pop edi
pop esi
leave
ret