joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447450
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4475e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402910
cmp word [ebx + 0x9a], 0
je 0x447499
mov edx, ebx
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
mov eax, dword [ebx + 0x88]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4474ad
lea esi, [ebp - 8]
jmp 0x4474af
xor esi, esi
cmp dword [ebx + 0x78], 0
jne 0x4474b9
xor edi, edi
jmp 0x4474c3
mov eax, dword [ebx + 0x78]
call fcn.00403f00
mov edi, eax
mov eax, dword [ebx + 0x74]
call fcn.00403f00
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00446be4
mov eax, dword [ebp - 0x14]
call fcn.00403f00
push eax
push esi
mov eax, dword [ebx + 0x6c]
call fcn.00403f00
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403f00
push eax
mov eax, ebx
call fcn.00446d18
push eax
mov eax, ebx
call fcn.00446cec
push eax
mov eax, ebx
call fcn.00446ca0
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00446ab8
mov eax, dword [ebp - 0x18]
call fcn.00403f00
push eax
mov eax, dword [ebx + 8]
call fcn.00403f00
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x88], eax
cmp dword [ebp - 0xc], 0
jne 0x44754c
call fcn.0040a078
xor edx, edx
push ebp
push 0x4475c5
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x44758a
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xa2], 0
je 0x447580
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4475ae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4475cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x4475f8
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xaa], 0
je 0x447624
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xac]
call dword [esi + 0xa8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00403f00
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x447649
call fcn.0040a078
xor eax, eax
push ebp
push 0x447680
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x447669
call fcn.0040a078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447687
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4088c0
Capabilities:
Parse pe header

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

Function at 0x40b1ef
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40b22a

Function at 0x40b571
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg ebp, eax
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040b1bf
push eax
push esi
push dword [ebp + 8]
Function at 0x40b85f
Capabilities:
Inspect section memory permissions

Disassembly:
inc eax
add al, 0xeb
test eax, 0xeb0c5d89
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40b886
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40b8a4
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40b902
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40b8e9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40b8f2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40b8fc
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40b8de
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40b868
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40b94f
dec eax
je 0x40b946
sub eax, 3
je 0x40b93d
mov dword [ebp - 4], 0x40
jmp 0x40b96c
mov dword [ebp - 4], 4
jmp 0x40b952
mov dword [ebp - 4], 0x20
jmp 0x40b952
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40b99e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40b91e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040b1af
imul esi, ebx, 0xffffff83
and edi, edi
jne 0x40b9a9
push 1
push esi
call edi
mov eax, esi
jmp 0x40b9aa
rcr byte [edi + 0x5e], 0x5b

Function at 0x40bc2d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
invalid
test edx, edx
cli

Function at 0x4190f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41911d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41911d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100053d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and esp, 0xfffffff8
sub esp, 0x48
lea eax, [fcn.100053d0]
mov dword [esp + 0x30], 0x2dc9799f
mov cx, word [esp + 0x42]
mov dword [esp + 0x1c], 0x6a6e136f
mov word [esp + 0x42], 0x8cb4
mov edx, dword [esp + 0x30]
mov esi, edx
xor esi, 0x86f8117
mov dword [esp + 0x34], esi
mov esi, 0x60f03e83
sub esi, edx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov word [esp + 0x12], cx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
jmp 0x10005547
mov dword [esp + 0x28], 0
jmp 0x100054b9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
xor ecx, 0x2dc9699f
sub eax, ecx
and eax, 0xfffff000
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
add eax, 0x450a977f
mov ecx, dword [esp + 0x14]
adc ecx, 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x100054e9
mov eax, 0x3138ea2f
mov cl, byte [esp + 0x2f]
mov dword [esp + 4], eax
mov al, cl
mul cl
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov byte [esp + 0x2f], al
mov dword [esp + 0x24], edx
mov edx, dword [esp + 8]
and edx, 0x6b5fa246
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 4]
cmp edx, esi
jbe 0x100054f4
jmp 0x100054f4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
sub ecx, ecx
mov dword [esp + 0x34], ecx
cmp eax, 0x14ce6a8f
jb 0x100054b9
mov ax, word [esp + 0x12]
imul cx, ax, 0xbd88
mov word [esp + 0x42], cx
mov eax, dword [esp + 0x28]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov al, 1
test al, 1
jne 0x10005547
jmp 0x1000543b
mov eax, dword [esp + 0x24]
mov dx, word [esp + 0x12]
mov cx, dx
mov eax, dword [eax + 0x3c]
mov esi, dword [esp + 0x18]
mov word [esp + 0x42], 0x9e08
mov edi, ecx
xor edi, 0x860a
mov bx, di
mov word [esp + 0x42], bx
add ecx, 0xfffffedd
mov bx, cx
mov word [esp + 0x42], bx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0x943b51b0
cmp dword [esi + eax], 0x4550
je 0x1000558a
jmp 0x1000559f
mov eax, dword [esp + 0xc]
add eax, 0x5761c8cb
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0x263e30bf
movzx eax, word [eax]
mov cx, word [esp + 0x12]
or cx, 0x8eea
mov word [esp + 0x42], cx
cmp eax, 0x5a4d
je 0x10005478
jmp 0x10005445
mov al, byte [esp + 0x2f]
mov byte [esp + 0x2f], al
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
jmp 0x100054b9
jmp 0x10005445
Function at 0x10005f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x80], 0x7764e5bf
movzx edx, word [esp + 0x70]
mov si, dx
mov edi, esp
lea ebx, [esp + 0x50]
mov dword [edi], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov word [esp + 0x2a], si
mov dword [esp + 0x24], ebx
call fcn.10005dd0
mov ecx, dword [esp + 0x80]
mov edx, 0x7764e5d7
sub edx, ecx
mov ecx, esp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x24]
mov dword [ecx], edx
mov dword [ecx + 4], 0x100253a3
mov byte [esp + 0x23], al
call fcn.10005e90
mov ecx, dword [esp + 0x2c]
and ecx, 0xa2dc
mov si, cx
mov word [esp + 0x70], si
mov ecx, esp
mov edx, dword [esp + 0x24]
mov dword [ecx], edx
call fcn.10006160
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
cmp dword [esp + 0x38], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jne 0x1000608c
jmp 0x10006082
mov dword [esp + 0x3c], 0
mov eax, 0xfe112fd
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, ecx
mov edx, dword [esp + 0x14]
mul edx
mov esi, dword [esp + 0x18]
imul edi, esi, 0xfe112fd
add edx, edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp 0x100060e1
mov dword [esp + 0x3c], 0
jmp 0x100060e1
mov eax, dword [esp + 0x1c]
xor eax, 0x3e9ee8fb
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
call fcn.10006990
mov si, ax
mov word [esp + 0x40], si
mov word [esp + 0x42], si
movzx eax, word [esp + 0x42]
mov dword [esp + 0x74], 0x2333d4b5
cmp eax, 0
je 0x1000604f
jmp 0x100060ed
mov eax, dword [esp + 0x3c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x4c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x38]
mov edx, esp
lea esi, [esp + 0x4c]
mov dword [edx + 0xc], esi
lea esi, [esp + 0x40]
mov dword [edx + 4], esi
mov dword [edx], eax
mov dword [edx + 8], 0
call ecx
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x48], eax
mov bl, byte [esp + 0x23]
add bl, 0x7c
mov byte [esp + 0x73], bl
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov di, word [esp + 0x2a]
imul di, di
mov word [esp + 0x70], di
jmp 0x100060e1
Function at 0x401310
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [str.Usage:_gc___necCaDUrsv____files__n___n___print_number_of_nodes_n___e___print_number_of_edges_n___c___print_number_of_connected_components_n___C___print_number_of_clusters_n___a___print_all_counts_n___D___only_directed_graphs_n___U___only_undirected_graphs_n___r___recursively_analyze_subgraphs_n___s___silent_n___v___verbose_n_______print_usage_nBy_default__gc_prints_nodes_and_edges_nIf_no_files_are_specified__stdin_is_used_n]
push eax
push 0x4041a4
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret

Function at 0x401880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4043c4]
mov ecx, dword [0x4043c8]
cmp ecx, dword [eax + 4]
jne 0x401965
mov edx, dword [0x4043c4]
cmp dword [edx + 0xc], 0
jne 0x401949
push 0x10
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4018dc
push 0x4041dc
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [ebp - 4]
mov ecx, dword [0x4043c4]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0
push 0x3d0900
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x40192d
push str.gc:_Out_of_memory_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, 0x3d0900
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [0x4043c4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
mov edx, dword [0x4043c4]
mov eax, dword [edx + 0xc]
mov dword [0x4043c4], eax
mov ecx, dword [0x4043c4]
mov edx, dword [ecx]
mov dword [0x4043c8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ecx + 8], 0xffffffff
mov edx, dword [0x4043c8]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [0x4043c8]
add ecx, 4
mov dword [0x4043c8], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403358
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.00404b5c
test esi, esi
jne 0x40338e
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.00404c4c
jmp 0x4033ac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040325c
mov edi, eax
test esi, esi
je 0x4033ac
cmp dword [ebx], 0
je 0x4033ac
dec esi
jmp 0x403395
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b08
Capabilities:
Query or enumerate registry value

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

Function at 0x4049bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c904c], 0
je 0x404a1d
cmp word [0x4c9220], 0xd7b2
jne 0x4049e5
cmp dword [0x4c9228], 0
jbe 0x4049e5
mov eax, 0x4c921c
call dword [0x4c9238]
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 0x404a44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c602c], 0
jne 0x404a39
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406300
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 0x406530
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406383
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406530
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406383
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40654c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40640c
xor eax, eax
push ebp
push 0x406405
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040613c
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 0x4063ea
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40656c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063ea
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 0x40640c
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 0x406526
cmp byte [ebp - 0xd], 0
jne 0x406453
cmp byte [ebp - 0x12], 0
je 0x406526
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40646c
dec ebx
cmp byte [ebx], 0x2e
je 0x40647b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40646b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406526
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4064b8
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 0x406526
cmp byte [ebp - 0xd], 0
je 0x406526
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 0x406526
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 0x409174
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4091c6
test eax, edx
je 0x4091c9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409189
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 0x4091af
add ecx, 4
js 0x40919f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4091ac
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 0x4091d5
test edx, edx
jne 0x40917c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404fec
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409a55
test al, 0x10
je 0x409a59
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404fec
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409a79
test al, 0x10
jne 0x409a7d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c578
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 0x40c5b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c4c
jmp 0x40c5ba
mov eax, ebx
mov edx, esi
call fcn.00404bb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40caf0
mov eax, dword [0x4c8cb0]
cmp byte [eax], 0
je 0x40ccf4
mov eax, dword [0x4c8a20]
call fcn.00403470
call fcn.00403090
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.00409c70
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 0x40cd3c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cd2a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c89c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cb7f8]
call fcn.004060e4
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 0x40d608
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 0x40d6de
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404bf4
lea eax, [ebp - 4]
call fcn.00405044
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d6c8
mov eax, ebx
call fcn.00402f34
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d6c1
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.00404fec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d6ab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d6f0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d6ab
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 0x40d6c8
mov eax, dword [ebp - 0x10]
call fcn.00402f50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6e5
lea eax, [ebp - 4]
call fcn.00404b5c
ret