joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006f340
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100890a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10163034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
lea edi, [esi + 0x44]
mov ebx, 4
nop dword [eax]
push 0x20
push edi
push dword [esi + 0xc4]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
push 0x20
push edi
push dword [esi + 0xc4]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
add edi, 0x20
sub ebx, 1
jne 0x1006f380
push 8
mov byte [esi + 0xde], bl
call fcn.10001eec
mov edi, eax
add esp, 4
test edi, edi
je 0x1006f3c7
mov dword [edi], esi
mov dword [edi + 4], 0x1006e2f0
jmp 0x1006f3c9
xor edi, edi
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10001578
mov dword [ebp - 0x34], 0x1014572c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
call fcn.100016ef
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1006f40b
push 8
push eax
call fcn.10001b8b
add esp, 8
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
push edi
mov byte [ebp - 4], 3
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
test eax, eax
je 0x1006f42b
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
add esp, 4
push edi
call sub.MSVCP140.dll__Mtx_destroy
push ebx
call sub.MSVCP140.dll__Cnd_destroy
add esp, 8
cmp dword [esi + 0xe4], 0
je 0x1006f449
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xe0], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xe4], eax
push dword [esi + 0xc4]
call dword [sym.imp.WINMM.dll_waveInStart]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10072b20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100893f3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10163034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ebp - 4], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x18], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x28], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp + 0x18]
lea edx, [ecx + 0x30]
mov byte [ebp - 4], 1
mov esi, dword [eax]
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov eax, esi
lea edi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10072be0
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
push esi
call fcn.100019f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10074680
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc eax
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10073e54
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10073e09
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10073e54
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10073e09
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
cld
invalid
jmp [edi - 0x3d77a3a]
invalid
invalid
out dx, al
invalid
test dword [esp + edi*8], edx
invalid

Function at 0x1007a470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp + 8], al
shr eax, 8
push 2
mov byte [ebp + 9], al
lea eax, [ebp + 8]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop ebp
ret

Function at 0x1007a4a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, ecx
push dword [ebp + 0xc]
shr eax, 8
mov byte [ebp + 9], al
mov eax, ecx
shr eax, 0x10
push 4
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov byte [ebp + 8], cl
shr ecx, 0x18
push 1
push eax
mov byte [ebp + 0xb], cl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop ebp
ret
Function at 0x1007d740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1038]
cmp ecx, 0xffffffff
je 0x1007d79e
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
add eax, edx
cmp edx, eax
jne 0x1007d79e
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x1000
lea edi, [esi + 0x38]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007d79d
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
add ecx, 0x38
add ecx, esi
mov dword [eax], edi
sub ecx, edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
pop edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esi + 0x2c]
pop esi
mov eax, dword [eax]
add eax, ecx
cmp ecx, eax
jne 0x1007d7b6
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
movzx eax, byte [ecx]
mov esp, ebp
pop ebp
ret
Function at 0x1007b500
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
mov esi, dword [0x10089fe4]
mov edi, esi
add edi, 0xffffe857
mov dword [0x10089fe4], edi
mov byte [ebp - 0x28], 0x56
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x75
mov byte [ebp - 0x23], 0x61
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x41
mov byte [ebp - 0x20], 0x6c
mov byte [ebp - 0x1f], 0x6c
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x63
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 9
add esi, 0xffffe664
mov dword [0x10089fe8], esi
mov dword [esp], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
call fcn.1007bda0
cmp eax, 0
mov dword [ebp - 0x34], eax
je 0x1007b61a
mov eax, dword [ebp - 0x34]
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 dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.1007a730
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x40], ecx
mov dword [0x10089fe4], 0x1533
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x48], ecx
add ecx, 0x178f
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x1007b610
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x48
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x48
pop esi
pop edi
pop ebp
ret
Function at 0x1007b9f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [0x10089fe4], 0xe55
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x10089fe8], 0xc8a
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x1007ba80
mov eax, 1
mov ecx, 0x936
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
je 0x1007bb2e
jmp 0x1007bb1a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1007bb1a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1007bad5
jmp 0x1007bb1a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x1007bab7
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [0x10089fe4], 0xece
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
jl 0x1007ba80
mov eax, dword [ebp - 0x28]
mov dword [0x10089fe8], 0x1363
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x1007ba59
jmp 0x1007bb1a
mov dword [0x10089fe4], 0x1201
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1007bb1a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1007bb1a
mov dword [0x10089fe8], 0xada
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1007ba31
xor eax, eax
mov ecx, dword [0x10089fe4]
add ecx, 0xffffe352
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [0x10089fe4], eax
mov eax, ecx
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x1007bda0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov eax, dword [ebp + 8]
mov cl, 0x6b
xor edx, edx
lea esi, [ebp - 0x4c]
lea edi, [ebp - 0x6c]
mov ebx, dword [0x10089fe4]
add ebx, 0xffffeb62
mov dword [0x10089fe8], ebx
mov byte [ebp - 0x6c], 0x6b
mov byte [ebp - 0x6b], 0x65
mov byte [ebp - 0x6a], 0x72
mov byte [ebp - 0x69], 0x6e
mov byte [ebp - 0x68], 0x65
mov byte [ebp - 0x67], 0x6c
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x32
mov byte [ebp - 0x64], 0x2e
mov byte [ebp - 0x63], 0x64
mov byte [ebp - 0x62], 0x6c
mov byte [ebp - 0x61], 0x6c
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 9
mov dword [0x10089fe4], 0x14ad
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], edi
mov byte [ebp - 0x75], cl
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov cl, byte [ebp - 0x75]
movsx edx, cl
mov si, dx
mov edx, eax
add edx, 1
mov word [ebp + eax*2 - 0x4c], si
mov cl, byte [ebp + eax - 0x6b]
cmp cl, 0
mov byte [ebp - 0x75], cl
mov dword [ebp - 0x80], edx
jne 0x1007be1c
xor eax, eax
lea ecx, [ebp - 0x4c]
mov dword [0x10089fe4], 0xf65
mov dword [0x10089fe8], 0x1523
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x84], eax
call fcn.1007a4d0
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
call fcn.10079aa0
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1007be90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10089fec], 0
mov dword [0x10089ff0], 0
mov dword [0x10089ffc], 0
mov dword [0x10089fe8], 0x1d61
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1007befe
jmp 0x1007beed
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x1007c020
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
jmp 0x1007bf0b
mov eax, dword [0x10089fe4]
mov dword [ebp - 0x24], eax
jmp 0x1007c020
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov esi, 0x100
add ecx, 1
mov dword [0x10089fe4], 0x1ef4
mov edi, edx
add edi, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10089fec], edx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x10089ff0], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x10089ff4], cl
mov dword [0x10089fe4], 0x2041
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10089ff4]
mov edx, dword [0x10089ff0]
mov byte [ebx + edx], cl
mov dword [0x10089fe4], 0x2000
mov edx, dword [0x10089fec]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10089ff0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x10089fe8], 0x1e75
and ecx, 0xff
mov dword [0x10089ffc], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x38]
mov ch, byte [edx + esi]
mov dword [0x10089fe8], 0x16e4
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [0x10089fe8]
add edx, 0xffffef35
mov dword [0x10089fe4], edx
mov esi, dword [ebp - 0x10]
cmp edi, esi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], edx
je 0x1007bee2
mov eax, dword [0x10089fec]
mov ecx, dword [0x10089ff0]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ecx
jmp 0x1007bf0b
mov eax, dword [ebp - 0x24]
add eax, 0xe7b
mov dword [0x10089fe4], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1007c040
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x10089fe4], 0x270b
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1007aa70
lea ecx, [0x1007a340]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x44], edx
mov dword [0x10089fe8], 0x103
mov dword [esp + 0x58], 0x14c800
mov edx, dword [0x10089fd0]
mov dword [esp + 0x40], edx
mov edx, dword [0x10089fd4]
mov dword [esp + 0x84], edx
mov edx, dword [0x10089fd8]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10089fdc]
mov dword [esp + 0x2c], edx
mov edx, dword [0x10089fe0]
mov dword [esp + 0x5c], edx
mov dword [0x10089fe4], 0x110e
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1007c146
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1007c169
jmp 0x1007c155
lea eax, [esp + 0x28]
mov ecx, dword [0x10089fe4]
add ecx, 0xffffe147
mov dword [0x10089fe4], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1007b500
mov ecx, dword [0x10089fe4]
add ecx, 0xfffff2ba
mov dword [0x10089fe4], ecx
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0xc], eax
jmp 0x1007c1a7
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x1007c0d9
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1007c146
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], ecx
mov dword [0x10089fe4], 0x17f2
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x3c], eax
mov dword [0x10089fe8], 0xffffe4be
call fcn.1007b9f0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
je 0x1007c0f3
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40331c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45300c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403394
xor eax, eax
push ebp
push 0x40338d
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 0x4033d0
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 0x403394
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45300c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45300c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404084
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b048], 0
je 0x4040e5
cmp word [0x45b21c], 0xd7b2
jne 0x4040ad
cmp dword [0x45b224], 0
jbe 0x4040ad
mov eax, 0x45b218
call dword [0x45b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x453054
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 0x40410c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45301c], 0
jne 0x404101
push 0
push 0x453074
push 0x453054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409420
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 0x409459
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042f0
jmp 0x409462
mov eax, ebx
mov edx, esi
call fcn.00404254
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40946c
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 0x40948d
mov al, byte [esp]
jmp 0x40948f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a61c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a680
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404468
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408398
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a687
lea eax, [ebp - 0xc]
call fcn.00404200
ret

Function at 0x41c298
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45ba20
cmp dword [edi], 0
jne 0x41c314
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45ba1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4534bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c270
lea eax, [esi + 5]
call fcn.0041c290
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c290
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41c2e9
mov dword [0x45ba1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41d508
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41d50e
ret
Function at 0x41f94c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41f99d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f984
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f974
jmp 0x41f99d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41f985
pop ebx
mov esp, ebp
pop ebp
ret