joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41e764
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41e764
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push 1
push eax
push ecx
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov edx, dword [ebp + 0x10]
test eax, eax
jne 0x41e766
xor edx, edx
mov eax, edx
leave
ret

Function at 0x41e7e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov edi, dword [ebp + 8]
push edi
call sub.msvcrt.dll_strlen
pop ebx
pop esi
lea esi, [eax + 1]
push 0
push 0
push esi
push edi
push 8
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
mov edx, eax
pop eax
test edx, edx
pop ecx
mov ecx, 8
jle 0x41e951
lea eax, [edx + edx + 0x1e]
and eax, 0xfffffff0
call fcn.00495ce0
lea ebx, [esp + 0xf]
push eax
and ebx, 0xfffffff0
push eax
push edx
push ebx
push esi
push edi
push ecx
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
pop edx
test eax, eax
pop ecx
jne 0x41e8d0
call sub.KERNEL32.dll_GetLastError
sub esp, 0xc
push 0xa9
push 0x4a7df8
push eax
push 1
push 2
call fcn.004240e0
add esp, 0x18
mov eax, dword [ebp + 0xc]
push 0x4a7e1f
push eax
push 0x4a7e22
push edi
push str.fopen_
push 5
call fcn.00423d20
add esp, 0x20
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x41e8b6
sub esp, 0xc
push 0xae
push 0x4a7df8
push 2
push 0x6d
push 0x20
xor ebx, ebx
call fcn.004240e0
add esp, 0x20
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 0xac
push 0x4a7df8
push pe_nt_image_headers32
jmp 0x41e89e
lea esi, [ebp - 0x1c]
push eax
push eax
push 8
push esi
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push eax
call sub.msvcrt.dll_strlen
add esp, 0x10
inc eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
pop edx
test eax, eax
pop ecx
je 0x41e848
push ecx
push ecx
push esi
push ebx
call sub.msvcrt.dll__wfopen
add esp, 0x10
mov esi, eax
test eax, eax
je 0x41e9aa
sub esp, 0xc
call fcn.0041e270
push eax
call fcn.0041f3d0
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x41e9c4
push eax
push eax
push 0
push ebx
call fcn.0041e9e0
push esi
push 1
push 0x6a
push ebx
call fcn.0041ece0
add esp, 0x20
jmp 0x41e8ac
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3ec
je 0x41e987
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x459
jne 0x41e848
mov eax, dword [ebp + 0xc]
push edx
push edx
push eax
push edi
call sub.msvcrt.dll_fopen
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x41e919
jmp 0x41e848
push ebx
push ebx
push 0
push 0
push esi
push edi
push 0
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
mov edx, eax
pop eax
test edx, edx
pop ecx
jle 0x41e95d
xor ecx, ecx
jmp 0x41e81a
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x41e96d
call sub.msvcrt.dll__errno
cmp dword [eax], 9
jne 0x41e848
jmp 0x41e96d
sub esp, 0xc
push esi
call sub.msvcrt.dll_fclose
add esp, 0x10
jmp 0x41e8ac
Function at 0x44f5d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jne 0x44f5ed
mov dl, byte [esi]
lea eax, [edx - 0x6a]
cmp al, 1
jbe 0x44f618
sub esp, 0xc
push 0x72
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x89
push pe_nt_image_headers32
push 4
call fcn.004240e0
or esi, 0xffffffff
mov eax, esi
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esi + 1]
cmp dl, 0x6b
je 0x44f642
lea esi, [ecx - 2]
cmp byte [ebx + esi], 0xcc
jne 0x44f695
push edx
push esi
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ecx - 3]
test edi, edi
jle 0x44f6ac
mov dl, byte [esi + 1]
cmp dl, 0xba
je 0x44f6ac
cmp dl, 0xbb
jne 0x44f67e
lea ebx, [esi + 2]
xor eax, eax
mov ecx, edi
jmp 0x44f66f
mov dl, byte [eax + esi + 1]
inc ebx
cmp dl, 0xba
je 0x44f678
cmp dl, 0xbb
jne 0x44f67e
inc eax
cmp eax, ecx
jne 0x44f660
test eax, eax
je 0x44f6ac
mov esi, edi
sub esi, eax
jmp 0x44f623
sub esp, 0xc
push 0x81
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x44f5fc
sub esp, 0xc
push 0x93
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8b
jmp 0x44f5fc
sub esp, 0xc
push 0x8a
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x44f5fc
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x8566853
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x446630], eax
sub eax, eax
je 0x4068c1
call 0xa8cf50cd
invalid
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

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

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x406fc8
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566fc5
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46260c], eax
sub eax, eax
je 0x406ffc
call 0xa97b583f
invalid
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4035cc
Capabilities:
Query or enumerate registry value

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

Function at 0x404168
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x4041c9
cmp word [0x417218], 0xd7b2
jne 0x404191
cmp dword [0x417220], 0
jbe 0x404191
mov eax, 0x417214
call dword [0x417230]
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 0x4041f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41602c], 0
jne 0x4041e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405510
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 0x405740
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405593
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405740
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405593
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40575c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40561c
xor eax, eax
push ebp
push 0x405615
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040534c
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 0x4055fa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40577c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4055fa
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 0x40561c
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 0x405736
cmp byte [ebp - 0xd], 0
jne 0x405663
cmp byte [ebp - 0x12], 0
je 0x405736
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40567c
dec ebx
cmp byte [ebx], 0x2e
je 0x40568b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40567b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405736
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056c8
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 0x405736
cmp byte [ebp - 0xd], 0
je 0x405736
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 0x405736
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 0x407114
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x407166
test eax, edx
je 0x407169
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x407129
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 0x40714f
add ecx, 4
js 0x40713f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40714c
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 0x407175
test edx, edx
jne 0x40711c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409fd0
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 0x40a009
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043d8
jmp 0x40a012
mov eax, ebx
mov edx, esi
call fcn.0040433c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a6d0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a548
mov eax, dword [0x416c08]
cmp byte [eax], 0
je 0x40a74c
mov eax, dword [0x416b1c]
call fcn.004030d4
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.004078cc
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 0x40a794
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a782
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416af8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4197f0]
call fcn.004052f4
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 0x41340c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404558
add esp, 0x104
pop ebx
ret
Function at 0x41343c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404744
xor eax, eax
push ebp
push 0x413484
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404754
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41348b
lea eax, [ebp - 4]
call fcn.004042e8
ret

Function at 0x413704
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x41ba90]
mov ecx, 0x40
call fcn.00402f70
mov dword [0x41b9dc], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x41b9dc
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x413732
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x41b9dc]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.004135e4
mov esi, eax
mov dword [ebx*4 + 0x41b9dc], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.004135e4
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x4137a2
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x413752
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41382c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x41ba88]
sub dword [ebx + 8], eax
mov eax, dword [0x41ba84]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.004135e4
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.004135e4
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x41b9e0]
mov edx, edi
call fcn.004135ec
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x41b9dc]
mov edx, ebp
call fcn.004135ec
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x413846
mov eax, dword [0x41b9e0]
sub dword [ebx + 0xc], eax
mov eax, dword [0x41b9dc]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x414c3c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404744
mov eax, dword [ebp - 8]
call fcn.00404744
xor eax, eax
push ebp
push 0x414cf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x800
call fcn.00402db4
mov esi, eax
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.0040740c
push esi
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404754
push eax
mov eax, dword [ebp - 4]
call fcn.00404754
push eax
call sub.kernel32.dll_GetTempFileNameA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, ebx
mov edx, esi
call fcn.004044e0
mov eax, esi
call fcn.00402dd0
mov edx, dword [ebx]
mov eax, 0x414d0c
call fcn.00404844
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404988
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414cfe
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040430c
ret

Function at 0x414d48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404744
xor eax, eax
push ebp
push 0x414e18
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00403138
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0xc
call fcn.00403138
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404754
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x414e02
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414e1f
lea eax, [ebp - 4]
call fcn.004042e8
ret
Function at 0x4239d5
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
je 0x423a20
cmp edx, 0xffffffff
je 0x423a20
cmp word [edx], 0x5a4d
jne 0x423a20
mov eax, dword [edx + 0x3c]
mov ecx, dword [sym.ntoskrnl.exe_MmHighestUserAddress]
add eax, edx
cmp edx, ecx
jae 0x423a14
cmp eax, ecx
jae 0x435417
lea edx, [eax + 0xf8]
cmp edx, ecx
jae 0x435417
cmp dword [eax], 0x4550
jne 0x435417
pop ebp
ret 4
xor eax, eax
jmp 0x423a20
Function at 0x42a50d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x42a52b
cmp dword [eax + 4], 0
jne 0x42b162
push edi
call sym.ntoskrnl.exe_IoGetRelatedDeviceObject
mov dword [ebp + 0xc], eax
mov al, byte [eax + 0x30]
mov byte [ebp + 8], al
push 0
push dword [ebp + 8]
call dword [0x47be08]
mov edx, eax
test edx, edx
je 0x445632
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x42a558
mov dword [eax], edx
mov ecx, dword [edx + 0x60]
push ebx
sub ecx, 0x24
mov dword [edx + 4], esi
mov dword [edx + 8], 3
mov eax, dword fs:[0x124]
mov ebx, dword [ebp + 0x1c]
mov dword [edx + 0x50], eax
mov dword [edx + 0x64], edi
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0x10]
mov byte [edx + 0x20], 0
mov dword [edx + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x34], eax
mov dword [edx + 0x28], ebx
mov byte [ecx], 4
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov dword [ecx + 0xc], esi
mov eax, dword [eax + 4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], edi
mov ecx, dword [ebp + 0xc]
call dword [0x47be00]
mov ecx, 0xc0000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x440a58
pop ebx
pop edi
pop esi
pop ebp
ret 0x1c
inc dword [0x47fbdc]
mov eax, dword [esi + 0x14]
add eax, 0xfff
shr eax, 0xc
add dword [0x47fbd8], eax
jmp 0x42a52b
and dword [ebx + 4], 0
push 0
push ebx
push dword [ebp + 0x18]
mov dword [ebx], eax
call dword [ebp + 0x14]
mov eax, 0x103
jmp 0x42a5c8
mov eax, 0xc000009a
jmp 0x42a5c9