joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fad
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x407fb4
call fcn.0041d970
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.00409000
lea eax, [esp + 4]
lea eax, [esp + 0x48]
lea ebp, [esp + 4]
mov dword [ebp], 0x44
mov dword [ebp + 0x2c], 1
mov ebx, dword [esp + 0x74]
and ebx, 2
and ebx, ebx
je 0x408003
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x40800d
lea ebp, [esp + 4]
mov word [ebp + 0x30], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
call sub.KERNEL32.dll_CreateProcessW
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
je 0x408096
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x40808d
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.0040f2c8
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x40808b
jmp 0x40808d
jmp 0x408065
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x408098
xor eax, eax
push dword [esp]
call fcn.0041d9d0
add esp, 0x64
pop ebx
pop ebp
ret 8

Function at 0x409cdb
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x409d73
push edi
push 0x2d8c160
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x2d8b5a0]
test edi, edi
je 0x409d47
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409d40
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x2d8b5a0
call fcn.0041d6db
pop ecx
pop ecx
jmp 0x409d42
mov edi, dword [edi]
test edi, edi
jne 0x409d17
pop ebx
mov eax, dword [0x2d88280]
mov esi, eax
inc eax
push 0x10
push 0x2d8b5a0
mov dword [0x2d88280], eax
call fcn.0041d71b
pop ecx
pop ecx
push 0x2d8c160
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x40a06e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40a0c3
push dword [esp + 0x10]
push 0x409fed
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x2d8b5a8]
test esi, esi
je 0x40a11c
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40a0bb
cmp byte [esi + 0x10], 0
je 0x40a0bb
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40a097
jmp 0x40a11c
mov esi, dword [0x2d8b5a8]
test esi, esi
je 0x40a11c
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40a115
cmp byte [esi + 0x11], 0
je 0x40a0f1
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40a108
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x2d8b5a8
call fcn.0041d6db
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40a0d0
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40b3d4
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x40b323
push 0x10
push 0x2c
call fcn.0041d07f
push 0
push 0
push 8
mov dword [0x2d8b5bc], eax
call fcn.0041cea6
cmp word [0x2d8b5b4], 0
mov dword [0x2d8c1ac], eax
jne 0x40b4b9
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40b42c
mov word [0x2d8b5b4], di
jmp 0x40b434
xor eax, eax
mov word [0x2d8b5b4], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x2d8b5d0], eax
test eax, eax
je 0x40b4b8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x2d8b5d0]
mov dword [0x2d8b5c0], eax
call esi
push str.getnameinfo
push dword [0x2d8b5d0]
mov dword [0x2d8b5c4], eax
call esi
push str.WSAStringToAddressA
push dword [0x2d8b5d0]
mov dword [0x2d8b5c8], eax
call esi
cmp dword [0x2d8b5c0], 0
mov dword [0x2d8b5cc], eax
pop esi
je 0x40b4b8
cmp dword [0x2d8b5c4], 0
je 0x40b4b8
cmp dword [0x2d8b5c8], 0
je 0x40b4b8
test eax, eax
je 0x40b4b8
mov dword [0x2d8b5b8], edi
pop edi
add esp, 0x190
ret

Function at 0x40bc10
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x2d8b5d4], 0
jne 0x40bc1e
call fcn.0040bbb0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x2d8b5d8]
call esi
test eax, eax
jne 0x40bc41
call fcn.0040bbb0
push dword [0x2d8b5d8]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x40bc50
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x40bcb0
mov ebx, 0x10
test edi, edi
jns 0x40bcb9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40bc82
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41050b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4105a3
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4105a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4105a0
lea eax, [esi - 1]
push eax
push dword [0x2d8c1e4]
call fcn.0041cfac
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4105a2
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x410597
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x41068a
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41057d
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x410649
push eax
call esi
test al, al
jns 0x410649
push 0x11
call esi
test al, al
js 0x410649
push 0x10
call esi
test al, al
js 0x410649
push 0x12
call esi
test al, al
js 0x410649
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x410649
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x41061d
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x410634
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x410694
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x410694
test ebp, ebp
je 0x41066d
push 0x11
call esi
test al, al
js 0x410665
push 0x10
call esi
test al, al
js 0x410665
push 0x12
call esi
test al, al
jns 0x41066d
push 1
push ebp
call fcn.004106a0
test ebx, ebx
je 0x410681
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x410694
test edi, edi
je 0x410694
mov eax, dword [edi + 8]
jmp 0x410696
and dword [esp + 0x14], 0
jmp 0x4105a2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x411480
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4114bc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4119b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x2d8c1fc]
call fcn.0041cfac
mov esi, eax
test esi, esi
je 0x411a2f
cmp dword [esi + 4], 0
je 0x411a00
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00411ee0
test eax, eax
je 0x4119f4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411a3a
cmp dword [esp + 8], 0
je 0x411a3a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x411da0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x411ea8
cmp word [edx], 0
je 0x411ea8
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x411dce
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x411e2d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x411e00
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411de0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004124b0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e00
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.004125c0
mov edi, eax
test edi, edi
je 0x411e23
cmp dword [esi + 4], 0
je 0x411e7b
push dword [esp + 0x14]
push edi
push esi
call fcn.004124b0
push edi
push 0
push dword [0x2d8b04c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x2d8b04c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x412000
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x2d8b04c]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x412184
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x41204e
test ebp, ebp
je 0x4120f0
dec ebp
cmp dword [ebx + 4], 0
je 0x412067
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411ee0
mov dword [esp + 0x14], eax
jmp 0x412081
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x4120f0
test cl, cl
je 0x412095
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4120d0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x2d8b04c]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x4120f0
cmp dword [esp + 0x2c], 0
jne 0x412040
cmp cl, 0xd
je 0x4120f7
cmp cl, 0xa
jne 0x412040
dec esi
jmp 0x412167
cmp dword [esp + 0x2c], 0
jne 0x412167
cmp cl, 0xa
jne 0x4120ff
dec esi
jmp 0x412167
cmp cl, 0xd
jne 0x412167
dec esi
cmp dword [ebx + 4], 0
je 0x41211e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411ee0
mov dword [esp + 0x14], eax
jmp 0x412134
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x412167
cmp dword [ebx + 4], 0
je 0x412146
inc dword [ebx + 0xc]
jmp 0x412167
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x412190
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x2d8b04c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x41233d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x4121e4
test ebp, ebp
je 0x41229d
dec ebp
cmp dword [ebx + 4], 0
je 0x4121fd
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00411ee0
mov dword [esp + 0x14], eax
jmp 0x412217
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x41229d
test ax, ax
je 0x412231
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x412278
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x2d8b04c]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x41229d
cmp dword [esp + 0x30], 0
jne 0x4121d6
cmp ax, 0xd
je 0x4122a4
cmp ax, 0xa
jne 0x4121d6
sub edi, 2
jmp 0x41231c
cmp dword [esp + 0x30], 0
jne 0x41231c
cmp ax, 0xa
jne 0x4122af
sub edi, 2
jmp 0x41231c
cmp ax, 0xd
jne 0x41231c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x4122d1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00411ee0
mov dword [esp + 0x14], eax
jmp 0x4122e7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x41231c
cmp dword [ebx + 4], 0
je 0x4122fb
add dword [ebx + 0xc], 2
jmp 0x41231c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x412350
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x2d8b04c]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4124a0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x41239c
test edi, edi
je 0x41240d
dec edi
push esi
push ebp
call fcn.00412630
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4123af
xor cl, cl
jmp 0x4123b1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4123f4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x2d8b04c]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x41240d
test eax, eax
jne 0x412392
cmp cl, 0xd
je 0x412411
cmp cl, 0xa
jne 0x412392
dec esi
jmp 0x412483
test eax, eax
jne 0x412483
cmp cl, 0xa
jne 0x412419
dec esi
jmp 0x412483
cmp cl, 0xd
jne 0x412483
dec esi
cmp dword [ebp + 4], 0
je 0x412438
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00411ee0
mov dword [esp + 0x20], eax
jmp 0x41244f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x412483
cmp dword [ebp + 4], 0
je 0x412461
inc dword [ebp + 0xc]
jmp 0x412483
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x412630
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x412657
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00411ee0
mov dword [esp + 4], eax
jmp 0x412671
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x41267d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x412699
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x4126a9
mov esi, 2
jmp 0x4126c5
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x4126b8
mov esi, 3
jmp 0x4126c5
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x412722
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x4126f4
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00411ee0
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x413e1c
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x417ce5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x461228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x2d8c054], eax
test eax, eax
je 0x417d13
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x2d8c050], eax
lea eax, [ebp - 0x114]
mov dword [0x2d8c058], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417d75
cmp dword [ebp - 0x104], 1
jne 0x417d4a
and dword [0x2d8c058], 0
jmp 0x417d8d
cmp dword [ebp - 0x104], 2
jne 0x417d75
cmp dword [ebp - 0x110], 5
jb 0x417d41
jne 0x417d75
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x2d8c058]
mov dword [0x2d8c058], eax
jmp 0x417d7a
mov eax, dword [0x2d8c058]
test eax, eax
je 0x417d8d
call fcn.00417728
neg eax
sbb eax, eax
and dword [0x2d8c058], eax
mov esp, ebp
pop ebp
ret
Function at 0x419677
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x4196a7
cmp esi, 2
je 0x4196a7
cmp esi, 4
je 0x4196a7
cmp esi, 8
je 0x4196a7
cmp esi, 0x18
je 0x4196a7
cmp esi, 0x20
je 0x4196a7
xor eax, eax
jmp 0x419871
mov ecx, dword [0x2d8c0b4]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x41986d
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x2d8c2c0]
cmp dword [eax], edx
je 0x4196da
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x4196c1
jmp 0x41986d
cmp dword [esp + 0x38], 0x20
jne 0x419844
mov eax, dword [eax + 8]
test eax, eax
je 0x41971a
cmp esi, 0x20
je 0x4196f6
cmp esi, 0xffffffff
jne 0x41971a
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x41986b
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x2d8b04c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41986d
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x41980f
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x4197ef
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
dec edi
jne 0x419780
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x41976d
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x2d8c2c0]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x2d8b04c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41986d
cmp dword [esp + 0x38], 0x18
jne 0x41986d
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28