joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a004]
jne 0x40100a
repz ret
jmp fcn.004018e6

Function at 0x408ab5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406174
and dword [ebp - 4], 0
cmp dword [0x4600bc], 0
mov ebx, eax
jne 0x408b66
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c17
push eax
call fcn.00406102
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4600bc], eax
call esi
push eax
call fcn.00406102
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4600c0], eax
call esi
push eax
call fcn.00406102
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4600c4], eax
call esi
push eax
call fcn.00406102
pop ecx
mov dword [0x4600cc], eax
test eax, eax
je 0x408b66
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406102
pop ecx
mov dword [0x4600c8], eax
mov eax, dword [0x4600c8]
cmp eax, ebx
je 0x408bbe
cmp dword [0x4600cc], ebx
je 0x408bbe
push eax
call fcn.0040617d
push dword [0x4600cc]
mov esi, eax
call fcn.0040617d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bbe
test edi, edi
je 0x408bbe
call esi
test eax, eax
je 0x408bb5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408bb5
test byte [ebp - 0xc], 1
jne 0x408bbe
or dword [ebp + 0x10], 0x200000
jmp 0x408bf7
mov eax, dword [0x4600c0]
cmp eax, ebx
je 0x408bf7
push eax
call fcn.0040617d
pop ecx
test eax, eax
je 0x408bf7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408bf7
mov eax, dword [0x4600c4]
cmp eax, ebx
je 0x408bf7
push eax
call fcn.0040617d
pop ecx
test eax, eax
je 0x408bf7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4600bc]
call fcn.0040617d
pop ecx
test eax, eax
je 0x408c17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b90b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [0x23778f4], 0x930
jne 0x40b933
push str.yujev
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x23778f4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x2377610], eax
jne 0x40b965
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
lea eax, [ebp - 0x1c]
push eax
push str.doparihugavodivufelo
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
leave
ret
Function at 0x438123e
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x438b835
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
push 3
pop ecx
mov eax, edi
shl eax, 2
div ecx
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
push 0x4c
setne cl
xor edx, edx
pop ebx
mov esi, eax
lea eax, [esi + 4]
div ebx
imul ecx, eax
lea eax, [esi + ecx*2 + 5]
cmp dword [ebp + 0x14], eax
jae 0x438b871
xor eax, eax
jmp 0x438b989
mov ecx, dword [ebp + 8]
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
add edi, ecx
mov edx, edi
push 3
sub edx, ecx
pop esi
cmp edx, esi
jl 0x438b90c
mov dword [ebp + 0x14], edx
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + 0x438daf0]
mov byte [eax], dl
movzx edx, byte [ecx]
movzx ebx, byte [ecx + 1]
and edx, esi
shl edx, 4
shr ebx, 4
or edx, ebx
mov dl, byte [edx + 0x438daf0]
mov byte [eax + 1], dl
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx + 2]
add dword [ebp + 0xc], 4
sub dword [ebp + 0x14], esi
and edx, 0xf
shl edx, 2
shr ebx, 6
or edx, ebx
mov dl, byte [edx + 0x438daf0]
mov byte [eax + 2], dl
movzx edx, byte [ecx + 2]
and edx, 0x3f
mov dl, byte [edx + 0x438daf0]
mov byte [eax + 3], dl
add eax, 4
add ecx, esi
cmp dword [ebp + 0xc], 0x4c
jl 0x438b907
cmp dword [ebp + 0x18], 0
je 0x438b903
mov word [eax], 0xa0d
add eax, 2
and dword [ebp + 0xc], 0
cmp dword [ebp + 0x14], esi
jge 0x438b88f
sub edi, ecx
je 0x438b970
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + 0x438daf0]
mov byte [eax], dl
cmp edi, 1
jne 0x438b93a
movzx ecx, byte [ecx]
and ecx, esi
shl ecx, 4
mov cl, byte [ecx + 0x438daf0]
mov byte [eax + 1], cl
mov byte [eax + 2], 0x3d
jmp 0x438b965
movzx edx, byte [ecx]
and edx, esi
movzx esi, byte [ecx + 1]
shl edx, 4
shr esi, 4
or edx, esi
mov dl, byte [edx + 0x438daf0]
mov byte [eax + 1], dl
movzx ecx, byte [ecx + 1]
and ecx, 0xf
mov cl, byte [ecx*4 + 0x438daf0]
mov byte [eax + 2], cl
add eax, 3
mov byte [eax], 0x3d
inc eax
add dword [ebp + 0xc], 4
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
je 0x438b984
cmp dword [ebp + 0x18], ecx
je 0x438b984
mov word [eax], 0xa0d
add eax, 2
mov byte [eax], cl
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x438bb24
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438bb37
push ebx
push 0x40
sub eax, edx
pop ebx
cmp eax, ebx
jbe 0x438bb69
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438bb4d
lea ecx, [ebp - 0x100]
push ecx
sub eax, edx
push eax
push esi
call fcn.04381e0a
add esp, 0xc
jmp 0x438bb78
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0438c27a
pop ecx
pop ecx
lea eax, [ebp - 0x100]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438bb81
sub eax, edx
cmp eax, ebx
jge 0x438bba5
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x100]
push 0
push eax
call fcn.0438c1a4
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0x100]
xor cl, 0x36
mov byte [ebp + eax - 0x180], cl
inc eax
cmp eax, ebx
jl 0x438bba7
xor eax, eax
mov cl, byte [ebp + eax - 0x100]
xor cl, 0x5c
mov byte [ebp + eax - 0x140], cl
inc eax
cmp eax, ebx
jl 0x438bbbf
push ebx
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0438c146
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x438bbf2
sub eax, ecx
mov esi, eax
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xc0]
push eax
call fcn.0438c146
mov edi, dword [ebp + 0x10]
push edi
add esi, 0x40
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.04381e0a
push ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0438c146
add esp, 0x24
mov eax, edi
lea ecx, [eax + 1]
pop ebx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x438bc3e
sub eax, ecx
mov esi, eax
push esi
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.0438c146
push edi
add esi, 0x40
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.04381e0a
add esp, 0x18
mov eax, edi
pop edi
lea ecx, [eax + 1]
pop esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x438bc72
sub eax, ecx
leave
ret
Function at 0x42be60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub eax, 0x3e9
cmp eax, 0x1f
ja 0x42bebf
mov eax, dword [eax*4 + 0x4de920]
test eax, eax
je 0x42bebf
cmp eax, 0xffffffff
je 0x42bebf
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x42bebc
push 0
lea edx, [esp + 8]
push edx
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42beae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ba20
add esp, 4
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42bebc
mov edx, dword [esp + 4]
mov dword [eax], edx
xor eax, eax
ret
mov eax, 0x16
ret

Function at 0x42bed0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub eax, 0x3e9
cmp eax, 0x1f
ja 0x42bf2f
mov eax, dword [eax*4 + 0x4de920]
test eax, eax
je 0x42bf2f
cmp eax, 0xffffffff
je 0x42bf2f
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x42bf2c
push 0
lea edx, [esp + 8]
push edx
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42bf1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ba20
add esp, 4
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42bf2c
mov edx, dword [esp + 4]
mov dword [eax], edx
xor eax, eax
ret
mov eax, 0x16
ret

Function at 0x42bfb0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42bfce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], eax
jmp fcn.0042ba20
xor eax, eax
ret
Function at 0x46abf0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x7534
call fcn.00481410
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x7530], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
mov ebp, dword [esp + 0x7544]
push esi
mov esi, dword [esp + 0x7544]
push edi
push 0x510
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
cmp edi, 0x61a8
jle 0x46ac84
push 0x7530
lea eax, [esp + 0x14]
push eax
push 0x510
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x10]
push 0xa
push eax
call fcn.00481160
add eax, 1
mov ecx, eax
lea edx, [esp + 0x18]
sub ecx, edx
add esp, 8
cmp ecx, 0x1388
jl 0x46ac56
push eax
push 0x510
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0xb1
push 0x510
push esi
call edi
push ebp
push 0
push 0xc2
push 0x510
push esi
call edi
mov ecx, dword [esp + 0x7540]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004810ab
add esp, 0x7534
ret

Function at 0x46d0b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
lea eax, [esp + 4]
push eax
push esi
call fcn.00483bd1
add esp, 8
test eax, eax
je 0x46d0d1
xor eax, eax
pop esi
add esp, 0x24
ret
test dword [esp + 0xa], 0x4000
jne 0x46d0ca
mov eax, dword [esp + 0x18]
cmp eax, 0x40000000
jg 0x46d0ca
add eax, 1
push edi
push eax
call fcn.0048163b
mov edi, dword [esp + 0x38]
add esp, 4
test eax, eax
mov dword [edi], eax
je 0x46d12c
mov ecx, dword [esp + 0x1c]
add ecx, 1
push ecx
push 0
push eax
call fcn.00481440
push 0x4a1f88
push esi
call fcn.00482bdb
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x46d134
mov edx, dword [edi]
push edx
call fcn.00481373
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi]
push esi
push eax
push 1
push ecx
call fcn.00484153
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ecx
push esi
je 0x46d168
call fcn.004828f4
mov edx, dword [edi]
push edx
call fcn.00481373
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret
mov eax, dword [esp + 0x3c]
mov dword [eax], ecx
call fcn.004828f4
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0x24
ret
Function at 0x46d190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x10c], eax
lea eax, [esp]
push eax
push str.Control_PanelInternational
push 0x80000001
mov byte [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x46d1f4
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.sThousand
push ecx
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xc], 0
je 0x46d246
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x46d202
sub eax, edx
cmp eax, 6
jae 0x46d246
xor eax, eax
jmp 0x46d220
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x4defb0], cl
add eax, 1
test cl, cl
jne 0x46d220
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004810ab
add esp, 0x110
ret
mov ecx, dword [esp + 0x10c]
xor ecx, esp
mov word [0x4defb0], 0x2c
call fcn.004810ab
add esp, 0x110
ret

Function at 0x46d270
Capabilities:
Delete registry key
Log keystrokes via polling
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jns 0x46d2a7
push 0x11
call esi
test ax, ax
jns 0x46d2a7
mov eax, dword [esp + 0xc]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x7d
push 0x28
call dword [sym.imp.KERNEL32.dll_Beep]
pop esi
pop ecx
ret
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x46d2e8
push 0x2458
push 0x50a178
push 3
push eax
mov eax, dword [esp + 0x14]
push str.Persistent
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret

Function at 0x46d2f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
mov esi, dword [esp + 0x10c]
lea eax, [esp + 4]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
push ecx
call fcn.00475fa0
add esp, 4
push 0x80
push esi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004810ab
add esp, 0x104
ret
Function at 0x46d360
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x504
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x500], eax
cmp dword [0x50a3b0], 0
push ebx
push ebp
mov ebp, dword [esp + 0x510]
push esi
push edi
je 0x46d3f0
lea eax, [esp + 0x310]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x310], 0
lea esi, [esp + 0x310]
mov byte [esp + 0x110], 0
je 0x46d419
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebx, [ebx]
push esi
call edi
cmp eax, 3
jne 0x46d3d9
lea ecx, [esp + 0x110]
push esi
push ecx
call fcn.004741a0
add esp, 8
push 0
push esi
call fcn.00481160
add eax, 1
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x46d3c0
jmp 0x46d419
push 0x200
lea edx, [esp + 0x114]
push 0
push edx
call fcn.00481440
lea eax, [esp + 0x11c]
push 0x50a3b8
push eax
call fcn.004741a0
add esp, 0x14
cmp byte [esp + 0x110], 0
lea esi, [esp + 0x110]
je 0x46d46e
mov edi, dword [esp + 0x51c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4a1fc0
push esi
call ebx
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00475280
add esp, 8
cmp eax, edi
jge 0x46d489
push 0
push esi
call fcn.00481160
add eax, 1
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x46d437
xor eax, eax
mov ecx, dword [esp + 0x510]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004810ab
add esp, 0x504
ret
lea eax, [esp + 0x10]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x46d493
mov eax, 1
jmp 0x46d470
Function at 0x474240
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x474820
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 0x10
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_IsZoomed]
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
sub ecx, dword [esp + 0x10]
mov edx, dword [eax + 8]
sub edx, dword [esp + 0xc]
add ecx, dword [esp + 8]
add edx, dword [esp + 4]
push 5
push 0
push 0
push ecx
push edx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
add esp, 0x10
ret

Function at 0x4750c0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call edi
cmp eax, 0xffffffff
je 0x4750f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call edi
cmp eax, 0xffffffff
jne 0x475114
pop edi
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x4033a4
Capabilities:
Query or enumerate registry value

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

Function at 0x40419c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a044], 0
je 0x4041fd
cmp word [0x45a218], 0xd7b2
jne 0x4041c5
cmp dword [0x45a220], 0
jbe 0x4041c5
mov eax, 0x45a214
call dword [0x45a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x458054
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 0x404224
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45801c], 0
jne 0x404219
push 0
push 0x458074
push 0x458054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40af7c
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 0x40afb5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404408
jmp 0x40afbe
mov eax, ebx
mov edx, esi
call fcn.0040436c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b670
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b4e8
mov eax, dword [0x458fac]
cmp byte [eax], 0
je 0x40b6dd
mov eax, dword [0x458dec]
call fcn.00402cc0
call fcn.00402870
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408864
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b724
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b713
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x458da8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45a710]
call fcn.00405a54
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 0x40c3b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c418
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404580
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408584
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c41f
lea eax, [ebp - 0xc]
call fcn.00404318
ret
Function at 0x4226fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45aa20
cmp dword [edi], 0
jne 0x422778
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45aa1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4585e4
mov ecx, 2
call fcn.00402904
mov edx, 0x4226d4
lea eax, [esi + 5]
call fcn.004226f4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004226f4
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 0x42274d
mov dword [0x45aa1c], 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 0x423b80
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 0x423b86
ret

Function at 0x425fc8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x426019
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426000
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425ff0
jmp 0x426019
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x426001
pop ebx
mov esp, ebp
pop ebp
ret