joyce8/EMBER2024-capa huggingface dataset:
Function at 0x83e730
Capabilities:
Enumerate files on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x340
mov edi, ecx
lea eax, [esp]
push 0x100
push 0
push eax
call fcn.0086b688
lea eax, [esp + 0xc]
push edi
push str._sc.rel
push eax
call fcn.00858bf5
add esp, 0x18
lea edx, [esp]
lea eax, [esp + 0x100]
push eax
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x83e85f
mov ebx, eax
mov esi, edi
lea edx, [esp + 0x100]
push edx
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x83e856
mov edx, dword [esp + 0x100]
cmp edx, 0x10
je 0x83e77d
lea edx, [esp + 0x240]
push 0x100
push 0
push edx
call fcn.0086b688
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x138]
push edx
push esi
push str._s_s
push ecx
call fcn.00858bf5
add esp, 0x1c
mov eax, dword [0xadac70]
cmp eax, 0x100
je 0x83e77d
add eax, eax
add eax, eax
lea edi, [eax + eax]
add edi, edi
add edi, edi
add edi, edi
lea edx, [edi + eax]
mov ecx, dword [edx + 0xaebe40]
cmp ecx, 0xffffffff
jne 0x83e77d
lea ecx, [eax + edi + 0xaebe00]
lea edx, [esp + 0x12c]
push 0x40
push edx
push ecx
call fcn.00858900
add esp, 0xc
lea ecx, [esp + 0x240]
xor edx, edx
push edx
push 0x80
push 3
push edx
push 1
push closesocket
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
mov eax, dword [0xadac70]
lea edx, [eax + eax]
add edx, edx
lea ecx, [edx + edx]
add eax, 1
mov dword [edx + ecx*8 + 0xaebe40], edi
mov dword [0xadac70], eax
jmp 0x83e77d
mov eax, ebx
push eax
call dword [sym.imp.kernel32.dll_FindClose]
add esp, 0x340
pop ebx
pop esi
pop edi
ret

Function at 0x83ea38
Capabilities:
Get file size

Disassembly:
push edi
push ebp
sub esp, 0x108
mov edx, ecx
mov ebp, dword [0xaf0200]
mov eax, dword [0xaf0204]
xor ecx, ecx
test eax, eax
je 0x83ea65
mov edi, dword [ebp]
cmp edi, 0xffffffff
je 0x83ea70
add ebp, 0x2c
add ecx, 1
cmp ecx, eax
jne 0x83ea53
xor eax, eax
add esp, 0x108
pop ebp
pop edi
ret
lea ecx, [esp]
call fcn.0083e5cc
lea edx, [esp]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push closesocket
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp], eax
cmp eax, 0xffffffff
je 0x83ea65
mov dword [ebp + 0x18], 0
lea edx, [esp + 0x104]
push edx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp + 0x1c], eax
mov eax, ebp
add esp, 0x108
pop ebp
pop edi
ret

Function at 0x83f6a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
sub esp, 0xc
mov ebp, ecx
lea edx, [esp + 4]
mov dword [esp], 4
lea eax, [esp]
push eax
push edx
push 0x1002
push 0xffff
push dword [ebp + 0x10]
call dword [sym.imp.wsock32.dll_getsockopt]
mov dword [esp + 4], 0x10000
lea eax, [esp + 4]
push dword [esp]
push eax
push 0x1002
push 0xffff
push dword [ebp + 0x10]
call dword [sym.imp.wsock32.dll_setsockopt]
mov dword [esp], 4
lea edx, [esp + 8]
lea eax, [esp]
push eax
push edx
push 0x1001
push 0xffff
push dword [ebp + 0x10]
call dword [sym.imp.wsock32.dll_getsockopt]
mov dword [esp + 8], 0x10000
lea eax, [esp + 8]
push dword [esp]
push eax
push 0x1001
push 0xffff
push dword [ebp + 0x10]
call dword [sym.imp.wsock32.dll_setsockopt]
add esp, 0xc
pop ebp
ret
Function at 0x83f80c
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
push esi
push ebp
push ebx
movsx ecx, word [esp + 0x14]
lea edx, [ecx + ecx]
add edx, edx
sub edx, ecx
add edx, edx
lea eax, [edx + edx]
add eax, eax
add eax, eax
movsx eax, word [eax + 0xadac94]
test eax, eax
je 0x83f89d
movsx eax, byte [esp + 0x1c]
xor ebp, ebp
test eax, eax
je 0x83f889
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ebx, edx
movsx edx, byte [esp + 0x1c]
mov esi, dword [ecx + eax*8]
mov edi, dword [ecx + eax*8 + 4]
push 0
push esi
push edi
push dword [ebx*8 + 0xadac90]
call dword [sym.imp.wsock32.dll_send]
cmp eax, 0xffffffff
je 0x83f8a4
add edi, eax
sub esi, eax
test esi, esi
jg 0x83f84f
mov ecx, dword [esp + 0x20]
movsx edx, byte [esp + 0x1c]
add ebp, 1
mov eax, ebp
and eax, 0xff
cmp eax, edx
jne 0x83f848
movsx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x83f89d
push ecx
push 0
mov eax, dword [esp + 0x20]
call eax
add esp, 8
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
call dword [sym.imp.wsock32.dll_WSAGetLastError]
mov eax, 0xffffffff
pop ebx
pop ebp
pop esi
pop edi
ret

Function at 0x8400e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x98b0f4
push 0x85b6a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
jmp 0x840129
push 0
call dword [sym.imp.user32.dll_GetKeyboardLayout]
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x228]
call fcn.00841994
mov dword [0xadc90c], eax
lea eax, [ebp - 0x224]
push 0xff
push 0xadb3e0
push eax
call fcn.00857dec
add esp, 0x10
mov eax, dword [ebp - 0x228]
xor ebx, ebx
mov word [ebp - 0x26], bx
mov word [0xadb3e0], bx
add esp, 0xfffffff4
mov edx, 0xadb3e0
mov ecx, 0xff
call fcn.00840204
lea edx, [ebp - 0x224]
push 0xff
xor eax, eax
mov word [0xadb5de], ax
push 0xadb3e0
push edx
call fcn.00858643
add esp, 0x18
test eax, eax
je 0x8401cd
mov edx, dword [0xadc914]
xor eax, eax
mov word [0xadb5e0], ax
mov dword [0xadc910], eax
or edx, 2
mov dword [0xadc914], edx
mov esp, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x840acc
Capabilities:
Log keystrokes via input method manager

Disassembly:
xor eax, eax
xor edx, edx
mov byte [eax + 0xadc5e0], dl
mov byte [eax + 0xadc5e1], dl
mov byte [eax + 0xadc5e2], dl
mov byte [eax + 0xadc5e3], dl
add eax, 4
cmp eax, 0x100
jl 0x840ace
push 0x100
push 0xadc5e0
push 0x10
push dword [0xadc8fc]
call sub.imm32.dll_ImmGetCompositionStringW
ret
Function at 0x8414e4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x98b0dc
push 0x85b6a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
xor eax, eax
mov dword [0xadc8f8], eax
mov dword [0xadc900], eax
mov dword [ebp - 4], 0
jmp 0x84152e
push 0
call dword [sym.imp.user32.dll_GetKeyboardLayout]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
call fcn.00841994
pop ecx
mov dword [0xadc90c], eax
mov eax, dword [0xacbed8]
push edi
call fcn.00841438
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x84159e
mov eax, dword [ebp - 0x30]
push edi
call fcn.00841440
pop ecx
test eax, eax
je 0x84159e
mov eax, dword [ebp - 0x2c]
mov dword [0xadc8f8], 1
add esp, 0xfffffff8
mov edx, 1
call fcn.0084169c
add esp, 8
test eax, eax
je 0x841684
mov dword [0xadc900], 1
mov eax, dword [0xadc914]
mov dword [ebp - 0x28], eax
xor edx, edx
mov word [0xadb5e0], dx
mov word [0xadc6e0], dx
mov dword [0xadc910], edx
call fcn.008416a4
mov dword [0xadc914], 2
call fcn.008416cc
mov edx, dword [ebp - 0x28]
mov ecx, dword [0xadc8f8]
mov dword [0xadc914], edx
xor eax, eax
test ecx, ecx
mov word [0xadb3e0], ax
mov dword [0xadc940], eax
je 0x841662
mov eax, dword [ebp - 0x2c]
mov dword [0xadc8fc], eax
call fcn.008408a8
mov eax, dword [0xadc8fc]
add esp, 0xfffffff4
mov edx, 0xadc91c
mov ecx, 0xadc920
call fcn.00841708
add esp, 0xc
mov eax, dword [0xacbed8]
add esp, 0xfffffff8
mov edx, 0xfffffffc
call fcn.00841714
add esp, 8
mov dword [0xadc958], eax
mov eax, dword [0xacbed8]
add esp, 0xfffffff4
mov edx, 0xfffffffc
mov ecx, 0x83ff58
call fcn.00841448
add esp, 0xc
mov eax, dword [0xa21ccc]
test eax, eax
jne 0x841662
mov eax, dword [0xadc924]
test eax, eax
je 0x841662
call fcn.0084083c
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov esp, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x841738
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x98b0d0
push 0x85b6a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
xor eax, eax
mov edx, dword [0xadc8fc]
mov dword [0xadc8f8], eax
test edx, edx
mov dword [0xadc900], eax
mov dword [0xadc904], eax
mov dword [0xadc908], eax
jne 0x8418a4
mov dword [ebp - 4], 0
jmp 0x84179a
push 0
call dword [sym.imp.user32.dll_GetKeyboardLayout]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2c]
call fcn.00841994
pop ecx
mov dword [0xadc90c], eax
mov eax, dword [0xacbed8]
push edi
call fcn.00841438
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x84180a
mov eax, dword [ebp - 0x2c]
push edi
call fcn.00841440
pop ecx
test eax, eax
je 0x84180a
mov eax, dword [ebp - 0x28]
mov dword [0xadc8f8], 1
add esp, 0xfffffff8
mov edx, 1
call fcn.0084169c
add esp, 8
test eax, eax
je 0x841887
mov dword [0xadc900], 1
call fcn.00841454
mov eax, dword [0xadc8f8]
test eax, eax
je 0x841859
mov eax, dword [ebp - 0x28]
mov dword [0xadc8fc], eax
call fcn.008408a8
mov eax, dword [0xacbed8]
add esp, 0xfffffff8
mov edx, 0xfffffffc
call fcn.00841714
add esp, 8
mov dword [0xadc958], eax
mov eax, dword [0xacbed8]
add esp, 0xfffffff4
mov edx, 0xfffffffc
mov ecx, 0x83ff58
call fcn.00841448
add esp, 0xc
mov dword [0xa21ccc], 1
mov eax, 1
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, str._stImeManagerInitialize:can_not_open_ime
call fcn.0083c070
xor eax, eax
mov esp, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, str._stImeManagerInitialize:_ime_handle_is_opened_already
call fcn.0083c070
xor eax, eax
mov esp, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x844bb8
Capabilities:
Get file size

Disassembly:
push edi
push ebx
sub esp, 0x108
mov eax, ecx
lea ecx, [esp]
mov edx, eax
call fcn.00844b70
cmp eax, 1
je 0x844bdc
xor eax, eax
add esp, 0x108
pop ebx
pop edi
ret
lea edx, [esp]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push closesocket
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x844bd1
lea edx, [esp + 0x104]
push edx
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
add esp, 0x108
pop ebx
pop edi
ret

Function at 0x844c24
Capabilities:
Read file on windows

Disassembly:
push esi
push ebp
push ebx
sub esp, 0x108
mov ebp, edx
mov ebx, ecx
mov esi, dword [esp + 0x118]
test esi, esi
jne 0x844c45
mov ecx, ebx
call fcn.00844bb8
mov esi, eax
lea ecx, [esp]
mov edx, ebx
call fcn.00844b70
cmp eax, 1
je 0x844c60
add esp, 0x108
pop ebx
pop ebp
pop esi
ret 4
lea ebx, [esp]
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push 1
push closesocket
push ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x844c54
xor ecx, ecx
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea ecx, [esp + 0x104]
push 0
push ecx
push esi
push ebp
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
add esp, 0x108
pop ebx
pop ebp
pop esi
ret 4
Function at 0x85805d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x85808b
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
test eax, eax
je 0x858090
cmp eax, 1
je 0x858090
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x858094
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0xa23c64]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x85810c
push ebx
call fcn.0085805d
test eax, eax
pop ecx
jne 0x8580db
call fcn.00859ddf
mov dword [eax], 0xf
call fcn.00859dd6
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0085e419
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
jmp 0x85811e
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x8580ce
inc eax
cmp eax, 0x104
ja 0x8580ce
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x858156
cmp eax, dword [ebp + 0x10]
jg 0x858139
mov eax, dword [ebp + 0x10]
push eax
call fcn.00859c55
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x85816b
call fcn.00859dd6
mov dword [eax], 0xc
jmp 0x8580ce
cmp eax, dword [ebp + 0x10]
jle 0x85816b
call fcn.00859dd6
mov dword [eax], 0x22
jmp 0x8580ce
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0085e2f0
pop ecx
pop ecx
jmp 0x8580d0

Function at 0x859f6f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x997f88
call fcn.0085e5ac
push 8
call fcn.0085e57a
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0xae7a50], esi
jne 0x859fa3
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0xae7a4c], esi
mov al, byte [ebp + 0x10]
mov byte [0xae7a48], al
cmp dword [ebp + 0xc], edi
jne 0x859fed
cmp dword [0xaf1bd0], edi
je 0x859fdd
mov eax, dword [0xaf1bcc]
sub eax, 4
mov dword [0xaf1bcc], eax
cmp eax, dword [0xaf1bd0]
jb 0x859fdd
mov eax, dword [eax]
cmp eax, edi
je 0x859fbe
call eax
jmp 0x859fbe
push 0x9a2c6c
mov eax, 0x9a2c64
call fcn.00859eed
pop ecx
push 0x9a2c78
mov eax, 0x9a2c70
call fcn.00859eed
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0085a01e
cmp dword [ebp + 0x10], edi
jne 0x85a02c
mov dword [0xae7a50], esi
push dword [ebp + 8]
call fcn.00859eab
xor edi, edi
xor esi, esi
inc esi
call fcn.0085e5e7
ret
Function at 0x85af50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x85af6d
call fcn.00859dd6
mov dword [eax], 0x16
xor eax, eax
jmp 0x85afd7
push esi
push 0x8c
push 1
call fcn.008587c7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x85afc2
push esi
call fcn.0085c570
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x85afa0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x85aebb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x85afd6
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00858882
test ebx, ebx
pop ecx
je 0x85afd4
push ebx
call fcn.00859de8
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x85afdb
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x998030
call fcn.0085e5ac
mov eax, dword [0xa23c64]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x85b0e8
mov eax, edi
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x85b099
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00858020
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x85b086
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x85b0e8
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x85b0e8
mov al, byte [edi]
cmp al, 0x5c
je 0x85b0a7
cmp al, 0x2f
jne 0x85b0ac
cmp al, byte [edi + 1]
je 0x85b0e2
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.008652e0
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x85b0e8
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00859de8
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x85b104
push edi
call fcn.00858882
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0085e419
call fcn.0085e5e7
ret
Function at 0x861a75
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x861c49
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0xaf0a80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x861c49
test cl, 0x48
je 0x861ae0
cmp byte [eax + 5], 0xa
je 0x861ae0
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x861b32
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x861b1a
call fcn.00859dd6
mov dword [eax], 9
call fcn.00859ddf
mov dword [eax], esi
jmp 0x861b2a
cmp eax, 0x6d
je 0x861c49
push eax
call fcn.00859de8
pop ecx
or eax, 0xffffffff
jmp 0x861c4b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x861c44
test eax, eax
je 0x861b59
cmp byte [ebx], 0xa
jne 0x861b59
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x861b62
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x861c3e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x861c2e
cmp al, 0xd
je 0x861b94
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x861c20
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x861bae
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x861ba9
add dword [ebp + 0x10], 2
jmp 0x861c02
mov dword [ebp + 0x10], eax
jmp 0x861c1c
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x861bd6
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x861c1c
cmp dword [ebp - 0xc], 0
je 0x861c1c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x861bf7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x861c02
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x861c1f
cmp ebx, dword [ebp + 0xc]
jne 0x861c07
cmp byte [ebp - 1], 0xa
jne 0x861c07
mov byte [ebx], 0xa
jmp 0x861c1f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0086485b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x861c20
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x861b78
jmp 0x861c3e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x861c3e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x861c4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x862186
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0xa23c64]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x8621b7
xor eax, eax
jmp 0x862340
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0xaf0a80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x8621f3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.008691b9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x8622ce
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x86230c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x862257
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x862248
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x862228
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x862297
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x8622a0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x862219
jmp 0x8622a2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x86233b
cmp dword [ebp - 0x6c], edi
je 0x86230c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x862301
call fcn.00859dd6
mov dword [eax], 9
call fcn.00859ddf
mov dword [eax], esi
jmp 0x862336
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x8622f6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x8622a2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x8622a2
push dword [ebp - 0x6c]
call fcn.00859de8
pop ecx
jmp 0x862336
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x862324
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x862324
xor eax, eax
jmp 0x86233e
call fcn.00859dd6
mov dword [eax], 0x1c
call fcn.00859ddf
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x86233e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0085e419
add ebp, 0x3a0
leave
ret
Function at 0x863737
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0xae7c20], ebx
push esi
push edi
jne 0x8637b7
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x8637f2
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0xae7c20], eax
je 0x8637f2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0xae7c24], eax
call esi
cmp dword [0xae7a10], 2
mov dword [0xae7c28], eax
jne 0x8637b7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0xae7c30], eax
je 0x8637b7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0xae7c2c], eax
mov eax, dword [0xae7c2c]
test eax, eax
je 0x8637fc
call eax
test eax, eax
je 0x8637e3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0xae7c30]
test eax, eax
je 0x8637e3
test byte [ebp - 8], 1
jne 0x8637fc
cmp dword [0xae7a1c], 4
jb 0x8637f6
or byte [ebp + 0x12], 0x20
jmp 0x86381b
xor eax, eax
jmp 0x86382b
or byte [ebp + 0x12], 4
jmp 0x86381b
mov eax, dword [0xae7c24]
test eax, eax
je 0x86381b
call eax
mov ebx, eax
test ebx, ebx
je 0x86381b
mov eax, dword [0xae7c28]
test eax, eax
je 0x86381b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0xae7c20]
pop edi
pop esi
pop ebx
leave
ret