joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dcd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6dcd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x6dcd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6dcd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6dcd94
push eax
push esi
call fcn.006df20b
add esp, 8
pop esi
ret 0x10

Function at 0x6dcda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6dce22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x6dce15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x6f5320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006dedff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x6dcdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x6dce30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6dcec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x6dceb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x6f5320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006dedff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x6dceab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x6dce6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x6dd000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x6dd131
push esi
call fcn.006e0145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006cf080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6dd131
push 0
push ebp
call fcn.006cf3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006cf260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x6dd08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006cf2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x6dd121
push 0x6f5918
push edi
call fcn.006de3f0
push eax
push ebx
push esi
call fcn.006dcf60
push 0x6f58f8
push edi
call fcn.006de3f0
push eax
push ebx
push esi
call fcn.006dcf60
push 0x6f58d8
push edi
call fcn.006de3f0
push eax
push ebx
push esi
call fcn.006dcf60
push 0x6f58c0
push edi
call fcn.006de3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.006dcf60
push 0x6f58a0
push edi
call fcn.006de3f0
push eax
push ebx
push esi
call fcn.006dcf60
push 0x6f5888
push edi
call fcn.006de3f0
push eax
push ebx
push esi
call fcn.006dcf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6de1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006de140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006de140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006de140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006de140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6debfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6dec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6f087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6dec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6dec52
xor eax, eax
pop esi
leave
ret 4

Function at 0x1aed9dd
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
jmp 0x1565b55
ret
mov edi, dword [edx + ecx + 0x18]
test edi, edi
je 0x1565b55
mov eax, dword [edx + ecx + 0x20]
add eax, ecx
cmc
xor ebx, ebx
dec edi
jmp 0x11aff0f
mov dword [ebp - 0xc], eax
js 0x1565b55
jmp 0x14aed3f
jne 0x156a0a3
mov edx, dword [eax + ecx + 0x78]
mov dword [ebp - 4], edx
test edx, edx
jmp 0x155702a
jns 0x14c0606
lea edi, [esi - 1]
jmp 0x14c0611
je 0x156a0a3
mov esi, dword [ebp + 0xc]
test esi, esi
jmp 0x14f0449
mov eax, dword [ecx + 0x3c]
test esi, eax
cmp bp, bx
cmp dword [eax + ecx], 0x4550
jmp 0x1381cfd
mov eax, dword [ebp - 0xc]
rcl dh, cl
cwd
bts dx, si
mov edx, dword [ebp + 0x10]
and si, bx
xor si, 0x5958
lea esi, [edi + ebx]
sar esi, 1
mov eax, dword [eax + esi*4]
push edx
mov edx, dword [ebp + 0xc]
test esi, 0x78840f64
add eax, ecx
jmp 0x15177f0
jle 0x1565b20
lea ebx, [esi + 1]
or ecx, esi
mov ecx, dword [ebp + 8]
cmp ebx, edi
jmp 0x151b1af
push esi
stc
clc
jmp 0x15087af
je 0x156a0a3
mov eax, 0x5a4d
cmp word [ecx], ax
jmp 0x156a09d
sub esp, 0x114
jmp 0x14e1db0
test ecx, ecx
jmp 0x13bbb03
call fcn.0117dd70
lea esp, [esp + 4]
test eax, eax
jmp 0x13af740
jle 0x14aed34
jmp 0x1565b50
je 0x156a0a3
mov eax, dword [eax + ecx + 0x7c]
push ebx
push edi
mov dword [ebp - 0x10], eax
clc
cmc
mov dword [ebp - 8], 0xffffffff
cmp esi, 0xffff
ja 0x11a5685
mov eax, esi
cmc
stc
sub eax, dword [edx + ecx + 0x10]
mov dword [ebp - 8], eax
jmp 0x112a905
je 0x14ae21c
sub eax, eax
cmova esi, eax
mov si, 0x1735
pop esi
mov esp, ebp
pop ebp
jmp 0x1170deb
push ebp
sbb cx, 0xcb2
mov ecx, 0x40a90914
not ebp
mov ebp, esp
sub cl, 0xe2
bswap ecx
bsr cx, dx
mov ecx, dword [ebp + 8]
cmc
jmp 0x14f48d8
Function at 0x4060ef
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x2bd3aed3
add ecx, 7
push ecx
mov ebx, 0x21114ea
mov edi, 0x29800a14
xor ebx, edi
pop eax
xor ebx, eax
mov edi, ebx
xchg edx, edi
mov eax, 0xffffffb0
add edx, eax
mov eax, 0xffffffff
add edx, eax
Function at 0x401b90
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x4010e0
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401bf5
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push ebx
push ebx
push 0x40112c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401bec
cmp dword [ebp - 8], 0xd2af9
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401e0d
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
xor ebx, ebx
mov dword [ebp - 4], esi
inc ebx
mov dword [ebp - 8], esi
push ebx
push esi
push 0x4013e0
push 0x80000001
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e9d
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x40149c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401e74
cmp dword [ebp - 0xc], 4
jne 0x401e74
cmp dword [ebp - 0x10], ebx
setne bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
test bl, bl
je 0x401e9d
push 0xa
push 0x4014f8
push 0x40129c
push 0x4013c4
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401fb0
Capabilities:
Accept command line arguments
Create process on windows
Initialize winsock library
Query environment variable
Query or enumerate registry value
Set current directory
Terminate process

Disassembly:
call fcn.00402a67
jmp fcn.00401fba

Function at 0x40262b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40264f
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x402699
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
lea ecx, [ebx - 1]
mov eax, ecx
lea esi, [ebx - 1]
and ecx, dword [ebp - 4]
and eax, edi
add eax, ebx
dec ecx
add eax, ecx
not esi
div ebx
xor edx, edx
and esi, edi
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x402697
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x40268b
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40316c
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.004046c8
test esi, esi
jne 0x4031a2
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.004047b8
jmp 0x4031c0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403070
mov edi, eax
test esi, esi
je 0x4031c0
cmp dword [ebx], 0
je 0x4031c0
dec esi
jmp 0x4031a9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403798
Capabilities:
Query or enumerate registry value

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

Function at 0x404548
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c044], 0
je 0x4045a9
cmp word [0x41c218], 0xd7b2
jne 0x404571
cmp dword [0x41c220], 0
jbe 0x404571
mov eax, 0x41c214
call dword [0x41c230]
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 0x4045d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a02c], 0
jne 0x4045c5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ae0
Capabilities:
Get geographical location

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 0x405c04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ae0
xor eax, eax
push ebp
push 0x405ad9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405810
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 0x405abe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405c40
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405abe
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 0x405ae0
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 0x405bfa
cmp byte [ebp - 0xd], 0
jne 0x405b27
cmp byte [ebp - 0x12], 0
je 0x405bfa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405b40
dec ebx
cmp byte [ebx], 0x2e
je 0x405b4f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405b3f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405bfa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405b8c
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 0x405bfa
cmp byte [ebp - 0xd], 0
je 0x405bfa
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 0x405bfa
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 0x407664
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4076b6
test eax, edx
je 0x4076b9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x407679
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 0x40769f
add ecx, 4
js 0x40768f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40769c
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 0x4076c5
test edx, edx
jne 0x40766c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

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

Function at 0x40a6d4
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 0x40a70d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047b8
jmp 0x40a716
mov eax, ebx
mov edx, esi
call fcn.0040471c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a720
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 0x40a742
movzx eax, byte [esp]
jmp 0x40a744
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40add4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ac4c
mov eax, dword [0x41b040]
cmp byte [eax], 0
je 0x40ae50
mov eax, dword [0x41af4c]
call fcn.00403230
call fcn.00402edc
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.00407ec0
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 0x40ae98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ae86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41af24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41e7f0]
call fcn.004057b8
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 0x41812c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x41824c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.0040316c
mov eax, dword [ebp - 0x20]
call fcn.00404b34
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 0xc], 0
je 0x418229
mov eax, dword [ebp - 0xc]
call fcn.00402db4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x418222
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040316c
mov eax, dword [ebp - 0x24]
call fcn.00404b34
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x418209
lea eax, [ebp - 0x14]
mov edx, 0x3e8
call fcn.00404d68
lea eax, [ebp - 0x14]
call fcn.00404b94
mov edx, 1
dec edx
test eax, eax
je 0x4181dd
cmp edx, dword [eax - 4]
jb 0x4181e2
call fcn.00403868
inc edx
lea eax, [eax + edx - 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x41825c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418229
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00402dd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418253
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004046ec
lea eax, [ebp - 0x14]
call fcn.004046c8
ret
Function at 0x4e7374
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.0048bb74
xor edx, edx
push ebp
push 0x4e73e6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e73f0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40ae30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
movzx eax, byte [edx]
test eax, eax
jle 0x40aedf
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp 0x40aed7
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
test eax, eax
je 0x40aecc
mov eax, dword [esp]
lea edx, [eax + 6]
mov ebx, edx
mov eax, dword [esp]
movzx edx, word [eax]
dec edx
mov edi, edx
mov dword [esp + 8], 0
cmp edi, dword [esp + 8]
jl 0x40aecc
dec dword [esp + 8]
lea esi, [esi]
inc dword [esp + 8]
lea eax, [ebx + 6]
mov edx, dword [esp + 0xc]
call fcn.00406cd0
test eax, eax
jne 0x40aeba
mov eax, dword [ebx]
add eax, dword [esp + 0x10]
mov esi, eax
jmp 0x40aee4
lea edx, [ebx + 6]
inc edx
movzx eax, byte [ebx + 6]
add edx, eax
mov ebx, edx
cmp edi, dword [esp + 8]
jg 0x40ae9c
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
jne 0x40ae68
mov esi, 0
mov eax, esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 0x20
ret

Function at 0x40cd70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5b5f40], eax
mov edx, 1
dec edx
nop
inc edx
mov eax, edx
dec eax
mov ecx, dword [eax*4 + 0x5b5f40]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x5b5f40], eax
cmp edx, 0x26f
jl 0x40cd7c
mov dword [0x559e40], 0x270
ret