joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ca8d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ca9ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ca9ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.004fb4d8
mov esi, eax
test esi, esi
je 0x4ca9ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4ca9ed
mov ecx, esi
call fcn.004ca840
cmp edi, eax
jge 0x4ca9ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4ca973
mov dword [esp + 0x34], 1
jmp 0x4ca9ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4ca9ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004c9df0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4fa821
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005059d7
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4fa852
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004fa865
pop edi
pop esi
pop ebx
ret 8

Function at 0x4fbec2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4fbefa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f9e49
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f9e21
jmp 0x4fbf06
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4fd883
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4fd8c5
call fcn.005059d7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4fd8c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4fd8bc
xor eax, eax
jmp 0x4fd8cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004fd8d3
pop edi
pop esi
pop ebx
ret 4

Function at 0x505f07
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x505f35
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x505f53
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00505e6d
jmp 0x505f53
mov eax, dword [esi + 0x14]
test eax, eax
je 0x505f53
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00505e6d
test edi, edi
mov eax, edi
jne 0x505f3d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x508d73
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x508d9b
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x508dac
push 2
call edi
test ax, ax
jge 0x508dac
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004fb4b1
cmp dword [esi + 0x30], ebx
jne 0x508e86
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004fb4b1
cmp eax, dword [esp + 0x34]
jne 0x508e86
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x508e22
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x508e67
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x508e86
cmp eax, 0x205
je 0x508e86
cmp eax, 0x201
je 0x508e86
cmp eax, 0x204
je 0x508e86
cmp eax, ebx
jne 0x508e4d
cmp dword [esp + 0x1c], 0x1b
je 0x508e86
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5bd1f4]
jbe 0x508e7c
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x508ddf
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401d10
Capabilities:
Access peb ldr_data
Check mutex on windows
Create thread
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x405018]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov eax, dword fs:[0x30]
push 0xf0000000
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax + 0x14]
push 0
mov eax, dword [eax + 0x20]
push 0
push 0x405438
mov dword [0x405434], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401d7c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.004022bd
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [0x405434]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401dd9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401dd9
push 0
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401dd9
push dword [esp + 0xc]
mov edx, edi
mov ecx, ebx
call fcn.00401530
push str.Global3pc6RWOgectGTFqCowxjeGy3XIGPtLwNrsr2zDctYD4hAU5pj4GW7rm8gHrHyTB6
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401e0e
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004022bd
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x401cd0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x401bb0
push 0
push 0
call esi
push 0x400
lea eax, [esp + 0x24]
push eax
push str.userprofile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.ntdll.dll_NtDelayExecution]
mov dword [esp + 0x10], 0x4d2fa200
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00401a90
lea eax, [esp + 0x10]
push eax
push 0
call esi
jmp 0x401e61

Function at 0x473890
Capabilities:
Encode data using xor

Disassembly:
push 0x4735cc
mov ecx, dword [esp]
add esp, 4
add ebx, 0x3ab375ea
sub edi, 0x219aacdf
mov edi, ebx
call fcn.004738e0
inc ebx
mov edi, 0xcc51cd01
xor dword [eax], ecx
add ebx, 1
push ebx
pop ebx
add eax, 2
add edi, 0x5ff0cac3
dec edi
cmp eax, edx
jl fcn.00473890
add ebx, 0x21f51728
sub ebx, 0xce15f977
ret
Function at 0x401170
Capabilities:
Set console window title

Disassembly:
sub esp, 0x104
mov eax, dword [0x407618]
push ebx
push ebp
push esi
push edi
push 0x407144
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0xa
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
or ecx, 0xffffffff
mov ebp, eax
xor eax, eax
mov edi, 0x407500
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, str.console_
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [esp + 0x10], 0x84
mov word [esp + 0x12], 0x3e8
mov esi, str.console_
mov eax, str.consolecimit
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40120e
test cl, cl
je 0x40120a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40120e
add eax, 2
add esi, 2
test cl, cl
jne 0x4011ea
xor eax, eax
jmp 0x401213
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401229
push str.console_
push str.consolecimit
call fcn.00402470
add esp, 8
or ecx, 0xffffffff
xor eax, eax
mov edi, str.console_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x407500
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, dword [0x407614]
push ebx
push 0xfffffffffffffff2
push ecx
call dword [sym.imp.USER32.dll_SetClassLongA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x401270
call esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 3
push eax
mov dword [0x407620], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
call sub.cimit.dll_gui_iswin95
test eax, eax
jne 0x4012a0
mov edx, dword [esp + 0x10]
mov eax, dword [0x407620]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
lea ecx, [esp + 0x14]
push ecx
call sub.cimit.dll_get_console_title
add esp, 4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x40761c], eax
mov dword [0x4074fc], eax
call esi
mov edx, dword [0x407630]
mov eax, ebp
sub eax, edx
cmp eax, 0x5a
jge 0x4012f0
add eax, 0xa
jmp 0x4012f5
mov eax, 0x64
mov ecx, dword [0x407640]
test ecx, ecx
push 0x40
jne 0x401332
mov ecx, dword [0x40762c]
mov edx, dword [0x4074fc]
push 0xc8
push ecx
sub ebp, eax
sub ebp, 0xc8
push ebp
push 0
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov eax, dword [0x4074e8]
mov ecx, dword [0x4074ec]
mov edx, dword [0x4074f4]
push eax
mov eax, dword [0x4074f0]
push ecx
mov ecx, dword [0x4074fc]
push edx
push eax
push 0xfffffffffffffffe
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x401b10
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x140
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
call edi
push 8
push esi
mov dword [esp + 0x18], eax
call edi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
call sub.cimit.dll_gui_iswin95
test eax, eax
je 0x401b64
mov ebp, 6
add ebx, 0xa
jmp 0x401b6c
mov ebp, 2
add ebx, 5
mov eax, dword [0x40760c]
test eax, eax
je 0x401b8e
lea eax, [ebp + 0x400]
lea ecx, [ebx + 0x300]
mov dword [0x40762c], eax
mov dword [0x407630], ecx
jmp 0x401bd0
mov eax, dword [0x407630]
test eax, eax
jne 0x401b9e
push 0xa
push esi
call edi
jmp 0x401ba6
mov eax, dword [0x407630]
add eax, 0x14
mov dword [0x407630], eax
mov eax, dword [0x40762c]
test eax, eax
jne 0x401bb9
push 8
push esi
call edi
mov ecx, dword [0x407630]
lea ecx, [ecx + ebx - 0x14]
add eax, ebp
mov dword [0x407630], ecx
mov dword [0x40762c], eax
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jge 0x401be0
mov dword [0x40762c], ebx
jmp 0x401be6
mov dword [esp + 0x14], eax
mov ebx, eax
mov edi, dword [esp + 0x10]
cmp edi, ecx
jge 0x401bf6
mov dword [0x407630], edi
jmp 0x401bfc
mov dword [esp + 0x10], ecx
mov edi, ecx
call fcn.00401000
lea edx, [esp + 0x50]
push edx
call sub.cimit.dll_get_title
mov esi, dword [esp + 0x158]
mov eax, dword [0x407648]
mov ecx, dword [0x407644]
add esp, 4
push 0
push esi
push 0
push 0
push edi
push ebx
push eax
push ecx
push 0x28a0000
lea edx, [esp + 0x74]
push edx
push 0x4073e4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x407614], eax
jne 0x401c56
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call sub.cimit.dll_ShowSplashScreen
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x140
ret
Function at 0x4029b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
jmp 0x4029f5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d20
Capabilities:
Link many functions at runtime

Disassembly:
lea esi, [0x408818]
push esi
mov eax, dword [0x408408]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x40882d], eax
mov dword [0x4080f5], 1
mov eax, 0x4000
push eax
lea eax, [0x408333]
push eax
lea eax, [0x4080e1]
push eax
lea esi, [0x4085cf]
call dword [esi]
cmp eax, 0xffffffff
jne 0x403d6c
mov dword [0x4080f5], 0
cmp dword [0x4080f5], 0
je 0x403de2
mov eax, 0x4000
push eax
lea eax, [0x408333]
push eax
lea eax, [0x4080ca]
push eax
lea esi, [0x4085cf]
call dword [esi]
cmp eax, 0xffffffff
je 0x403de2
lea eax, [0x4080ca]
push eax
call dword [0x4081f3]
mov dword [0x4080ed], eax
cmp eax, 0
je 0x403de2
lea edx, [0x4080f9]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x403de2
mov dword [0x40814b], eax
mov eax, dword [0x4080ed]
lea edx, [0x408130]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x403de2
mov dword [0x40814f], eax
jmp 0x403e5a
mov eax, 0x4000
push eax
lea eax, [0x408333]
push eax
lea eax, [0x4080d7]
push eax
lea esi, [0x4085cf]
call dword [esi]
cmp eax, 0xffffffff
je 0x403e4f
lea eax, [0x4080d7]
push eax
call dword [0x4081f3]
mov dword [0x4080f1], eax
cmp eax, 0
je 0x403e4f
lea edx, [0x408115]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x403e4f
mov dword [0x40814b], eax
mov eax, dword [0x4080f1]
lea edx, [0x40813e]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x403e4f
mov dword [0x40814f], eax
jmp 0x403e65
mov dword [0x408153], 0
ret
mov dword [0x408153], 1
ret
mov dword [0x408153], 2
ret

Function at 0x40417d
Capabilities:
Packed with generic packer

Disassembly:
pushal
push eax
push ecx
push edx
test ax, 1
je 0x40419a
push ecx
push edx
call dword [0x408763]
cmp eax, 0
je 0x40419a
pop edx
pop ecx
pop eax
stc
jmp 0x4041b5
pop edx
pop ecx
pop eax
test ax, 2
je 0x4041b4
push ecx
push edx
call dword [0x408775]
cmp ax, 0
je 0x4041b4
stc
jmp 0x4041b5
clc
popal
ret
Function at 0x404fe8
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov ecx, dword [eax]
push edi
mov edi, dword [esp + 0x14]
lea ebp, [eax + 8]
mov dword [esp + 0x14], 0xc
mov edx, dword [edi + 4]
add edx, ecx
mov ecx, dword [edi]
mov dword [edi + 4], edx
mov edx, dword [eax + 4]
add ecx, edx
mov dword [edi], ecx
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov esi, ebx
mov edx, ebx
shr esi, 4
xor edx, ecx
and esi, 0x1f
mov ecx, 0x20
mov eax, edx
sub ecx, esi
add ebp, 8
shr eax, cl
mov ecx, esi
shl edx, cl
mov ecx, 0x20
or eax, edx
mov edx, dword [ebp - 8]
sub eax, edx
mov edx, eax
mov dword [edi + 4], eax
shr edx, 7
and edx, 0x1f
xor eax, ebx
sub ecx, edx
mov esi, eax
shr esi, cl
mov ecx, edx
mov edx, dword [ebp - 4]
shl eax, cl
or esi, eax
mov eax, dword [esp + 0x14]
add esi, edx
dec eax
mov dword [edi], esi
mov dword [esp + 0x14], eax
jne 0x405012
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405071
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
lea ebp, [eax + 0x60]
mov dword [esp + 0x14], 0xc
mov ebx, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [ebp + 4]
mov esi, ebx
shr esi, 7
sub edx, ecx
and esi, 0x1f
mov ecx, 0x20
mov eax, edx
sub ecx, esi
sub ebp, 8
shl eax, cl
mov ecx, esi
shr edx, cl
or eax, edx
xor eax, ebx
mov dword [edi], eax
mov ecx, dword [ebp + 8]
mov edx, eax
shr edx, 4
lea esi, [ebx + ecx]
and edx, 0x1f
mov ecx, 0x20
mov ebx, esi
sub ecx, edx
shl ebx, cl
mov ecx, edx
shr esi, cl
or ebx, esi
xor ebx, eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [edi + 4], ebx
mov dword [esp + 0x14], eax
jne 0x405088
mov eax, dword [esp + 0x18]
mov esi, dword [edi]
mov ecx, ebx
mov edx, dword [eax + 4]
sub esi, edx
mov dword [edi], esi
mov eax, dword [eax]
sub ecx, eax
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4050fc
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x90]
push ebx
push esi
mov esi, dword [esp + 0x94]
lea ebx, [eax + 7]
shr ebx, 3
and eax, 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
jne 0x40512d
mov dword [esp + 0x10], 8
push ebp
push edi
lea eax, [ebx - 1]
xor edx, edx
xor ecx, ecx
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
jbe 0x4051fd
mov ebp, dword [esi]
xor ebp, ecx
mov ecx, dword [esi + 4]
xor ecx, edx
mov dword [esi], ebp
test edi, edi
mov dword [esi + 4], ecx
jne 0x4051cf
cmp ebx, 2
push edi
jbe 0x4051c2
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0040552d
mov edi, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x30], edi
lea eax, [esp + 0x30]
mov ebx, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
add ecx, edx
mov ebp, edi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, edi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x34]
xor ebp, edx
dec ebx
mov dword [esp + 0x34], ebp
jne 0x405183
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x4051dd
push 0
push esi
call fcn.0040552d
add esp, 0xc
jmp 0x4051dd
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00404fe8
add esp, 8
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
inc edi
lea eax, [ebx - 1]
mov dword [esp + 0x10], ecx
cmp edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edi
jb 0x40514c
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jbe 0x405228
mov ebp, esi
lea ecx, [esp + 0x10]
sub ebp, ecx
mov cl, byte [esp + edi + 0x10]
lea eax, [esp + edi + 0x10]
mov dl, byte [ebp + eax]
xor cl, dl
inc edi
mov byte [eax], cl
mov eax, dword [esp + 0x18]
cmp edi, eax
jb 0x40520f
pop edi
cmp ebx, 2
pop ebp
jbe 0x405243
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00404fe8
add esp, 8
jmp 0x405266
cmp ebx, 1
jne 0x405255
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.0040552d
add esp, 0xc
cmp ebx, 1
jbe 0x40529a
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
jbe 0x405281
mov dl, byte [esi + eax - 8]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jb 0x405275
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret
Function at 0x4052b2
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
lea ebp, [eax + 7]
push esi
shr ebp, 3
and eax, 7
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
jne 0x4052e5
mov dword [esp + 0x20], 8
xor edx, edx
cmp ebp, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
jbe 0x4053ce
lea eax, [ebp - 2]
xor esi, esi
cmp eax, edx
mov dword [esp + 0x24], esi
jbe 0x4053ce
jmp 0x405315
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x405385
push edx
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.0040552d
mov esi, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x38], esi
lea eax, [esp + 0x38]
mov edi, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
add ecx, edx
mov ebp, esi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, esi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x3c]
xor ebp, edx
dec edi
mov dword [esp + 0x3c], ebp
jne 0x405346
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x405393
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00405071
add esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor eax, edx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add ebx, 8
inc esi
lea eax, [ebp - 2]
cmp esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], esi
jb 0x405313
xor edx, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp ecx, edx
mov dword [esp + 0x14], edx
jbe 0x4053f3
mov eax, ecx
lea esi, [ebx + 8]
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebp, 1
jne 0x405408
push edx
push edx
push ebx
call fcn.0040552d
add esp, 0xc
jmp 0x405490
cmp ebp, 2
jne 0x40541a
push edx
push edx
push ebx
call fcn.0040552d
add esp, 0xc
jmp 0x40542d
lea ecx, [esp + 0x38]
push ecx
push ebx
call fcn.00405071
add esp, 8
cmp ebp, 1
jbe 0x405490
mov edx, dword [ebx]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x20]
xor esi, edx
mov edx, dword [esp + 0x14]
xor edx, eax
xor eax, eax
test edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
jbe 0x40546e
mov ecx, ebx
lea edx, [esp + 0x10]
sub ecx, edx
mov dl, byte [eax + ebx + 8]
lea esi, [esp + eax + 0x10]
inc eax
mov byte [esi + ecx], dl
mov dl, byte [esi]
mov byte [eax + ebx + 7], dl
cmp eax, edi
jb 0x405458
cmp ebp, 2
jne 0x405482
push 0
push 0
push ebx
call fcn.0040552d
add esp, 0xc
jmp 0x405490
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00405071
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x1c]
xor eax, edx
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
Function at 0x477000
Capabilities:
Terminate process

Disassembly:
push section..hdata
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push 0x47600d
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp fcn.004057b8