joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4682a0
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 0x468458
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x468301
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x468474
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x46836e
xor eax, eax
push ebp
push 0x468367
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x468350
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x468494
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 0x46836e
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 0x46844f
cmp byte [ebp - 0xd], 0
jne 0x4683b0
cmp byte [ebp - 0x12], 0
je 0x46844f
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4683c9
dec ebx
cmp byte [ebx], 0x2e
je 0x4683d8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4683c8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x46844f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x468405
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 0x46844f
cmp byte [ebp - 0xd], 0
je 0x46844f
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 0x46844f
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 0x468818
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x468900
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x49c2cc], 1
jae 0x4688f2
xor eax, eax
mov dword [0x49bed8], eax
xor eax, eax
mov dword [0x49bee0], eax
xor eax, eax
mov dword [0x49bee4], eax
mov byte [0x49beea], 2
mov byte [0x49beeb], 2
mov byte [0x49beec], 3
mov word [0x49c294], 0
mov word [0x49c2a4], 1
mov word [0x49c2b4], 0xa
mov dword [0x49c2bc], 0x80020004
mov dword [0x49c288], 0x467bf4
mov dword [0x49c28c], 0x467bec
mov dword [0x49c290], 0x467bf4
call fcn.00466214
test al, al
je 0x4688b1
call fcn.00466244
call fcn.00466308
mov eax, 0x49bef0
mov edx, 0x46890c
call fcn.004639ce
mov eax, 0x49c0bc
mov edx, 0x46890c
call fcn.004639ce
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x49bed0], eax
call fcn.00464934
mov dword [0x49becc], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x49bec4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468907
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x46a540
call fcn.0046b608
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x46a55c
test bl, 1
je 0x46a55c
call fcn.0046f8d4
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x46a690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0046b1dc
test byte [ebp + 0xd], 0xc0
jne 0x46a6b4
mov eax, dword [0x496f6c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x46a6c1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x46a6ee
je 0x46a700
sub ecx, 0x100
je 0x46a70e
sub ecx, 0x100
je 0x46a715
sub ecx, 0x100
je 0x46a707
jmp 0x46a71c
sub ecx, 0x600
je 0x46a715
sub ecx, 0x100
je 0x46a700
jmp 0x46a71c
mov edi, 1
jmp 0x46a721
mov edi, 2
jmp 0x46a721
mov edi, 4
jmp 0x46a721
mov edi, 5
jmp 0x46a721
mov edi, 3
test byte [ebp + 0xd], 1
je 0x46a748
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4969e8]
test al, 0x80
je 0x46a741
mov ebx, 0x80
jmp 0x46a75a
mov ebx, 1
jmp 0x46a75a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x46a75a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x46a76c
je 0x46a775
dec eax
je 0x46a77e
jmp 0x46a787
mov dword [ebp - 4], 0x80000000
jmp 0x46a796
mov dword [ebp - 4], 0x40000000
jmp 0x46a796
mov dword [ebp - 4], 0xc0000000
jmp 0x46a796
push 1
call fcn.0046b59c
pop ecx
mov ebx, eax
jmp 0x46a882
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x46a7b2
sub eax, 0x10
je 0x46a7b9
sub eax, 0x10
je 0x46a7c2
sub eax, 0x10
je 0x46a7cb
jmp 0x46a7cb
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x46a7d2
mov dword [ebp - 8], 1
jmp 0x46a7d2
mov dword [ebp - 8], 2
jmp 0x46a7d2
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x46a83b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x46a830
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x46a830
add ebx, 0xffffffb2
push ebx
call fcn.0046b59c
pop ecx
mov ebx, eax
jmp 0x46a882
mov edi, esi
push edi
call fcn.0046a5f4
pop ecx
test eax, eax
je 0x46a84f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x46a85b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0046b2dc
add esp, 8
mov ebx, eax
inc eax
jne 0x46a882
push 4
call fcn.0046b59c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0046b210
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b108
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00468dd0
pop ecx
mov ebx, eax
test eax, eax
jne 0x46b12c
xor eax, eax
jmp 0x46b1d5
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x46b14d
cmp esi, 0x104
jb 0x46b158
push ebx
call fcn.00468de0
pop ecx
xor eax, eax
jmp 0x46b1d5
cmp byte [ebx + 1], 0x3a
jne 0x46b188
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x46b188
push ebx
call fcn.00468de0
pop ecx
xor eax, eax
jmp 0x46b1d5
inc esi
test edi, edi
je 0x46b1cb
cmp esi, dword [ebp + 0x10]
jbe 0x46b19d
push ebx
call fcn.00468de0
pop ecx
xor eax, eax
jmp 0x46b1d5
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.00468de0
pop ecx
mov eax, edi
jmp 0x46b1d5
push esi
push ebx
call fcn.00468df0
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46f66c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x497f50], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46f724
cmp byte [0x48a35b], 0
je 0x46f6de
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0046f598
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46f6c7
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0046f598
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46f6c7
lea ebx, [ebp - 0x54]
jmp 0x46f6c8
inc ebx
call fcn.0046f624
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x46f745
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x497f54
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00469368
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x497f57
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x46f745
cmp dword [0x497f50], 0xffffffff
je 0x46f745
mov eax, dword [0x497f50]
test eax, eax
je 0x46f745
cmp byte [eax], 0
je 0x46f745
push esi
push eax
call fcn.0046f7c4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f7c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x46f826
call fcn.0046f774
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00469368
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00469368
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x476c00
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x476c2e
mov eax, ebx
call fcn.004776a4
cmp dword [ebx + 0x3c], 0
je 0x476c27
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x476c9f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x476c91
cmp dword [ebx + 8], 0
je 0x476c50
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x476c62
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x476c91
cmp dword [ebx + 8], 0
je 0x476c43
cmp eax, 3
je 0x476c75
dec eax
jne 0x476c43
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x476c43
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x476c43
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x476cbd
cmp dword [ebx + 0x10], 0xcc
je 0x476cbd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00476cc8
pop ebx
ret
Function at 0x1001cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1002c790
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1002c79f
pop dword [ebp - 0x3c]
mov eax, 0xfe449065
sub eax, 0xee41c8c6
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xf4b69b23
add dword [ebp - 0x4c], 0x599baa28
mov dword [ebp - 0x48], 0xcab8975e
add dword [ebp - 0x48], 0x677ab4e7
mov dword [ebp - 0x44], 0x636ed640
add dword [ebp - 0x44], 0xe8dd6dee
mov dword [ebp - 0x40], 0xdb635d5a
sub dword [ebp - 0x40], 0xdb635d5a
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xfc07f953
add eax, 0x1403778d
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x41f7ed74
add dword [ebp - 0x4c], 0x327a7be2
mov dword [ebp - 0x48], 0x8290e3bb
sub dword [ebp - 0x48], 0x41248246
mov dword [ebp - 0x44], 0xb4991f0e
sub dword [ebp - 0x44], 0x5129b2a2
mov dword [ebp - 0x40], 0x534785dd
add dword [ebp - 0x40], 0xacb87a23
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x229ec1c6
add eax, 0xed6caed6
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x608e1
push 0
call eax
mov ecx, 0xd6b26b70
sub ecx, 0xd6b2184c
xor ebx, ebx
add ebx, eax
mov edx, 0x9e4f45e2
sub edx, 0x8e4011e2
add edx, dword [ebp - 0x3c]
mov edi, 0x3359429d
sub edi, 0xe2dc6f57
xor dword [ebp - 8], ecx
mov esi, dword [edx]
add dword [ebp - 0xc], edx
add esi, edi
mov dword [ebp - 0x1c], 0xd2c02b8
mov dword [ebx], esi
xor dword [ebp - 8], 0xc4af18ee
add ebx, 0x10343319
sub ebx, 0x10343315
add edx, 0xc9a38460
add edx, 0x365c7ba4
loop 0x1002c8c3
add eax, 0x13f63
xor ebx, ebx
add ebx, eax
add eax, 0xabf8a1dc
add eax, 0x54075e29
mov ecx, 0xfb92bad9
add ecx, 0x146d4527
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x1000c004
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1000dec0
call fcn.1000c190
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1000f98c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1000bda7
cmp eax, esi
jne 0x1000bd9a
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1000bdaa
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000bd81
xor esi, esi
inc esi
mov eax, dword [0x1000f988]
cmp eax, esi
jne 0x1000bdbd
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x1000bdec
mov eax, dword [0x1000f988]
test eax, eax
jne 0x1000bde6
mov dword [0x1000f988], esi
push 0x100012ac
push 0x100012a0
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x1000bdec
jmp 0x1000bf14
mov dword [0x1000f644], esi
mov eax, dword [0x1000f988]
cmp eax, esi
jne 0x1000be10
push 0x1000129c
push 0x1000128c
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x1000f988], 2
test ebx, ebx
jne 0x1000be1c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1000f998], 0
je 0x1000be40
push 0x1000f998
call fcn.1000c500
pop ecx
test eax, eax
je 0x1000be40
push 0
push 2
push 0
call dword [0x1000f998]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1000be9c
test al, al
je 0x1000be5a
cmp dword [ebp - 0x1c], 0
jne 0x1000be9c
mov al, byte [esi]
test al, al
je 0x1000be6a
cmp al, 0x20
ja 0x1000be6a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1000be5a
test byte [ebp - 0x3c], 1
je 0x1000be76
movzx eax, word [ebp - 0x38]
jmp 0x1000be79
push 0xa
pop eax
push eax
push esi
push 0
push 0x10000000
call main
mov dword [0x1000f640], eax
cmp dword [0x1000f634], 0
jne 0x1000bef0
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x1000beab
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x1000bebe
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1000be47
cmp dword [0x1000f644], 0
jne 0x1000beff
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1000f640]
jmp 0x1000bf20
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.1000c1d5
ret
call fcn.10134000
jmp 0x1000bd47

Function at 0x1000c020
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f15c]
jne 0x1000c02a
repz ret
jmp fcn.1000c685
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040826a
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040826a
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40826a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x408279
pop dword [ebp - 0x1c]
mov eax, 0x8ed3e4af
add eax, 0x716c9dca
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x38de9
push 0
mov eax, 0xcfe47eb1
sub eax, 0xcfa0fe81
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x40cd
mov esi, eax
mov edi, 0xd20bccc1
add edi, 0x2e38f93f
add edi, dword [ebp - 0x1c]
mov ebx, 0x5504f87b
sub ebx, 0x68f18654
mov dword [ebp - 8], 0xf93880d1
mov edx, dword [edi]
add dword [ebp - 8], eax
xor edx, ebx
xor dword [ebp - 0x10], ebx
mov dword [esi], edx
mov dword [ebp - 8], 0x70d17567
add esi, 0x38ab2ddf
add esi, 0xc754d225
add edi, 4
loop 0x4082d2
add eax, 0xf607
xor ebx, ebx
add ebx, eax
add eax, 0xde27ca4f
add eax, 0x21d835b6
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x414c51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x459f30
cmp edx, dword [eax]
je 0x414c73
add eax, 8
inc ecx
cmp eax, 0x459fc0
jl 0x414c64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x459f30]
jne 0x414da1
mov eax, dword [0x45f284]
cmp eax, 1
je 0x414d7b
test eax, eax
jne 0x414ca4
cmp dword [0x459664], 1
je 0x414d7b
cmp edx, 0xfc
je 0x414da1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414cdb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414f90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004105d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414d1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004105d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44cb74
push edi
call fcn.0040f010
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414f90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414fa0
lea eax, [ebp - 0xa0]
push 0x44cb54
push eax
call fcn.00414fa0
push dword [esi + 0x459f34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414fa0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041af27
add esp, 0x2c
pop edi
jmp 0x414da1
lea eax, [ebp + 8]
lea esi, [esi + 0x459f34]
push 0
push eax
push dword [esi]
call fcn.004105d0
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