joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55f000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5eae10
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005e1121
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x55f033
xor al, al
jmp 0x55f15f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x55f055
xor al, al
jmp 0x55f15f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x55f068
xor al, al
jmp 0x55f15f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x55f07c
xor al, al
jmp 0x55f15f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.005d4e70
test eax, eax
jne 0x55f0b0
xor al, al
jmp 0x55f15f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x615754
mov dword [esp + 0x20], ebp
call fcn.005e1121
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.005ddee2
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.005ddf39
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x55f144
mov ax, word [ebx]
test ax, ax
je 0x55f136
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0055f180
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x55f11a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.005ddf39
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x55f680
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.005df5ce
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x55f6c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00595988
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x646ac0
push ecx
call fcn.00597bdb
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x56b900
Capabilities:
Suspend thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.0056baf0
mov eax, dword [edi]
add esp, 4
cmp eax, ebx
je 0x56b969
cmp dword [edi + 8], ebx
jbe 0x56b969
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, dword [edi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call fcn.0056b6b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x56b95f
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x18]
push ebp
push edx
push esi
call fcn.0056b970
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jb 0x56b92a
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x56baf0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
test esi, esi
push edi
je 0x56bbed
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
je 0x56bbed
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x56bbe6
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp dword [esp + 0xc], 0x10
jb 0x56bbc2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x18], eax
jne 0x56bbc2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x14], eax
je 0x56bbc2
mov eax, dword [esi]
test eax, eax
jne 0x56bb84
mov dword [esi + 4], 0x80
mov ecx, dword [0x6adc34]
push 0x200
push eax
push ecx
call edi
test eax, eax
mov dword [esi], eax
je 0x56bbe1
jmp 0x56bbaf
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
cmp edx, ecx
jb 0x56bbaf
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x6adc34]
push 0
push eax
call ebx
test eax, eax
je 0x56bbe1
mov ecx, dword [esi + 4]
mov dword [esi], eax
shl ecx, 1
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x56bb41
mov edi, dword [esp + 0x2c]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x56bc00
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x56bc5a
mov eax, dword [ebx + 8]
push edi
xor edi, edi
test eax, eax
jbe 0x56bc48
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call fcn.0056b6b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x56bc3e
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jb 0x56bc1c
pop esi
pop ebp
mov edx, dword [ebx]
mov eax, dword [0x6adc34]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
ret
Function at 0x56bc60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
lea ecx, [eax + eax*4]
mov ebp, 5
lea edx, [eax + ecx*2]
mov eax, dword [0x6c0200]
mov edi, dword [eax + edx*4]
lea esi, [eax + edx*4]
mov al, byte [eax + edx*4 + 0x14]
test al, 1
je 0x56bc8c
sub edi, ebp
mov ebp, 7
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x56bca8
pop edi
pop esi
mov eax, 0xa
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x56bcd1
mov byte [edi], 0xe9
mov edx, dword [esi + 4]
sub edx, edi
sub edx, 5
mov dword [edi + 1], edx
mov al, byte [esi + 0x14]
test al, 1
je 0x56bcff
mov eax, dword [esi]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
jmp 0x56bcff
test byte [esi + 0x14], 1
je 0x56bcf0
lea eax, [esi + 0xc]
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
jmp 0x56bcff
lea ecx, [esi + 0xc]
mov edx, edi
mov eax, dword [ecx]
mov dword [edx], eax
mov cl, byte [ecx + 4]
mov byte [edx + 4], cl
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, bl
mov dl, byte [esi + 0x14]
and al, 1
and dl, 0xf9
mov cl, al
pop ebx
and cl, 0xfd
pop edi
shl al, 1
or cl, al
xor eax, eax
shl cl, 1
or cl, dl
mov byte [esi + 0x14], cl
pop esi
pop ebp
ret
Function at 0x56c1e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, dword [eax + 0x7c]
push esi
cmp ebp, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
jne 0x56c295
mov edx, dword [esp + 0x1c]
mov ebp, dword [edx]
test ebp, ebp
je 0x56c26c
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x56c22c
mov ecx, 2
test bh, 0x80
je 0x56c234
or ecx, 1
test ah, 0x80
je 0x56c23c
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [esp + 0x14]
shr ecx, 0x10
movsx edx, cx
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x24]
movsx ecx, si
push ecx
mov ecx, dword [edx + 4]
push ecx
push eax
call ebp
test eax, eax
jne 0x56c272
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
jmp 0x56c276
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x56c2ba
mov ecx, 2
test bh, 0x80
je 0x56c2c2
or ecx, 1
test ah, 0x80
je 0x56c2ca
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov edi, dword [esp + 0x1c]
shr ecx, 0x10
movsx edx, cx
movsx eax, si
push edx
push eax
push 3
push ebp
push edi
call fcn.0056c100
add esp, 0x18
test eax, eax
je 0x56c264
cmp ebp, 0x18
je 0x56c2fd
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x14]
push esi
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x56cb30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x6c01fc]
test eax, eax
je 0x56cb46
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x56cb93
mov eax, dword [eax]
test eax, eax
jne 0x56cb39
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x56cb93
lea ecx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov dword [eax + 4], ecx
add ecx, 0x20
mov edx, ecx
sub edx, eax
cmp edx, 0xfe0
jbe 0x56cb6f
mov ecx, dword [0x6c01fc]
mov dword [eax], ecx
mov dword [0x6c01fc], eax
ret

Function at 0x56cfd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi]
test cl, cl
je 0x56cfe9
cmp cl, 0x90
je 0x56cfe9
cmp cl, 0xcc
je 0x56cfe9
pop esi
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, 1
cmp edx, eax
jbe 0x56d000
cmp byte [eax + esi], cl
jne 0x56cfe5
inc eax
cmp eax, edx
jb 0x56cff6
pop esi
mov eax, 1
ret
Function at 0x56e2a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5eb49b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x56e380
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x64ab3c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x56e380
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.005d75cd
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x64ab30
mov ecx, esi
call fcn.005d3537
push str.gt_
push 0x64ab24
mov ecx, esi
call fcn.005d3537
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.005d7881
lea ecx, [esp + 4]
call fcn.005d7945
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.005d6f23
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.005d766d
jmp 0x56e393
mov esi, dword [esp + 0x130]
push 0x6adc40
mov ecx, esi
call fcn.005d6f23
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret

Function at 0x574c50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6add58]
xor edx, edx
cmp eax, edx
jne 0x574c76
xor eax, eax
mov byte [eax + 0x6adc58], al
inc eax
cmp eax, 0x100
jl 0x574c5e
mov dword [0x6add58], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6adc58
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x574d07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x574cda
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x574ca8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x574d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x574dd3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x574dba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x57b750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ebafe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0057c070
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6165e4
call fcn.005d6bf6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x57b7e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005d6bf6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x57b7dc
push 0
mov ecx, eax
call fcn.00572880
mov dword [esi + 0xc], eax
jmp 0x57b7e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x57b7e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5af2e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x5af410
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x6bffb0]
sub esp, 0x138
test eax, eax
je 0x5af43c
push pe_nt_image_headers32
push eax
lea eax, [esp + 8]
push eax
call fcn.005964b0
add esp, 0xc
mov byte [esp + 0x118], 0
jmp 0x5af44c
lea ecx, [esp]
push ecx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebp
push esi
push edi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x5af471
lea eax, [esp + 0xc]
dec eax
cmp byte [eax + ecx], 0x5c
jne 0x5af471
dec ecx
test ecx, ecx
jg 0x5af466
mov esi, dword [esp + 0x148]
mov byte [esp + ecx + 0xc], 0
lea edx, [esp + 0xc]
push edx
push str._s_sqlite_
push esi
call fcn.00597bdb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + esi]
push eax
push 0xf
call fcn.005bed50
add esp, 0x14
mov ecx, 0xf
xor eax, eax
xor edx, edx
mov al, byte [edi + esi]
mov ebp, 0x3e
div ebp
inc edi
dec ecx
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x5af4ae
push esi
mov byte [edi + esi], 0
call fcn.005af2e0
add esp, 4
test eax, eax
jne 0x5af47d
pop edi
pop esi
pop ebp
add esp, 0x138
ret

Function at 0x5af550
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
jle 0x5af59b
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx]
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push edi
push ecx
call ebp
test eax, eax
je 0x5af59b
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x5af58c
sub esi, ecx
add edi, ecx
test esi, esi
jg 0x5af56a
test eax, eax
je 0x5af59b
cmp esi, ecx
jg 0x5af59b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
ret

Function at 0x5af640
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push esi
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [esp + 8]
push 1
push 0
push 0
push eax
call fcn.00595aa0
mov ecx, eax
xor eax, eax
add ecx, esi
pop esi
adc edx, eax
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
ret

Function at 0x5af680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x5af68d
xor eax, eax
pop esi
ret
call fcn.005af6d0
test eax, eax
jne 0x5af6ac
push edi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x104
jbe 0x5af6ac
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5af6bc
xor eax, eax
pop esi
ret
and al, 0x10
xor ecx, ecx
cmp al, 0x10
pop esi
sete cl
mov eax, ecx
ret
Function at 0x5b4dc0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi + 0x41]
mov eax, dword [esi + 0x18]
test cl, cl
jne 0x5b4ddd
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 1
xor eax, eax
ret
mov ecx, dword [esi + 0x1c]
xor edx, edx
inc ecx
mov word [esi + 0x3a], 0
mov dword [esi + 0x1c], ecx
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x5b4e9a
mov cl, byte [eax + 4]
test cl, cl
jne 0x5b4e38
mov edx, dword [eax + 0x44]
xor ecx, ecx
mov cl, byte [eax + 8]
lea eax, [ecx + edx + 8]
push eax
call fcn.005b3860
push eax
push esi
call fcn.005b4a00
add esp, 0xc
test eax, eax
jne 0x5b4eb8
push esi
call fcn.005b4a60
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx], 0
pop esi
ret
push eax
call fcn.005b4ec0
add esp, 4
test eax, eax
jne 0x5b4e6b
push esi
call fcn.005b4f00
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
xor edx, edx
add esp, 4
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x5b4e7d
push eax
call fcn.005b4ec0
add esp, 4
test eax, eax
je 0x5b4e45
mov eax, dword [esp + 0xc]
mov dword [eax], 1
mov byte [esi + 0x41], 0
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov dl, byte [eax + 6]
test dl, dl
je 0x5b4eab
push ecx
push esi
call fcn.005b4dc0
add esp, 8
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov cl, byte [eax + 4]
test cl, cl
je 0x5b4eaf
xor eax, eax
pop esi
ret
push esi
call fcn.005b4a60
add esp, 4
pop esi
ret
Function at 0x5bc010
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0x5bc093
mov ebx, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov al, byte [ebx + edi - 1]
mov dl, byte [ebx]
mov cl, byte [eax + 0x61b264]
mov eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x61b264]
lea eax, [eax + eax*2]
shl ecx, 2
xor eax, ecx
mov ecx, 0x7f
xor eax, edi
cdq
idiv ecx
xor eax, eax
mov al, byte [edx + str._QhZ]
mov esi, eax
dec esi
js 0x5bc093
xor ecx, ecx
mov cl, byte [esi + 0x61b9bc]
cmp ecx, edi
jne 0x5bc086
xor edx, edx
push edi
mov dx, word [esi*2 + 0x61ba30]
push ebx
add edx, 0x61b6b8
push edx
call fcn.005a7940
add esp, 0xc
test eax, eax
je 0x5bc09c
xor eax, eax
mov al, byte [esi + 0x61b948]
mov esi, eax
dec esi
jns 0x5bc05b
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
xor eax, eax
pop edi
mov al, byte [esi + 0x61bb14]
pop esi
pop ebx
ret
Function at 0x5d93ce
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5d9406
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.005d735c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005d7334
jmp 0x5d9412
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5dabc8
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 0x5dac0a
call fcn.005e1121
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5dac0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5dac01
xor eax, eax
jmp 0x5dac12
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005dac18
pop edi
pop esi
pop ebx
ret 4

Function at 0x5e1651
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 0x5e167f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5e169d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005e15b7
jmp 0x5e169d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5e169d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005e15b7
test edi, edi
mov eax, edi
jne 0x5e1687
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
mov esi, dword [ebp + 0xc]
push esi
lea eax, [ebp - 0x78]
push 0xffffffffffffff86
push eax
push esi
invalid

Function at 0x438c8e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
sub eax, eax
sub ecx, eax
sub eax, 0xf7c49b0
call fcn.00438ccf
add eax, eax
push 0x4bd558e8
pop eax
or ecx, ecx
xor dword [ebx], esi
sub esp, 4
mov dword [esp], 0x49cbfbaa
pop ecx
inc ecx
inc ebx
mov ecx, eax
or eax, eax
cmp ebx, edx
jne fcn.00438c8e
or ecx, eax
ret
Function at 0x4052bc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4052fb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4052fb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4052fb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4052fb
cmp dword [ecx + 0x74], 0xe
jbe 0x4052fb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret