joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013293
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x10022e2f
call fcn.100174bc
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.100134bc
test al, 0x10
pop ecx
je 0x1001340e
push 1
lea eax, [ebp + 8]
pop edi
push 0x100287d4
push eax
lea eax, [ebp - 0x88]
push eax
call 0x10013443
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.100027da
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.1000316f
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x100133b9
test edi, edi
je 0x100133b2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x100287d0
push eax
call edi
test eax, eax
je 0x1001339d
lea eax, [ebp - 0x1bc]
push 0x100287cc
push eax
call edi
test eax, eax
je 0x1001339d
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x10024398
mov dword [ebp - 0x20], 0x10024390
call fcn.10002642
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.1000b169
add esp, 0xc
call fcn.10013293
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.1000316f
lea eax, [ebp - 0x1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x10013317
push esi
call ebx
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100027da
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x100133e8
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.10004fe6
lea eax, [ebp - 0x60]
push 0x100254c0
push eax
call fcn.10017c3f
cmp dword [ebp - 0x10], 0xffffffff
je 0x100133f3
push dword [ebp - 0x10]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000316f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.100027da
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x100133f3
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.10004fe6
lea eax, [ebp - 0xa8]
push 0x100254c0
push eax
call fcn.10017c3f
mov eax, 0x10022e5b
call fcn.100174bc
sub esp, 0x2c
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 0
mov ebx, 0x10024398
push dword [ebp + 0xc]
mov edi, 0x10024390
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.10003224
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.1000ac84
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.10003224
mov dword [ebp - 0x10], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.1000316f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100134bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.100027da
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100134f1
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.10004fe6
lea eax, [ebp - 0x48]
push 0x100254c0
push eax
call fcn.10017c3f
leave
ret

Function at 0x1001357f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x7863513
push dword [ebp + 0xc]
call fcn.10013713
add esp, 0x10
mov dword [ebp - 4], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x100136da
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.10013751
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x100136d0
push edi
push edi
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x100136c7
mov ebx, dword [ebp + 8]
xor ecx, ecx
or ebx, esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x1c], edi
jl 0x1001369d
jg 0x10013641
cmp ebx, edi
jbe 0x1001369d
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
cdq
push edx
push eax
push dword [ebp - 0x1c]
push esi
je 0x1001366a
call fcn.10018550
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.100136e9
jmp 0x10013682
call fcn.10018550
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.100136fe
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], al
add esi, 1
adc dword [ebp - 0x1c], edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x10013641
jg 0x1001369d
cmp esi, ebx
jb 0x10013641
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x100136bb
mov eax, dword [esi + 4]
cmp eax, edi
je 0x100136bb
push dword [esi + 8]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
add esp, 0x10
mov dword [esi + 0xc], eax
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push dword [ebp - 4]
call fcn.10016cc4
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x10013713
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.100170d6
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x1001374b
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x10013730
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x10013dd2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.10013f6e
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x10013e86
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10013e78
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x10013e3c
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x10013e65
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x10013e72
cmp byte [ebp - 0x838], bl
je 0x10013e78
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x10013e86
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10013ab2
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x10013eab
cmp dword [ebp + 0xc], 4
jne 0x10013ed7
cmp dword [ebp - 0x14], ebx
jne 0x10013ed7
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x10013ec3
mov ecx, edi
call fcn.100143d1
jmp 0x10013ed7
cmp ax, 4
mov ecx, edi
jne 0x10013ed2
call fcn.100145b2
jmp 0x10013ed7
call fcn.10014986
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x100143d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.10017c10
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001459f
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x1001459f
cmp dword [ebp - 0x14], 1
jne 0x1001459f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x10014562
cmp byte [ebp - 0x148], al
je 0x10014562
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x10014554
lea eax, [ebp - 0x96c]
push 0x10028afc
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x10028af8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x10028af4
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x100144b8
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.10013c57
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x100145ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015591
Capabilities:
Terminate process

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push dword [0x1002b570]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x7530
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x1002b584]
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
adc byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_HeapAlloc
push dword [0x1002b584]
mov esi, eax
push esi
call fcn.1001555d
push dword [0x1002b574]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
push esi
push dword [0x1002b578]
call eax
mov ebx, dword [str.madHcCtrl.exe]
mov ecx, edi
cmp word [esi], di
je 0x10015607
inc ecx
cmp word [esi + ecx*2], di
jne 0x10015600
push 0x5c
pop edx
jmp 0x10015613
xor eax, eax
mov word [esi + ecx*2], ax
dec ecx
invalid
invalid
push esp

Function at 0x10015593
Capabilities:
Terminate process

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push dword [0x1002b570]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x7530
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x1002b584]
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
adc byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_HeapAlloc
push dword [0x1002b584]
mov esi, eax
push esi
call fcn.1001555d
push dword [0x1002b574]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
push esi
push dword [0x1002b578]
call eax
mov ebx, dword [str.madHcCtrl.exe]
mov ecx, edi
cmp word [esi], di
je 0x10015607
inc ecx
cmp word [esi + ecx*2], di
jne 0x10015600
push 0x5c
pop edx
jmp 0x10015613
xor eax, eax
mov word [esi + ecx*2], ax
dec ecx
invalid
invalid
push esp

Function at 0x100155c2
Capabilities:
Terminate process

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push dword [0x1002b570]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x7530
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x1002b584]
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
adc byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_HeapAlloc
push dword [0x1002b584]
mov esi, eax
push esi
call fcn.1001555d
push dword [0x1002b574]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
push esi
push dword [0x1002b578]
call eax
mov ebx, dword [str.madHcCtrl.exe]
mov ecx, edi
cmp word [esi], di
je 0x10015607
inc ecx
cmp word [esi + ecx*2], di
jne 0x10015600
push 0x5c
pop edx
jmp 0x10015613
xor eax, eax
mov word [esi + ecx*2], ax
dec ecx
invalid
invalid
push esp
Function at 0x10015868
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x100158ba
push eax
call fcn.100170d6
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100158ba
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10028170
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100158be
xor al, al
jmp 0x1001591f
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x1001591d
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.100170d6
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x1001591d
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x1001590b
mov al, 1
pop ebx
leave
ret 4
Function at 0x10015d20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10022f28
call fcn.100174bc
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.100166b3
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.1001350a
cmp eax, ebx
je 0x10015d73
cmp dword [ebp - 0x10], ebx
mov dword [0x1002c04c], eax
je 0x10015d6e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0x5c]
jmp 0x10015db4
lea ecx, [ebp + 0x34]
call fcn.100166b3
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10015d58
cmp dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x18]
je 0x10015db4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.1000316f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.1000316f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1001b900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100292f8
cmp edx, dword [eax]
je 0x1001b922
add eax, 8
inc ecx
cmp eax, 0x10029388
jl 0x1001b913
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100292f8]
jne 0x1001ba50
mov eax, dword [0x1002c090]
cmp eax, 1
je 0x1001ba2a
test eax, eax
jne 0x1001b953
cmp dword [0x1002c094], 1
je 0x1001ba2a
cmp edx, 0xfc
je 0x1001ba50
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001b98a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1001a300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10017da0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1001b9cd
lea eax, [ebp - 0x1a4]
push eax
call fcn.10017da0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100249c0
push edi
call fcn.1001ea60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1001a300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1001a310
lea eax, [ebp - 0xa0]
push 0x100249a0
push eax
call fcn.1001a310
push dword [esi + 0x100292fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.1001a310
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1001f2b5
add esp, 0x2c
pop edi
jmp 0x1001ba50
lea eax, [ebp + 8]
lea esi, [esi + 0x100292fc]
push 0
push eax
push dword [esi]
call fcn.10017da0
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 0x460ad9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x460ae7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4c6389
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c5f70

Function at 0x4c6394
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c60fa

Function at 0x4cba6c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb424

Function at 0x4cbe06
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cbcda

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x43227f87
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x11d95dd7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5b281944
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x7fc62705
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219