joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48538c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4853d8
mov eax, esi
call fcn.00472574
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4853d8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4853d8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x485517
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x485418
cmp eax, 0x108
ja 0x485418
mov eax, esi
call fcn.00472574
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48550e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x485517
jmp 0x48550e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4854f7
cmp eax, 0x20a
ja 0x4854f7
test byte [esi + 0x50], 0x80
jne 0x48544a
sub eax, 0x203
je 0x485447
sub eax, 3
je 0x485447
sub eax, 3
jne 0x48544a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x48545e
dec eax
je 0x485473
dec eax
je 0x485490
dec eax
je 0x485473
jmp 0x485497
mov ecx, ebx
mov eax, dword [0x4f66d0]
mov eax, dword [eax]
mov edx, esi
call fcn.0047bf88
jmp 0x48550e
cmp byte [esi + 0x5d], 1
jne 0x485489
mov eax, esi
mov si, 0xffed
call fcn.00453948
jmp 0x485517
or word [esi + 0x54], 1
jmp 0x48550e
and word [esi + 0x54], 0xfffe
jmp 0x48550e
mov eax, dword [0x4f76bc]
cmp byte [eax + 0x20], 0
je 0x48550e
mov eax, dword [0x4f76bc]
cmp dword [eax + 0x1c], 0
je 0x48550e
mov eax, dword [ebx]
mov edx, dword [0x4f76bc]
cmp eax, dword [edx + 0x1c]
jne 0x48550e
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004724b8
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00453948
jmp 0x485517
cmp eax, 0xb00b
jne 0x48550e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00483cc8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4889a8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4889c4
cmp dword [esi + 4], 0
je 0x4889f1
test byte [ebx + 0x55], 1
jne 0x4889e3
mov eax, ebx
call fcn.0048766c
test eax, eax
jne 0x4889e3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x488b01
mov edx, esi
mov eax, ebx
call fcn.004884c8
jmp 0x488b01
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x488afa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0048a7b0
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004852c0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004889a8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0048a7b0
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488b01
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48efd4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4f66cc]
cmp byte [eax + 0xc], 0
je 0x48f141
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48f13a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f7710], 0
jne 0x48f028
push 0x48f148
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x48f150
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7710], eax
cmp dword [0x4f0eb0], 0
jne 0x48f123
push 0x48f160
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4f0eb0], eax
cmp dword [0x4f0eb0], 0
je 0x48f123
push 0x48f16c
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7714], eax
push 0x48f17c
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7718], eax
push 0x48f190
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f771c], eax
push 0x48f1a8
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7720], eax
push 0x48f1c0
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7724], eax
push 0x48f1d4
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7728], eax
push 0x48f1ec
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f772c], eax
push 0x48f204
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7730], eax
push 0x48f220
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7734], eax
push 0x48f22c
mov eax, dword [0x4f0eb0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7738], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f141
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x491c10
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 0x491c2c
call fcn.004931f4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x491c48
test bl, 1
je 0x491c48
call fcn.00496f8c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x491e2c
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.00492d90
test byte [ebp + 0xd], 0xc0
jne 0x491e50
mov eax, dword [0x4f1db8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x491e5d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x491e8a
je 0x491e9c
sub ecx, 0x100
je 0x491eaa
sub ecx, 0x100
je 0x491eb1
sub ecx, 0x100
je 0x491ea3
jmp 0x491eb8
sub ecx, 0x600
je 0x491eb1
sub ecx, 0x100
je 0x491e9c
jmp 0x491eb8
mov edi, 1
jmp 0x491ebd
mov edi, 2
jmp 0x491ebd
mov edi, 4
jmp 0x491ebd
mov edi, 5
jmp 0x491ebd
mov edi, 3
test byte [ebp + 0xd], 1
je 0x491ee4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4f1830]
test al, 0x80
je 0x491edd
mov ebx, 0x80
jmp 0x491ef6
mov ebx, 1
jmp 0x491ef6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x491ef6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x491f08
je 0x491f11
dec eax
je 0x491f1a
jmp 0x491f23
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x491f32
mov dword [ebp - 4], 0x40000000
jmp 0x491f32
mov dword [ebp - 4], 0xc0000000
jmp 0x491f32
push 1
call fcn.00493188
pop ecx
mov ebx, eax
jmp 0x492022
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x491f4e
sub eax, 0x10
je 0x491f55
sub eax, 0x10
je 0x491f5e
sub eax, 0x10
je 0x491f67
jmp 0x491f67
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x491f6e
mov dword [ebp - 8], 1
jmp 0x491f6e
mov dword [ebp - 8], 2
jmp 0x491f6e
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 0x491fdb
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x491fd0
test byte [ebp + 0xd], 1
je 0x491fcb
mov ebx, 0x50
jmp 0x491fd0
mov ebx, 2
push ebx
call fcn.00493188
pop ecx
mov ebx, eax
jmp 0x492022
mov edi, esi
push edi
call fcn.00491d90
pop ecx
test eax, eax
je 0x491fef
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x491ffb
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00492eb0
add esp, 8
mov ebx, eax
inc eax
jne 0x492022
push 4
call fcn.00493188
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00492dc4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496f24
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 0x496f86
call fcn.00496ed4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00490908
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.00490908
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 0x497004
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4f2e58], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4970de
cmp dword [0x4f2e54], 0
jne 0x4970de
cmp dword [0x4f3058], 0
je 0x497098
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00496dd4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49707e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00496dd4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49707e
lea ebx, [ebp - 0x84]
jmp 0x49707f
inc ebx
call fcn.00496fc0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x497119
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4f2e5c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00490908
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4f2e5f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x497119
cmp dword [0x4f2e54], 0
je 0x4970f8
cmp dword [0x4f2e54], 0xffffffff
je 0x497119
push esi
call dword [0x4f2e54]
pop ecx
mov eax, dword [0x4f2e58]
test eax, eax
je 0x497119
cmp dword [0x4f2e58], 0xffffffff
je 0x497119
cmp byte [eax], 0
je 0x497119
push esi
push eax
call fcn.00496f24
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497924
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4f7fa0], 0
jne 0x4979a5
cmp dword [0x4f7fc0], 0
jne 0x497954
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4f7fc0], eax
test eax, eax
jne 0x497954
push str.GetEnvironmentStrings_failed
call fcn.00497130
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4f7fc0]
jmp 0x497968
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00490908
pop ecx
mov edi, eax
test eax, eax
jne 0x497960
lea edi, [ebp + 1]
push edi
call fcn.004901ec
pop ecx
mov ebx, eax
mov dword [0x4f7fa4], ebx
test ebx, ebx
jne 0x497992
xor eax, eax
jmp 0x497a68
push edi
mov edx, dword [0x4f7fc0]
push edx
push ebx
call fcn.004907b8
add esp, 0xc
jmp 0x4979c5
xor esi, esi
mov ebx, dword [0x4f7fa0]
jmp 0x4979bf
push eax
call fcn.00490908
pop ecx
test eax, eax
jne 0x4979bb
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4979af
lea ebx, [esi + 4]
push 4
mov dword [0x4f7fa8], ebx
inc ebx
push ebx
call fcn.0048f9a8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4979e8
xor eax, eax
jmp 0x497a68
cmp dword [0x4f7fa0], 0
jne 0x497a19
xor esi, esi
mov ebx, dword [0x4f7fa4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x497a0a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00490908
pop ecx
mov edi, eax
test eax, eax
jne 0x497a00
jmp 0x497a4a
xor esi, esi
mov ebx, dword [0x4f7fa0]
mov eax, dword [esp]
mov edi, eax
jmp 0x497a44
push eax
call fcn.00490908
pop ecx
test eax, eax
je 0x497a39
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x497a3d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x497a28
mov eax, dword [0x4f7fa0]
test eax, eax
je 0x497a5a
push eax
call fcn.004901fc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4f7fa0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49d6d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea edx, [ebp - 0x208]
push edx
call sub.USER32.DLL_wvsprintfA
cmp eax, 0x208
jl 0x49d714
push 0x10e
push str.c:_bcbemuvclutilcls.h
push str.bufSize___sizeof_szBuffer_
call fcn.004078e0
add esp, 0xc
cmp eax, 2
jne 0x49d714
call sub.KERNEL32.DLL_DebugBreak
lea ecx, [ebp - 0x208]
push ecx
call sub.KERNEL32.DLL_OutputDebugStringA
mov esp, ebp
pop ebp
ret
Function at 0x49f4f4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x49f522
mov eax, ebx
call fcn.0049ffac
cmp dword [ebx + 0x3c], 0
je 0x49f51b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x49f593
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x49f585
cmp dword [ebx + 8], 0
je 0x49f544
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x49f556
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49f585
cmp dword [ebx + 8], 0
je 0x49f537
cmp eax, 3
je 0x49f569
dec eax
jne 0x49f537
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 0x49f537
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x49f537
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x49f5b1
cmp dword [ebx + 0x10], 0xcc
je 0x49f5b1
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.0049f5bc
pop ebx
ret

Function at 0x4b0ea0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
lea eax, [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call fcn.00493614
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call sub.KERNEL32.DLL_OutputDebugStringA
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x403203
pop dword [ebp - 0x14]
mov eax, 0x4747c632
add eax, 0xb8f86bd1
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x4b6cd03c
add dword [ebp - 0x24], 0x2e5750f
mov dword [ebp - 0x20], 0x335ca42f
sub dword [ebp - 0x20], 0x12957ea
mov dword [ebp - 0x1c], 0xef3e525
sub dword [ebp - 0x1c], 0xc2a7a0f7
mov dword [ebp - 0x18], 0x254c81c
sub dword [ebp - 0x18], 0x254c81c
lea eax, [ebp - 0x24]
push eax
mov eax, 0xec20fdc6
add eax, 0x141f82c6
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x56ba4013
add dword [ebp - 0x24], 0x1db82943
mov dword [ebp - 0x20], 0x1872d91a
add dword [ebp - 0x20], 0x28f9885b
mov dword [ebp - 0x1c], 0xa24057a3
sub dword [ebp - 0x1c], 0x3ed0eb37
mov dword [ebp - 0x18], 0xb8fcd2a2
sub dword [ebp - 0x18], 0xb8fcd2a2
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x2e3382da
add eax, 0xd20cfdfa
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x38df1
push 0
call eax
mov ecx, 0xda388c5d
sub ecx, 0xda383b41
xor edi, edi
add edi, eax
mov edx, 0xa44b2b4
add edx, 0xf5fc5d4c
add edx, dword [ebp - 0x14]
mov esi, 0xbe5ca499
sub dword [ebp - 4], esi
mov ebx, dword [edx]
xor dword [ebp - 0xc], eax
add ebx, esi
add dword [ebp - 0xc], ebx
mov dword [edi], ebx
xor dword [ebp - 0x10], eax
add edi, 0x9dbc70b1
sub edi, 0x9dbc70ad
add edx, 0x4773bb67
add edx, 0xb88c449d
loop 0x403321
add eax, 0xf34a8af1
add eax, 0xcb6ac52
xor ebx, ebx
add ebx, eax
add eax, 0x199c57f6
add eax, 0xe663a80f
mov ecx, 0xbb5c675f
sub ecx, 0xbb1c675f
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x402793
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4027a2
pop dword [ebp - 8]
mov eax, 0x4027a2
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x36f0a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x3c77
mov ebx, eax
mov esi, 0xe35e195d
add esi, 0x1ce32267
add esi, dword [ebp - 8]
mov edx, 0x42108dbd
mov edi, dword [esi]
add dword [ebp - 4], 0x497fe587
xor edi, edx
xor dword [ebp - 4], edi
mov dword [ebx], edi
add dword [ebp - 4], 0x8e988e9c
add ebx, 0x5b834211
sub ebx, 0x5b83420d
add esi, 4
loop 0x4027eb
add eax, 0x73641dd9
sub eax, 0x7363392a
xor ebx, ebx
add ebx, eax
add eax, 0x3632bca7
add eax, 0xc9cd435e
mov ecx, 0xdf0b7993
add ecx, 0x2134866d
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x100010b0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
push 0
call fcn.100011d8
push 0
push str.startexetest.exe__i_222.bin
mov dword [esi], 0x10002148
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, esi
pop esi
ret
mov ecx, 0x100030d0
jmp 0x10001040
Function at 0x10003a30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x10003a3c
pop esi
mov eax, edx
ret 4
Function at 0x10003aa5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, edx
mov ebp, ecx
push 0xc
pop edx
mov ecx, eax
mov dword [esp + 0x18], eax
mov ebx, 0x9e3779b9
mov dword [esp + 0x10], ecx
xor edi, edi
mov esi, ebx
cmp eax, edx
jb 0x10003bbd
push 0xc
xor edx, edx
pop ecx
div ecx
mov dword [esp + 0x14], eax
movzx edx, byte [ebp + 7]
movzx ecx, byte [ebp + 6]
movzx eax, byte [ebp + 5]
shl edx, 8
add edx, ecx
movzx ecx, byte [ebp + 0xb]
shl ecx, 8
shl edx, 8
add edx, eax
movzx eax, byte [ebp + 4]
add esi, eax
shl edx, 8
movzx eax, byte [ebp + 0xa]
add esi, edx
add ecx, eax
movzx eax, byte [ebp + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp + 8]
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 2]
add edi, ecx
movzx ecx, byte [ebp + 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp]
shl ecx, 8
add ecx, eax
mov eax, edi
shr eax, 0xd
sub ecx, edi
sub ecx, esi
sub esi, edi
add ebx, ecx
xor ebx, eax
sub esi, ebx
mov eax, ebx
shl eax, 8
xor esi, eax
sub edi, esi
mov eax, esi
shr eax, 0xd
sub edi, ebx
xor edi, eax
sub ebx, edi
mov eax, edi
shr eax, 0xc
sub ebx, esi
xor ebx, eax
sub esi, edi
sub esi, ebx
mov eax, ebx
shl eax, 0x10
xor esi, eax
sub edi, esi
mov eax, esi
shr eax, 5
sub edi, ebx
xor edi, eax
sub ebx, edi
mov eax, edi
shr eax, 3
sub ebx, esi
xor ebx, eax
sub esi, edi
mov eax, ebx
sub esi, ebx
shl eax, 0xa
xor esi, eax
sub edi, esi
mov eax, esi
shr eax, 0xf
sub edi, ebx
xor edi, eax
push 0xc
pop eax
add ebp, eax
mov ecx, dword [esp + 0x10]
sub ecx, eax
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], ecx
jne 0x10003ad9
mov eax, dword [esp + 0x18]
add edi, eax
lea eax, [ecx - 1]
cmp eax, 0xa
ja case.default.0x10003bc7
jmp dword [eax*4 + 0x10003c99]
movzx eax, byte [ebp + 0xa]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebp + 9]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebp + 8]
shl eax, 8
add edi, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebp + 6]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebp + 5]
shl eax, 8
add esi, eax
movzx eax, byte [ebp + 4]
add esi, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [ebp + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [ebp]
add ebx, eax
sub ebx, edi
mov eax, edi
sub ebx, esi
shr eax, 0xd
xor ebx, eax
sub esi, edi
sub esi, ebx
mov eax, ebx
shl eax, 8
xor esi, eax
sub edi, esi
mov eax, esi
sub edi, ebx
shr eax, 0xd
xor edi, eax
sub ebx, edi
mov eax, edi
sub ebx, esi
shr eax, 0xc
xor ebx, eax
sub esi, edi
sub esi, ebx
mov eax, ebx
shl eax, 0x10
xor esi, eax
sub edi, esi
mov eax, esi
sub edi, ebx
shr eax, 5
xor edi, eax
sub ebx, edi
mov eax, edi
sub ebx, esi
shr eax, 3
xor ebx, eax
sub esi, edi
sub esi, ebx
mov ecx, ebx
shl ecx, 0xa
xor esi, ecx
sub edi, esi
shr esi, 0xf
sub edi, ebx
xor edi, esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret