joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467e2a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [ebp + 0xb], 1
cmp dword [ebx + 4], esi
je 0x467f45
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov byte [edx], 0
mov byte [eax], 0
mov dword [ecx], esi
lea ebx, [ebx]
push esi
push ebx
call fcn.00436482
movzx eax, word [eax]
cmp eax, 0x2b
je 0x467e8d
cmp eax, 0x5e
je 0x467e88
cmp eax, 0x21
je 0x467e88
cmp eax, 0x23
jne 0x467ec0
cmp eax, 0x2b
jne 0x467e96
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
inc esi
jmp 0x467e6a
cmp eax, 0x5e
jne 0x467ea4
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
inc esi
jmp 0x467e6a
cmp eax, 0x21
jne 0x467eb2
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
inc esi
jmp 0x467e6a
cmp eax, 0x23
jne 0x467ebd
mov edx, dword [ebp + 0x1c]
mov byte [edx], 1
inc esi
jmp 0x467e6a
push esi
inc esi
push ebx
mov dword [ebp + 0x1c], esi
call fcn.00436482
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x467fae
mov eax, 0x40
lea ecx, [ebp - 0x10]
call fcn.00401600
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x7d
call fcn.0045fcce
test al, al
je 0x467f8a
mov edx, dword [ebp - 0x10]
mov eax, dword [edi*4 + 0x492968]
push edx
push eax
call fcn.004113cb
add esp, 8
test eax, eax
je 0x467f1a
inc edi
cmp edi, 0x62
jl 0x467efc
cmp edi, 0x62
jne 0x467f81
xor edi, edi
lea esi, [ebp - 0x10]
call fcn.00401c30
movzx ecx, word [eax]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov edx, dword [ebp + 0xc]
cwde
mov dword [edx], eax
cmp eax, 0xffffffff
jne 0x467f50
mov ecx, esi
call fcn.00402480
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, 0x200
je 0x467f5d
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x400
je 0x467f6a
mov edx, dword [ebp + 0x18]
mov byte [edx], 1
test eax, 0x100
je 0x467fa4
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov byte [eax], 1
call fcn.00402480
jmp 0x467fe7
cmp byte [edi + 0x492af0], 0
je 0x467f98
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0
call fcn.00402480
jmp 0x467fe7
movzx ecx, byte [edi + str._f_b_b..__reepqrstuvwxyz________t___]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.00402480
jmp 0x467fe7
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [ebp + 0xc]
cwde
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x467f45
test eax, 0x200
je 0x467fcd
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
test eax, 0x400
je 0x467fda
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
test eax, 0x100
je 0x467fe7
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0xff
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100127a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x414], esi
cmp eax, esi
jne 0x10012bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10013cc
push edi
lea ecx, [ebp - 0x414]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
lea eax, [ebp - 0x410]
push eax
push edi
push dword [ebp - 0x414]
call fcn.010011e5
cmp dword [ebp - 0x410], esi
jne 0x10013c5
push ebx
push esi
push 2
push esi
push dword [edi + 4]
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1001312
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x410], eax
jmp 0x10013c4
push esi
lea eax, [ebp - 0x41c]
push eax
push 0xff
lea eax, [ebp - 0x204]
push eax
push 0x100112c
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallW]
test eax, eax
je 0x10013c4
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
push ebx
test eax, eax
jne 0x1001383
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0xfffe
push 0x20
push esi
push 0x66
push 0x65
push dword [ebp - 0x418]
mov dword [ebp - 0x410], eax
push esi
call dword [sym.imp.COMCTL32.dll_Ordinal_344]
jmp 0x10013c4
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
push dword [edi + 4]
lea eax, [ebp - 0x40c]
push 0x10010fc
push 0x104
push eax
call fcn.0100121b
add esp, 0x10
test eax, eax
jge 0x10013b5
mov dword [ebp - 0x410], 8
jmp 0x10013c4
push esi
lea eax, [ebp - 0x40c]
push eax
push esi
push esi
call sub.SETUPAPI.dll_InstallHinfSectionW
pop ebx
mov eax, dword [ebp - 0x410]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010016f9
leave
ret 0x10
Function at 0x10016ea
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1001b70
call fcn.01001894
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1003370
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10014a1
cmp eax, esi
jne 0x1001494
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10014a4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100147b
xor esi, esi
inc esi
mov eax, dword [0x100336c]
cmp eax, esi
jne 0x10014b7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10014e6
mov eax, dword [0x100336c]
test eax, eax
jne 0x10014e0
mov dword [0x100336c], esi
push 0x10010d0
push 0x10010c4
call fcn.010013e0
pop ecx
pop ecx
test eax, eax
je 0x10014e6
jmp 0x100160e
mov dword [0x1003034], esi
mov eax, dword [0x100336c]
cmp eax, esi
jne 0x100150a
push 0x10010c0
push 0x10010b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100336c], 2
test ebx, ebx
jne 0x1001516
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003374], 0
je 0x100153a
push 0x1003374
call fcn.01001809
pop ecx
test eax, eax
je 0x100153a
push 0
push 2
push 0
call dword [0x1003374]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1001596
test al, al
je 0x1001554
cmp dword [ebp - 0x1c], 0
jne 0x1001596
mov al, byte [esi]
test al, al
je 0x1001564
cmp al, 0x20
ja 0x1001564
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001554
test byte [ebp - 0x3c], 1
je 0x1001570
movzx eax, word [ebp - 0x38]
jmp 0x1001573
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1003030], eax
cmp dword [0x1003024], 0
jne 0x10015ea
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10015a5
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10015b8
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1001541
cmp dword [0x1003034], 0
jne 0x10015f9
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003030]
jmp 0x100161a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010018d9
ret
call fcn.010019e1
jmp 0x1001441
Function at 0x1001128
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, 0x100
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x864]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x464]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10010b8
mov edi, 0x400
push 0x80000002
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x10010b0
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x864]
push eax
push edi
push 0x10010a8
push 0x100109c
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x100108c
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x10011f9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001100
call fcn.010013e4
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001236
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001236
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100124e
cmp eax, 0x20b
je 0x100123b
mov dword [ebp - 0x1c], ebx
jmp 0x1001262
cmp dword [ecx + 0x84], 0xe
jbe 0x1001236
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100125c
cmp dword [ecx + 0x74], 0xe
jbe 0x1001236
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100201c], 0xffffffff
or dword [0x1002020], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002018]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002014]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002024], eax
call fcn.010013de
cmp dword [section..data], ebx
jne 0x10012bd
push fcn.010013de
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010013cc
push 0x100106c
push 0x1001068
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002010]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100200c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001064
push 0x1001060
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1001353
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001327
cmp al, 0x22
jne 0x1001319
cmp byte [esi], 0x22
jne 0x1001330
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100133a
cmp al, 0x20
jbe 0x100132c
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x100135e
movzx eax, word [ebp - 0x48]
jmp 0x1001361
cmp byte [esi], 0x20
jbe 0x1001330
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1001353
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100137e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10013b3
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100141d
ret
Function at 0x4032dc
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.00405120
test esi, esi
jne 0x403312
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.00405210
jmp 0x403330
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031e0
mov edi, eax
test esi, esi
je 0x403330
cmp dword [ebx], 0
je 0x403330
dec esi
jmp 0x403319
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4040cc
Capabilities:
Query or enumerate registry value

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

Function at 0x404f80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a604c], 0
je 0x404fe1
cmp word [0x4a6220], 0xd7b2
jne 0x404fa9
cmp dword [0x4a6228], 0
jbe 0x404fa9
mov eax, 0x4a621c
call dword [0x4a6238]
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 0x405008
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a302c], 0
jne 0x404ffd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4068a8
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 0x406ad8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40692b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406ad8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40692b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406af4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4069b4
xor eax, eax
push ebp
push 0x4069ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004066e4
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 0x406992
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406b14
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406992
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 0x4069b4
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 0x406ace
cmp byte [ebp - 0xd], 0
jne 0x4069fb
cmp byte [ebp - 0x12], 0
je 0x406ace
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406a14
dec ebx
cmp byte [ebx], 0x2e
je 0x406a23
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406a13
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406ace
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406a60
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 0x406ace
cmp byte [ebp - 0xd], 0
je 0x406ace
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 0x406ace
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 0x4094a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4094f6
test eax, edx
je 0x4094f9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4094b9
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 0x4094df
add ecx, 4
js 0x4094cf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4094dc
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 0x409505
test edx, edx
jne 0x4094ac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004055b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409efd
test al, 0x10
je 0x409f01
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004055b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409f21
test al, 0x10
jne 0x409f25
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a024
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004055b0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a046
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40cc40
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 0x40cc79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405210
jmp 0x40cc82
mov eax, ebx
mov edx, esi
call fcn.00405174
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d1b8
mov eax, dword [0x4a4f78]
cmp byte [eax], 0
je 0x40d3bc
mov eax, dword [0x4a4d28]
call fcn.00403724
call fcn.0040304c
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.0040a254
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 0x40d404
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d3f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a4cc8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a87f8]
call fcn.0040668c
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 0x40dcbc
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 0x40dd92
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004051b8
lea eax, [ebp - 4]
call fcn.00405608
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004055b0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dd7c
mov eax, ebx
call fcn.00402ef0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dd75
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.004055b0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dd5f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dda4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dd5f
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 0x40dd7c
mov eax, dword [ebp - 0x10]
call fcn.00402f0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd99
lea eax, [ebp - 4]
call fcn.00405120
ret
Function at 0x420624
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4aa9ec
cmp dword [edi], 0
jne 0x4206a0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4aa9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a3aec
mov ecx, 2
call fcn.004030e0
mov edx, 0x4205fc
lea eax, [esi + 5]
call fcn.0042061c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042061c
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 0x420675
mov dword [0x4aa9e8], 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 0x422dfc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004055b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x422e54
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a50f4]
mov dl, 1
mov eax, dword [0x422908]
call fcn.0040d50c
call fcn.00404b48
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422a10
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424084
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 0x42408a
ret