joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44db50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44db67
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190ec
mov eax, dword [0x451f50]
cmp word [eax + 2], 0
jne 0x44db8f
mov eax, dword [0x451f50]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f228
mov eax, dword [0x451ffc]
cmp word [eax + 2], 0
jne 0x44dba9
mov eax, dword [0x451ffc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f420
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b618]
call fcn.004229b0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44dd30
mov eax, dword [0x451e78]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422d80
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f9c0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x451e78]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bf88
test eax, eax
je 0x44dc9e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004082b4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bfb0
test eax, eax
je 0x44dcb2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x451d70]
cmp byte [eax], 0
jne 0x44dce6
mov eax, ebx
call fcn.0044de58
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044fb9c
mov eax, ebx
call fcn.00450560
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44dd26
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e0d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44e182
cmp dword [ebx + 0x94], 0
jne 0x44e17c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e068
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e17c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44e142
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e17c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041374c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e151
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ece4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ed19
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x44ed26
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44fd78
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44fdb9
mov eax, esi
call fcn.004365d4
test al, al
je 0x44fdb9
mov eax, dword [ebx + 0x84]
call fcn.004362d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44fdb9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004362d0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x404024
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 0x4041c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4040d4
xor eax, eax
push ebp
push 0x4040cd
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 0x4040b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4041e0
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 0x4040d4
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 0x4041b5
cmp byte [ebp - 0xd], 0
jne 0x404116
cmp byte [ebp - 0x12], 0
je 0x4041b5
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40412f
dec ebx
cmp byte [ebx], 0x2e
je 0x40413e
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40412e
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4041b5
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40416b
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 0x4041b5
cmp byte [ebp - 0xd], 0
je 0x4041b5
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 0x4041b5
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 0x406494
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040350c
add esp, 0x104
pop ebx
ret

Function at 0x4084f0
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 0x408529
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040350c
jmp 0x408532
mov eax, ebx
mov edx, esi
call fcn.004034c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40853c
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 0x40855d
mov al, byte [esp]
jmp 0x40855f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d911
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.0040d3f8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403868
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40d8fb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x41d81c]
call fcn.00404340
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x40d268]
call fcn.00408ebc
call fcn.00402f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d918
lea eax, [ebp - 0x10]
call fcn.00403428
ret

Function at 0x40d924
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d9bf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403868
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40d999
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x41d854]
call fcn.00404340
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x40d268]
call fcn.00408ebc
call fcn.00402f40
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040d428
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9c6
lea eax, [ebp - 0x10]
call fcn.00403428
ret
Function at 0x413cc8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403858
xor eax, eax
push ebp
push 0x413d78
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.0040605c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x413d62
xor eax, eax
push ebp
push 0x413d5b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, ebx
call fcn.00403978
mov eax, dword [ebx]
call fcn.004036a4
push eax
mov eax, ebx
call fcn.00403874
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.004060c0
mov edx, eax
mov eax, ebx
call fcn.00403978
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d62
mov eax, dword [ebp - 8]
call fcn.00406124
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d7f
lea eax, [ebp - 4]
call fcn.00403428
ret
Function at 0x417184
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x200], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417229
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1f9], 0
push 0x1f4
lea eax, [ebp - 0x1f9]
push eax
lea edx, [ebp - 0x200]
mov eax, esi
call fcn.00417150
mov eax, dword [ebp - 0x200]
call fcn.00403868
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
lea eax, [ebp - 0x200]
lea edx, [ebp - 0x1f9]
mov ecx, 0x1f5
call fcn.00403654
mov eax, dword [ebp - 0x200]
lea edx, [ebp - 4]
call fcn.004028d8
cmp dword [ebp - 4], 0
jne 0x417208
cmp ebx, eax
je 0x41720c
xor eax, eax
jmp 0x41720e
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417230
lea eax, [ebp - 0x200]
call fcn.00403428
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403868
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x418b9d
test al, 0x10
jne 0x418ba1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x418ba8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403858
xor eax, eax
push ebp
push 0x418c75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004036a4
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00418b54
test eax, eax
je 0x418c06
mov eax, dword [ebp - 4]
call fcn.00418b54
cmp byte [eax], 0x5c
jne 0x418c06
mov eax, dword [ebp - 4]
call fcn.004036a4
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.004038e8
mov eax, dword [ebp - 4]
call fcn.004036a4
cmp eax, 3
jl 0x418c5a
mov eax, dword [ebp - 4]
call fcn.00418b84
test al, al
jne 0x418c5a
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00406384
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004037b4
je 0x418c5a
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00406384
mov eax, dword [ebp - 8]
call fcn.00418ba8
push 0
mov eax, dword [ebp - 4]
call fcn.00403868
push eax
call sub.kernel32.dll_CreateDirectoryA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418c7c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040344c
ret
Function at 0x419270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
cmp dword [edx + 4], 0x4cf
jne 0x41932c
cmp byte [ebx + 0x1f8], 0
je 0x41932c
push esp
call sub.user32.dll_GetCursorPos
push 0x17
call sub.user32.dll_GetSystemMetrics
test eax, eax
setne al
and eax, 0x7f
inc eax
push eax
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x4192bd
xor edx, edx
mov eax, ebx
call fcn.00419e2c
jmp 0x41932c
mov ecx, dword [esp]
sub ecx, dword [ebx + 0x1fc]
mov esi, dword [esp + 4]
sub esi, dword [ebx + 0x200]
cmp byte [ebx + 0x1f9], 0
jne 0x4192f1
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x4192f1
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x41932c
add dword [ebx + 0x1c], ecx
add dword [ebx + 0x18], esi
mov eax, dword [esp]
mov dword [ebx + 0x1fc], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0x200], eax
push 0xffffffffffffffff
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_MoveWindow
mov byte [ebx + 0x1f9], 1
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x419334
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4194ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0x25c]
call fcn.004034c0
mov edx, dword [ebp - 0xc]
mov eax, 0x419508
call fcn.00403930
mov ebx, eax
test ebx, ebx
jne 0x41938a
mov eax, dword [ebp - 0xc]
call fcn.004036a4
mov ebx, eax
inc ebx
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004038a8
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 8]
call fcn.004036f0
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 1
call fcn.004038e8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040644c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00405e54
mov eax, dword [ebp - 0x10]
mov edx, 0x419514
call fcn.004037b4
jne 0x419487
mov eax, dword [ebp - 8]
call fcn.00403868
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4194d4
xor eax, eax
push ebp
push 0x419480
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41951c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x419469
xor eax, eax
push ebp
push 0x41945f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x419530
call fcn.004036ac
mov eax, dword [ebp - 0xc]
call fcn.00403868
push eax
mov eax, dword [esi + 4]
push eax
lea eax, [ebp - 0x114]
push eax
call ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419469
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4194d4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040644c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00405e54
mov eax, dword [ebp - 0x10]
mov edx, 0x41953c
call fcn.004037b4
jne 0x4194d4
push 1
push dword [ebp - 8]
push 0x419508
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403764
mov eax, dword [ebp - 0x10]
call fcn.00403868
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4194f6
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040344c
ret
Function at 0x401000
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x401010
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x40101c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x401026
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x401030
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x40103a
or eax, 8
shr ecx, 1
test cl, 1
je 0x401044
or eax, 4
shr ecx, 1
test cl, 1
je 0x40104e
or eax, 2
test cl, 2
je 0x401056
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x401110
test al, 1
je 0x40111d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x401110
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x401004
pop edi
pop ebx
ret

Function at 0x401140
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x41e0b8
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.0040513f
add esp, 0xc
test eax, eax
je 0x401171
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.00405186
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x40119d
mov edx, dword [ebp - 4]
push edx
call fcn.00405287
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.00405545
add esp, 0x10
test eax, eax
je 0x4011fa
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x4011e1
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x4011c0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.00405545
add esp, 0x10
test eax, eax
jne 0x4011b6
pop ebx
push edi
call fcn.00405562
mov edx, dword [ebp - 4]
push edx
call fcn.00405287
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x402910
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 8]
push 0x100
push ebx
call fcn.0040586f
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402967
push ebx
push str.__s__Could_not_open_file
add esi, 0x214
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
mov eax, dword [esi]
test eax, eax
je 0x402988
push eax
call fcn.00405b21
add esp, 4
mov dword [esi], 0
mov ecx, dword [esi + 4]
push ecx
call fcn.0040473a
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x4029c0
push ebx
push str.__s__Could_not_alloc_file_buffer
add esi, 0x214
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4029e5
push ebx
push str.__s__Could_not_read_file
jmp 0x4029a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x210], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405074
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421680]
jne 0x40507e
repz ret
jmp fcn.00409b75

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40c816
call fcn.0040a236
mov dword [eax], esi
call fcn.0040a223
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040a1d1
mov eax, esi
jmp 0x40c86b
test dword [ebp + 0xc], 0xfffffff9
jne 0x40c7fc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c843
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a249
pop ecx
call fcn.0040a223
mov eax, dword [eax]
jmp 0x40c86b
test al, 0x10
jne 0x40c869
test al, 1
je 0x40c869
test byte [ebp + 0xc], 2
je 0x40c869
call fcn.0040a236
mov dword [eax], 5
call fcn.0040a223
mov dword [eax], 0xd
jmp 0x40c83a
xor eax, eax
pop esi
pop ebp
ret