joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push edi
xor edi, edi
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x88], 0x635
mov eax, dword [ebp - 0x88]
or eax, eax
jl 0x4012dc
cmp eax, dword [0x4040e0]
jge 0x4012dc
cmp byte [eax + 0x4040e4], 0x5e
jle 0x4013b3
mov dword [ebp - 0x8c], 0xbd9
mov eax, dword [ebp - 0x8c]
or eax, eax
jl 0x401306
cmp eax, dword [0x4040e0]
jge 0x401306
cmp byte [eax + 0x4040e4], 0x11
jg 0x40139c
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
jmp 0x401373
mov dword [ebp - 0x94], 9
mov eax, dword [ebp - 0x94]
or eax, eax
jl 0x40133a
cmp eax, dword [0x4040e0]
jge 0x40133a
cmp byte [eax + 0x4040e4], 0x75
jl 0x40136c
mov eax, dword [ebp - 0x94]
or eax, eax
jl 0x401356
cmp eax, dword [0x4040e0]
jge 0x401356
cmp byte [eax + 0x4040e4], 0x52
jl 0x40136c
add dword [ebp - 0x94], 0x164
cmp dword [ebp - 0x94], 0x100a
jl 0x40131e
add dword [ebp - 0x90], 0x55
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x88]
jge 0x401385
or eax, eax
jg 0x401314
add dword [ebp - 0x8c], 0xfffffe3a
cmp dword [ebp - 0x8c], 4
jg 0x4012e6
add dword [ebp - 0x88], 0xffffff76
cmp dword [ebp - 0x88], 0x44
jg 0x4012bc
call fcn.00401d5a
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
mov eax, dword [fcn.00401fc4]
mov edx, dword [0x4040dc]
sub edx, eax
push edx
push dword [0x4040d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401521
mov dword [ebp - 0x8c], 0x1d
mov dword [ebp - 0x90], 2
mov dword [ebp - 0x94], 0x165a
jmp 0x401496
mov dword [ebp - 0x98], 0x3c0
jmp 0x40147a
mov eax, dword [ebp - 0x98]
or eax, eax
jl 0x40143a
cmp eax, dword [0x4040e0]
jge 0x40143a
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xf2
jge 0x40148c
mov dword [ebp - 0x9c], 0x1254
mov eax, dword [ebp - 0x9c]
or eax, eax
jl 0x401460
cmp eax, dword [0x4040e0]
jge 0x401460
cmp byte [eax + 0x4040e4], 0x30
je 0x401473
add dword [ebp - 0x9c], 0xfffffdd0
cmp dword [ebp - 0x9c], 0xd
jg 0x401444
add dword [ebp - 0x98], 0x77
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x94]
jge 0x40148c
or eax, eax
jg 0x401419
add dword [ebp - 0x94], 0x1d1
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x90]
jle 0x4014b0
cmp eax, dword [0x4040e0]
jl 0x40140d
add dword [ebp - 0x90], 0x1ef
cmp dword [ebp - 0x90], 0x2322
jl 0x4013fe
add dword [ebp - 0x8c], 0x126
cmp dword [ebp - 0x8c], 0xb5e
jl 0x4013f4
push edi
call fcn.00401ac2
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401bfc
mov eax, edi
add eax, 0x1ca00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
add eax, edi
push eax
push 0x4040e4
call fcn.00401fc4
add esp, 0x18
xor eax, eax
pop edi
leave
ret
Function at 0x401d5a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
push ebx
push esi
push edi
and dword [ebp - 0x19c], 0
xor edi, edi
mov dword [ebp - 0x2a4], 0x10a3
mov eax, dword [ebp - 0x2a4]
or eax, eax
jl 0x401d99
cmp eax, dword [0x4040e0]
jge 0x401d99
cmp byte [eax + 0x4040e4], 0x54
jl 0x401e5f
mov dword [ebp - 0x2a8], 0xd32
mov eax, dword [ebp - 0x2a8]
or eax, eax
jl 0x401dc3
cmp eax, dword [0x4040e0]
jge 0x401dc3
cmp byte [eax + 0x4040e4], 0x19
jge 0x401e48
mov dword [ebp - 0x2ac], 0x140a
jmp 0x401e1b
mov eax, dword [ebp - 0x2ac]
or eax, eax
jl 0x401df0
cmp eax, dword [0x4040e0]
jge 0x401df0
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xc8
jle 0x401e31
mov eax, dword [ebp - 0x2ac]
or eax, eax
jl 0x401e11
cmp eax, dword [0x4040e0]
jge 0x401e11
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xe6
jge 0x401e31
add dword [ebp - 0x2ac], 0x10f
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [ebp - 0x2a4]
jle 0x401e31
cmp eax, dword [0x4040e0]
jl 0x401dcf
sub dword [ebp - 0x2a8], 0x1e9
cmp dword [ebp - 0x2a8], 0x5d
jg 0x401da3
sub dword [ebp - 0x2a4], 0x1f3
cmp dword [ebp - 0x2a4], 0x3e
jg 0x401d79
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
and dword [ebp - 0x198], 0
lea eax, [ebp - 0x198]
push eax
call sub.KERNEL32.dll_GetVersionExA
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
mov byte [ebp - 0x104], 0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov dword [ebp - 0x2a4], 0x252e
mov eax, dword [ebp - 0x2a4]
or eax, eax
jl 0x401ed8
cmp eax, dword [0x4040e0]
jge 0x401ed8
cmp byte [eax + 0x4040e4], 0x12
jge 0x401f9f
mov dword [ebp - 0x2a8], 0x164b
mov eax, dword [ebp - 0x2a8]
or eax, eax
jl 0x401f02
cmp eax, dword [0x4040e0]
jge 0x401f02
cmp byte [eax + 0x4040e4], 0x54
jg 0x401f88
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2ac], eax
jmp 0x401f5f
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2b0], eax
jmp 0x401f46
mov eax, dword [ebp - 0x2b0]
or eax, eax
jl 0x401f3f
cmp eax, dword [0x4040e0]
jge 0x401f3f
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0x86
jle 0x401f58
add dword [ebp - 0x2b0], 0x43
mov eax, dword [ebp - 0x2b0]
cmp eax, dword [ebp - 0x2ac]
jge 0x401f58
or eax, eax
jg 0x401f1e
add dword [ebp - 0x2ac], 0x46
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [ebp - 0x2a8]
jge 0x401f71
or eax, eax
jg 0x401f10
add dword [ebp - 0x2a8], 0xfffffccb
cmp dword [ebp - 0x2a8], 0x25
jg 0x401ee2
add dword [ebp - 0x2a4], 0xfffffd33
cmp dword [ebp - 0x2a4], 0x44
jg 0x401eb8
mov edi, esi
sub edi, 3
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x11760
Capabilities:
Packed with generic packer

Disassembly:
ror byte [eax + 0xb], 0x20
adc byte [ebp + 0x23806041], 0xc0
loop 0x117b2
outsd dx, dword [esi]
pushal
xchg edx, eax
sub byte [eax + 0x36188d8f], al
add byte [ecx + 0x2d902069], al
insb byte es:[edi], dx
adc al, 0x14
sub esp, edx
loopne 0x117d1
jb 0x117da
hlt
add al, 0x8a
leave
cmp al, 0x10
adc al, 0xc8
push ecx
je 0x117e8
add ah, byte [ebx + 0x464f5865]
nop
mov al, byte [0xe0208c0b]
or bl, byte [eax + 0x30c8c0c5]
xor al, byte [eax + eax*8]
arpl ax, ax
or byte [ecx - 0x3d], dl
or al, 1
loopne fcn.00011760
dec ecx
add ah, byte [eax + 0x14c20d]
cmp eax, dword [edi - 0x77]
movsd dword es:[edi], dword [esi]
in al, dx
and al, 0x44
inc esp
mov cl, 0xa1
push eax
fdiv qword [eax]
enter 0xffffffffffffb095, 0x61
xchg ebp, eax
mov al, 0x61
xchg esi, eax
test dword [eax], eax
pop eax
or al, 0xc2
xchg byte [ecx], dl
add al, 0xb1
sbb eax, 0x85e72aa
jb 0x11860
or byte [0x3c1007f4], dh
mov byte [eax + ebp + 0x14], al
rol byte [edx + 0x49a62140], 0xd1
inc eax
inc esi
cvtpi2ps xmm0, qword [ecx + 0x2401e59]
out dx, eax
cmp al, 0x40
add al, 0x4b
dec ebx
pop ecx
and dword [eax], ecx
sbb dl, dh
inc ebp
adc byte [ebx], dh
in al, 0x43
and byte [edx + ecx*8], al
mov byte [0x8953650], al
mov eax, dword [0x422a0a4d]
dec ebp
or ch, byte [edx]
inc edx
sti
add al, 6
add al, 0xf6
or cl, byte [esi]
or byte [ebx + 0x33181a1b], cl
aaa
mov byte [eax], dh
neg byte [esi]
mov dword [0xc21dad61], eax
adc esi, 0x1a
aam 7
pop es
ja 0x1185e
invalid
sub byte [edx], cl
jle 0x117f0
or bh, byte [esi - 0x72]
or byte [ebx - 0x10], bl
sbb al, 0x22
xor byte [edx], dl
lodsd eax, dword [esi]
add al, 0xe1
mov ch, byte [edx]
sub al, 0x8a
lds edx, [ebp + 0x5c73d918]
jae 0x118d2
xor eax, 0x62104e4b
xor dword [edx + ebx + 0x6d5d35d4], ecx
mov byte [edi], dl
and ah, byte [edx + 0x200210]
ror dword [esi], 1
mov ebx, dword [eax + 0x14081c2a]
jecxz 0x118cc
dec edi
and ecx, ebp
ja 0x118a4
push esp
and edx, ebp
push ds
or byte [eax], 0xc4
jl 0x118a2
popal
mov byte [edi - 0x17ef6df0], bl
inc ecx
and ah, byte [ecx - 0x3d563cac]
lahf
adc byte [edx + 0x2241e810], dl
mov eax, dword [0xc2a9c354]
jno 0x118b7
or ch, al
inc edi
push cs
xor dword [edx + 0x12b738b7], ecx
ja 0x118f7
mov dh, byte [edi + 0x7712b738]
cmp ebp, eax
sub eax, 0x510f63fb
lds ebp, [0x510f63fb]
test al, 0xc5
adc dl, byte [esi + 0x2d200ed7]
jmp 0x1185f
cmp al, byte [eax - 0x7fe7e351]
leave
xor byte [esi + eax], bl
ret

Function at 0x11799
Capabilities:
Packed with generic packer

Disassembly:
push es
dec esp
xchg edx, eax
mov al, byte [0x8061545]
mov dword [edx - 0x70ac3eb8], eax
cdq
shl byte [edi + 0x4e2833f3], cl
pushal
adc dword [bp - 0x75fc], edx
Function at 0x4189c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x417015
lea edi, [esi - 0x6015]
push edi
jmp 0x4189da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4189e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4189d0
mov eax, 1
add ebx, ebx
jne 0x4189f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4189e8
jne 0x418a04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4189e8
xor ecx, ecx
sub eax, 3
jb 0x418a18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418a8a
mov ebp, eax
add ebx, ebx
jne 0x418a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x418a30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x418a54
inc ecx
add ebx, ebx
jne 0x418a40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x418a35
jne 0x418a51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418a35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418a74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x418a65
jmp 0x4189d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418a74
add edi, ecx
jmp 0x4189d6
pop esi
mov edi, esi
mov ecx, 0x1a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x418a92
cmp byte [edi], 0
jne 0x418a92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x418a97
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x418b06
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9144]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x91b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418ac4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x91b8]
or eax, eax
je 0x418b00
mov dword [ebx], eax
add ebx, 4
jmp 0x418ae1
call dword [esi + 0x91b4]
mov ebp, dword [esi + 0x91bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x418b3a
sub esp, 0xffffff80
jmp 0x411ab0
Function at 0x401640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwarePsychology_Software_ToolsSetup__AutoRun_
push 0x80000001
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016b3
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4016a8
cmp dword [esp + 0x14], 4
jne 0x4016a8
cmp dword [esp + 8], ebx
je 0x4016a8
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x403cb9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4073b8
cmp edx, dword [eax]
je 0x403cdb
add eax, 8
inc ecx
cmp eax, 0x407448
jl 0x403ccc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4073b8]
jne 0x403e09
mov eax, dword [0x407b94]
cmp eax, 1
je 0x403de3
test eax, eax
jne 0x403d0c
cmp dword [0x407204], 1
je 0x403de3
cmp edx, 0xfc
je 0x403e09
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403d43
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402e00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402c80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403d86
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402c80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406474
push edi
call fcn.00404410
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402e00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402e10
lea eax, [ebp - 0xa0]
push 0x406454
push eax
call fcn.00402e10
push dword [esi + 0x4073bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402e10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004050f5
add esp, 0x2c
pop edi
jmp 0x403e09
lea eax, [ebp + 8]
lea esi, [esi + 0x4073bc]
push 0
push eax
push dword [esi]
call fcn.00402c80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402a38
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045a8
test esi, esi
jne 0x402a6e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404698
jmp 0x402a8c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040294c
mov edi, eax
test esi, esi
je 0x402a8c
cmp dword [ebx], 0
je 0x402a8c
dec esi
jmp 0x402a75
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403628
Capabilities:
Query or enumerate registry value

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

Function at 0x4043a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fb048], 0
je 0x404409
cmp word [0x4fb21c], 0xd7b2
jne 0x4043d1
cmp dword [0x4fb224], 0
jbe 0x4043d1
mov eax, 0x4fb218
call dword [0x4fb234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f8054
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 0x404430
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f801c], 0
jne 0x404425
push 0
push 0x4f8074
push 0x4f8054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40455c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402754
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4fb049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404524
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406058
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 0xf0019
push 0
push 0x406288
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4060db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406288
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4060db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406164
xor eax, eax
push ebp
push 0x40615d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ea0
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 0x406142
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4062c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406142
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406164
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x40627e
cmp byte [ebp - 0xd], 0
jne 0x4061ab
cmp byte [ebp - 0x12], 0
je 0x40627e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4061c4
dec ebx
cmp byte [ebx], 0x2e
je 0x4061d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4061c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40627e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406210
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40627e
cmp byte [ebp - 0xd], 0
je 0x40627e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40627e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x40bae4
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 0x40bb1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404698
jmp 0x40bb26
mov eax, ebx
mov edx, esi
call fcn.004045fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c1d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c050
mov eax, dword [0x4f9ec8]
cmp byte [eax], 0
je 0x40c240
mov eax, dword [0x4f9c1c]
call fcn.00402e68
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409198
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40c288
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c276
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f9bbc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fb714]
call fcn.00405e64
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

Function at 0x40cfec
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 0x40d050
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.00404810
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408de4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d057
lea eax, [ebp - 0xc]
call fcn.004045a8
ret

Function at 0x41ed14
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041eb88
dec esi
jne 0x41ed36
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41fe60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4fba24
cmp dword [edi], 0
jne 0x41fedc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4fba20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f859c
mov ecx, 2
call fcn.0040290c
mov edx, 0x41fe38
lea eax, [esi + 5]
call fcn.0041fe58
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fe58
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 0x41feb1
mov dword [0x4fba20], 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 0x421468
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 0x42146e
ret

Function at 0x423a6c
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 0x423abd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423aa4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423a94
jmp 0x423abd
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 0x423aa5
pop ebx
mov esp, ebp
pop ebp
ret