joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404490
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 0xf003f
push 0
push 0x40464c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4044f1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404668
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404563
xor eax, eax
push ebp
push 0x40455c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004042e8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404545
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404688
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404563
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x404644
cmp byte [ebp - 0xd], 0
jne 0x4045a5
cmp byte [ebp - 0x12], 0
je 0x404644
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4045be
dec ebx
cmp byte [ebx], 0x2e
je 0x4045cd
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4045bd
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404644
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4045fa
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404644
cmp byte [ebp - 0xd], 0
je 0x404644
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404644
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x406ff8
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 0x407031
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403420
jmp 0x40703a
mov eax, ebx
mov edx, esi
call fcn.0040338c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407044
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 0x407065
mov al, byte [esp]
jmp 0x407067
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409ed4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stc
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00409b4d
push eax
push esi
push dword [ebp + 8]
call fcn.00409b02
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00409b4d
push eax
push esi
push dword [ebp + 8]
call fcn.00409b02
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00409b4d
push eax
push esi
push dword [ebp + 8]
call fcn.00409b02
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00409b3d
adc eax, 0x887727d6
popfd
jl 0x409fc2
invalid
invalid
Function at 0x40c924
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe20
push ebx
mov eax, dword [ebp + 8]
call fcn.004036d4
xor eax, eax
push ebp
push 0x40cb84
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0xdd]
mov edx, 0x65
call fcn.00405754
lea eax, [ebp - 0x68]
mov edx, 0x44
call fcn.00405754
lea eax, [ebp - 0x78]
mov edx, 0x10
call fcn.00405754
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0xdd]
push eax
push 0x30
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp + 8]
call fcn.004036e4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x40ca28
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40cb6e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dl, 1
mov eax, dword [0x409e64]
call fcn.004029a8
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x40caba
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
lea eax, [ebp - 0x14]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x1de]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
neg eax
sbb eax, eax
neg eax
test al, al
je 0x40ca8f
lea edx, [ebp - 0x1de]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 8]
jmp 0x40ca57
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0040b5e0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cac1
mov eax, dword [ebp - 0x18]
call fcn.004029d8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb8b
lea eax, [ebp + 8]
call fcn.00403338
ret
Function at 0x40cf5c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40d0f5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.0040c454
mov esi, eax
mov dword [ebp - 0x128], 0x128
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.0040c474
jmp 0x40d0c9
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00403568
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00406850
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.004065a0
mov eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x13c]
mov edx, ebx
call fcn.004034f0
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004065a0
mov edx, dword [ebp - 0x138]
pop eax
call fcn.00403630
je 0x40d0a2
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00403568
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004065a0
mov eax, dword [ebp - 0x140]
push eax
lea eax, [ebp - 0x14c]
mov edx, ebx
call fcn.004034f0
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.004065a0
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00403630
jne 0x40d0bc
push 0
mov eax, dword [ebp - 0x120]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.0040c494
test eax, eax
jne 0x40cfdd
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0fc
lea eax, [ebp - 0x14c]
mov edx, 9
call fcn.0040335c
ret

Function at 0x40d1b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
xor eax, eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], eax
xor eax, eax
push ebp
push 0x40d280
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea ecx, [ebp - 0x218]
mov edx, 8
mov eax, dword [ebp - 4]
call fcn.004066dc
mov eax, dword [ebp - 0x218]
call fcn.004036e4
mov ebx, eax
mov eax, dword [0x40e45c]
cmp dword [eax], 2
je 0x40d262
lea eax, [ebp - 0x220]
mov edx, ebx
call fcn.004034f0
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.0040d108
mov eax, dword [ebp - 0x21c]
call fcn.004036e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d287
lea eax, [ebp - 0x220]
mov edx, 3
call fcn.0040335c
ret
Function at 0x9a20b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9a2200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9a20d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a20c2
add dl, dl
jne 0x9a20e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a2134
xor eax, eax
add dl, dl
jne 0x9a20ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a21d5
add dl, dl
jne 0x9a20fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a2108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a2113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a211e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9a212a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9a20cd
mov eax, 1
add dl, dl
jne 0x9a2142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a214d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a2139
sub eax, ebx
mov ebx, 1
jne 0x9a2180
mov ecx, 1
add dl, dl
jne 0x9a2166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a2171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a215d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a20cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9a2197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a21a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a218e
cmp eax, 0x7d00
jae 0x9a21c5
cmp eax, 0x500
jb 0x9a21c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a20cd
cmp eax, 0x7f
ja 0x9a21c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a20cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9a21f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9a20cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x1248781c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x2250530e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3f1658b0
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4a372d94
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x436390
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4037c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402a70
xor edi, edi
push 0x405718
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.MSVBVM60.DLL___vbaNew]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
mov eax, dword [ebp - 0x2c]
push 0x80000002
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp eax, edi
fnclex
jge 0x43640f
mov edx, dword [ebp - 0x2c]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x4c
push 0x40b030
push edx
push eax
call esi
jmp 0x436415
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x2c]
push 0x40e610
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
cmp eax, edi
fnclex
jge 0x436437
mov edx, dword [ebp - 0x2c]
push 0x54
push 0x40b030
push edx
push eax
call esi
mov eax, dword [ebp - 0x2c]
push 0x40e670
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
cmp eax, edi
fnclex
jge 0x436459
mov edx, dword [ebp - 0x2c]
push 0x5c
push 0x40b030
push edx
push eax
call esi
mov eax, dword [ebp - 0x2c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
cmp eax, edi
fnclex
jge 0x436478
mov edx, dword [ebp - 0x2c]
push 0x44
push 0x40b030
push edx
push eax
call esi
sub esp, 0x10
mov edx, dword [ebp - 0x2c]
mov ebx, esp
mov ecx, 8
mov edi, dword [edx]
mov eax, 0x409630
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x20]
push edx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
call dword [edi + 0x30]
test eax, eax
fnclex
jge 0x4364b5
mov ecx, dword [ebp - 0x2c]
push 0x30
push 0x40b030
push ecx
push eax
call esi
lea edx, [ebp - 0x2c]
push 0
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
push 0x40b030
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push 0x4364ef
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x2c]
call esi
lea ecx, [ebp - 0x14]
call esi
ret
Function at 0x419610
Capabilities:
Get disk information

Disassembly:
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0x4d2064
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [0x4d5acc]
add ecx, eax
mov dword [0x4d5acc], ecx
mov eax, ecx
ret

Function at 0x449e25
Capabilities:
Encode data using xor

Disassembly:
or ah, ah
push ss
daa
lea edx, [esp + ebp + 0x4a]
inc ebp
push 0xffffffffffffffbe
xor dword [ebx], edx
xor dword [ecx + 0x18313e31], edx
cld
scasd eax, dword es:[edi]
enter 0x85b, 0x7d
jo 0x449df1
salc
adc esi, edx
cmpsd dword [esi], dword es:[edi]
pop esi
invalid

Function at 0x494979
Capabilities:
Encode data using xor

Disassembly:
xor al, 0xbc
add edi, dword [esp + esi]
cdq
xor ah, byte [edi - 0x11]
out dx, eax

Function at 0x4c7e8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d2380
cmp edx, dword [eax]
je 0x4c7eaf
add eax, 8
inc ecx
cmp eax, 0x4d2410
jl 0x4c7ea0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d2380]
jne 0x4c7fdd
mov eax, dword [0x4d7db0]
cmp eax, 1
je 0x4c7fb7
test eax, eax
jne 0x4c7ee0
cmp dword [0x4d22ac], 1
je 0x4c7fb7
cmp edx, 0xfc
je 0x4c7fdd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c7f17
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c8870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8d00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c7f5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8d00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cde14
push edi
call fcn.004cabd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c8870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c8880
lea eax, [ebp - 0xa0]
push 0x4cddf4
push eax
call fcn.004c8880
push dword [esi + 0x4d2384]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c8880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004cab44
add esp, 0x2c
pop edi
jmp 0x4c7fdd
lea eax, [ebp + 8]
lea esi, [esi + 0x4d2384]
push 0
push eax
push dword [esi]
call fcn.004c8d00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40290c
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x402844
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret

Function at 0x4082ab
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 0x4082cc
jl 0x4082c3
test edi, edi
jne 0x4082cc
xor eax, eax
xor edx, edx
jmp 0x40838d
cmp dword [ebx + 0x38], 0
je 0x4082e1
push eax
push edi
push dword [ebp + 8]
call fcn.00408393
jmp 0x40838d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408328
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408328
cmp eax, edi
jb 0x408302
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042b3a0
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 0x40832e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408382
mov ecx, ebx
call fcn.00407968
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40836d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004563f5
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 0x408382
jmp 0x408340
test edx, edx
je 0x408382
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004563f5
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 0x41a6c5
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41a6e8
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41a6d6
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4291b7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00459183
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4291f6
sub eax, 1
je 0x4291f1
sub eax, 1
je 0x4291ed
xor eax, eax
leave
ret
push 3
jmp 0x4291f8
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42aa1e
Capabilities:
Parse pe header

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