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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00409e3c
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x592862
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x59285b
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040ad70
jmp 0x592862
mov eax, esi
call fcn.00409e3c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x597ff0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59814f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x7629f8], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4edbd8]
call fcn.004eed24
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x598125
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004eee0c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040ad70
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x598168
call fcn.0040af20
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004ef098
test al, al
je 0x59810f
lea ecx, [ebp - 4]
mov edx, 0x5981dc
mov eax, dword [ebp - 0xc]
call fcn.004ef920
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042efa4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59810f
xor edx, edx
push ebp
push 0x598108
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5981f4
mov eax, dword [ebp - 8]
push eax
call fcn.00413720
test eax, eax
je 0x5980f1
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5980f1
call fcn.00597f7c
test eax, eax
je 0x5980e1
mov eax, dword [ebx + 0x50]
jmp 0x5980e4
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x7629f8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59810f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59812c
mov eax, dword [ebp - 0xc]
call fcn.00408084
ret

Function at 0x598258
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x59829f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x598282
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x598293
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x59829f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x5a5ae8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x7793c8], 0
je 0x5a5c29
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x772f6c]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x5a5c29
mov eax, dword [0x7793cc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x7793c8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x5a5bf8
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x7793c8]
call fcn.004afb74
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5a5bf0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1fd], 0
je 0x5a5bf0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x5a5bf0
mov eax, dword [ebp - 0x14]
call fcn.005b17e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5a5bf0
push ebp
call fcn.005a5aa4
pop ecx
test al, al
jne 0x5a5bf0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00408404
test al, al
je 0x5a5bf0
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00408404
cmp byte [ebp - 1], 0
je 0x5a5bf0
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00410754
test al, al
je 0x5a5bf0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x7793cc]
call fcn.005a5208
inc edi
dec ebx
jne 0x5a5b4d
mov eax, dword [0x7793cc]
cmp dword [eax + 8], 0
jle 0x5a5c10
mov eax, dword [0x7793cc]
call fcn.005a52bc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5a5c29
push ebp
mov eax, dword [ebp - 0x18]
call fcn.005a590c
pop ecx
test al, al
jne 0x5a5c29
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5ae204
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00410c44
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005a80a4
test ebx, ebx
jne 0x5ae257
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005ae080
mov ebx, eax
test ebx, ebx
je 0x5ae34d
cmp esi, ebx
je 0x5ae280
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x5ae295
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x5ae2cd
add eax, 0xffffff5f
sub eax, 2
jb 0x5ae2e5
dec eax
sub eax, 2
jb 0x5ae2f9
dec eax
sub eax, 2
jb 0x5ae2ef
jmp 0x5ae303
add eax, 0xfffffdff
sub eax, 2
jb 0x5ae2e5
dec eax
sub eax, 2
jb 0x5ae2f9
dec eax
sub eax, 2
jb 0x5ae2ef
jmp 0x5ae303
mov byte [esp + 0x120], 0
jmp 0x5ae30b
mov byte [esp + 0x120], 2
jmp 0x5ae30b
mov byte [esp + 0x120], 1
jmp 0x5ae30b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00577bf0
mov esi, eax
call fcn.005a4b98
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.005a9aa4
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5ae34f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x5bbacc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x5bbb6c
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.0040a9b0
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.0040a404
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x5bbaf6
cmp byte [esp], 0
je 0x5bbb3b
mov eax, edi
call fcn.0040a404
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x5bbb78
mov eax, edi
call fcn.0040a404
push eax
mov eax, edi
call fcn.0040a404
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004066d8
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.0040a9b0
jmp 0x5bbb78
mov eax, edi
mov edx, 0x5bbb8c
call fcn.0040a2c0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5bc6a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5bc6a8
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5bc8ba
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x5bc6eb
lea edx, [ebp - 0xc]
mov eax, ebx
call dword [0x762b4c]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040ad8c
jmp 0x5bc887
test ebx, 0xc0000000
je 0x5bc733
lea edx, [ebp - 0x10]
mov eax, dword [0x762d88]
call fcn.005bc8d8
mov eax, dword [ebp - 0x10]
call fcn.0040a8ec
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x762b70]
call fcn.005bc8d8
mov eax, dword [ebp - 0x14]
call fcn.0040a8ec
push eax
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress_2
test eax, eax
je 0x5bc733
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x5bc778
cmp ebx, 0xbb7
ja 0x5bc778
push 2
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x762d84]
call fcn.005bc8d8
mov eax, dword [ebp - 0x18]
call fcn.0040a8ec
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5bc77d
or edi, 0x800
jmp 0x5bc77d
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5bc880
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_FormatMessageW
test eax, eax
je 0x5bc820
xor eax, eax
push ebp
push 0x5bc819
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040ad1c
mov eax, dword [esi]
call fcn.0040a334
mov ebx, eax
test ebx, ebx
jbe 0x5bc802
mov eax, dword [esi]
movzx edi, word [eax + ebx*2 - 2]
cmp di, 0xd
jne 0x5bc7e9
mov eax, esi
call fcn.0040a3fc
mov word [eax + ebx*2 - 2], 0x20
jmp 0x5bc7fd
cmp di, 0xa
jne 0x5bc7fd
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.0040b0d8
dec ebx
test ebx, ebx
ja 0x5bc7cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bc863
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LocalFree_1
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x762d8c]
call fcn.005bc8d8
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.0040ad8c
push dword [ebp - 0x1c]
push 0x5bc8d4
lea eax, [ebp - 0x24]
push eax
mov cx, 0x30
mov edx, 1
mov eax, ebx
call fcn.005bc100
push dword [ebp - 0x24]
mov eax, esi
mov edx, 3
call fcn.0040afa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bc887
cmp dword [ebp - 8], 0
je 0x5bc87f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bc8c1
lea eax, [ebp - 0x24]
call fcn.00409e3c
lea eax, [ebp - 0x20]
call fcn.00409e60
lea eax, [ebp - 0x1c]
call fcn.00409e3c
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00409ecc
ret
Function at 0x5bc8d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040a2c0
mov eax, ebx
call fcn.0040a418
mov eax, dword [ebx]
call fcn.0040a340
test eax, eax
jle 0x5bc909
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x5bc8fe
pop esi
pop ebx
ret
Function at 0x5c2d14
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c2dd8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
call fcn.0040a8ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5c2dc2
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.0040a9b0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, ebx
call fcn.0040a8ec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x5c2dc2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x5c2dec
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5c2dc2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c2ddf
lea eax, [ebp - 4]
call fcn.00409e60
ret

Function at 0x5c3034
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x5c3080
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.005c3eb4
test al, al
jne 0x5c3076
cmp word [edi], 0x5a4d
jne 0x5c3076
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x5c3076
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c308c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5c3224
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x762e14], 0
jne 0x5c3305
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x5c3277
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
jmp 0x5c32a8
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x5c3305
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x5c32d3
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x5c32e5
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x5c32ff
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x5c47f4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c4921
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040da68
cmp dword [0x779418], 0
je 0x5c490b
mov eax, dword [0x779418]
mov edx, dword [eax]
call dword [edx + 0x84]
xor eax, eax
push ebp
push 0x5c4904
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x5c489c
mov eax, dword [0x779414]
call fcn.0040c1b8
mov esi, eax
test esi, esi
jl 0x5c48e9
inc esi
xor ebx, ebx
mov eax, dword [0x779414]
mov eax, dword [eax + ebx*4]
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040b058
jne 0x5c4896
mov eax, edi
mov edx, dword [0x779414]
mov edx, dword [edx + ebx*4]
call fcn.0040da80
jmp 0x5c48e9
inc ebx
dec esi
jne 0x5c4864
jmp 0x5c48e9
cmp dword [ebp - 8], 0
je 0x5c48e9
mov eax, dword [0x779414]
call fcn.0040c1b8
mov esi, eax
test esi, esi
jl 0x5c48e9
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x779414]
mov eax, dword [eax + ebx*4]
mov edx, dword [eax]
call dword [edx + 0x94]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x5c48e5
mov eax, edi
mov edx, dword [0x779414]
mov edx, dword [edx + ebx*4]
call fcn.0040da80
jmp 0x5c48e9
inc ebx
dec esi
jne 0x5c48b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c490b
mov eax, dword [0x779418]
mov edx, dword [eax]
call dword [edx + 0x8c]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c4928
lea eax, [ebp - 0xc]
call fcn.00409e3c
ret
Function at 0x5c4e58
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x5c4e60
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x5c4f98
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x40], 0
jne 0x5c4f79
mov eax, esi
call fcn.005bfce8
test al, al
je 0x5c4f79
lea eax, [ebp - 0x2c]
call fcn.005c2330
cmp byte [ebp - 0x1a], 0
je 0x5c4f6b
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [esi + 0x38]
call fcn.0040acb4
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
mov eax, dword [ebp - 4]
call fcn.00406464
mov dword [esi + 0x40], eax
lea eax, [esi + 0x3c]
mov edx, dword [ebp - 8]
call fcn.0040ae48
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x3c]
call fcn.0040acb4
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x38]
call fcn.0040acb4
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp eax, 1
sbb ebx, ebx
inc ebx
mov byte [esi + 8], bl
test bl, bl
je 0x5c4f44
movzx eax, byte [ebp - 0xc]
mov byte [esi + 0x44], al
mov eax, dword [esi + 0x3c]
call fcn.0040acb4
mov edx, eax
lea eax, [esi + 0x3c]
call fcn.0040ad1c
mov eax, esi
test eax, eax
je 0x5c4f3d
sub eax, 0xffffffb8
call fcn.005c4728
jmp 0x5c4f79
lea eax, [esi + 0x3c]
call fcn.00409e3c
mov eax, dword [esi + 0x40]
call fcn.004064b4
xor eax, eax
mov dword [esi + 0x40], eax
call sub.kernel32.dll_GetLastError_2
mov edx, eax
xor ecx, ecx
mov eax, esi
call fcn.005bf628
jmp 0x5c4f79
xor ecx, ecx
mov edx, 0x78
mov eax, esi
call fcn.005bf628
mov ebx, dword [esi + 0x40]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c4f9f
lea eax, [ebp - 0x2c]
mov edx, dword [0x5c1d9c]
call fcn.0040b68c
ret
Function at 0x5c5440
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c55bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x130]
call fcn.005c2330
cmp byte [ebp - 0x11e], 0
je 0x5c5507
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 8]
call fcn.005c53c8
test al, al
je 0x5c54d6
mov edx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.005c5834
mov eax, dword [ebp - 8]
call fcn.004064b4
jmp 0x5c5588
call sub.kernel32.dll_GetLastError_2
push eax
push 0
push 0
push 0
push 2
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5c4330]
call fcn.005c4930
mov edx, eax
test edx, edx
je 0x5c54fb
sub edx, 0xffffffb8
mov eax, ebx
call fcn.0040da80
jmp 0x5c5588
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10d]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x5c555c
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
push 0
call fcn.0040a64c
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x134]
call fcn.0040ad8c
mov eax, dword [ebp - 0x134]
mov ecx, ebx
mov dl, 2
call fcn.005c5768
jmp 0x5c5588
call sub.kernel32.dll_GetLastError_2
push eax
push 0
push 0
push 0
push 2
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5c4330]
call fcn.005c4930
mov edx, eax
test edx, edx
je 0x5c5581
sub edx, 0xffffffb8
mov eax, ebx
call fcn.0040da80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c55c4
lea eax, [ebp - 0x138]
call fcn.00409e60
lea eax, [ebp - 0x134]
call fcn.00409e3c
lea eax, [ebp - 0x130]
mov edx, dword [0x5c1d9c]
call fcn.0040b68c
ret
Function at 0x5c5bf4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5c5d0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00409e3c
mov word [ebp - 0x194], 0
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x5c5ced
xor edx, edx
push ebp
push 0x5c5ce6
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
mov edx, esi
mov ecx, 0
call fcn.0040aa28
cmp dword [ebp - 4], 0
jne 0x5c5c8a
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.0040a9b0
push 0x104
mov eax, dword [ebp - 4]
call fcn.0040a8ec
push eax
call sub.wsock32.dll_gethostname
mov eax, dword [ebp - 4]
call fcn.0040a8ec
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x5c5cd3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1a0], eax
push dword [ebp - 0x1a0]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1a8]
mov ecx, 0
call fcn.0040a5c4
mov edx, dword [ebp - 0x1a8]
mov eax, ebx
call fcn.0040ad8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c5ced
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c5d15
lea eax, [ebp - 0x1a8]
call fcn.00409e60
lea eax, [ebp - 4]
call fcn.00409e60
ret
Function at 0x5c607c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c627c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.005c9514
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x763648], eax
mov eax, dword [ebp - 0xc]
mov dword [0x76364c], eax
mov eax, dword [ebp - 0x24]
mov dword [0x763650], eax
mov eax, dword [0x77363c]
cmp dword [eax], 2
sete byte [0x762e29]
push 0x5c6288
call sub.kernel32.dll_GetModuleHandleW_2
lea edx, [ebp - 4]
call fcn.005c780c
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x762e29], 0
jne 0x5c610b
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.005c7e30
test al, al
je 0x5c610b
mov eax, dword [ebp - 0x4c]
mov dword [0x779424], eax
jmp 0x5c6112
xor eax, eax
mov dword [0x779424], eax
call fcn.005c5d58
and eax, 0x7f
cmp eax, 0x14
ja case.0x5c6123.0
jmp dword [eax*4 + 0x5c612a]
mov byte [0x762e24], 1
jmp case.0x5c6123.0
mov byte [0x762e25], 1
jmp case.0x5c6123.0
mov byte [0x762e26], 1
jmp case.0x5c6123.0
mov byte [0x762e27], 1
jmp case.0x5c6123.0
mov byte [0x762e28], 1
jmp case.0x5c6123.0
mov byte [0x762e2a], 1
mov byte [0x762e2b], 1
jmp case.0x5c6123.0
mov byte [0x762e2a], 1
mov byte [0x762e2c], 1
jmp case.0x5c6123.0
mov byte [0x762e2a], 1
mov byte [0x762e2c], 1
mov byte [0x762e2d], 1
jmp case.0x5c6123.0
mov byte [0x762e2e], 1
jmp case.0x5c6123.0
mov byte [0x762e2f], 1
jmp case.0x5c6123.0
mov byte [0x762e30], 1
jmp case.0x5c6123.0
mov byte [0x762e31], 1
jmp case.0x5c6123.0
mov byte [0x762e32], 1
jmp case.0x5c6123.0
mov byte [0x762e33], 1
jmp case.0x5c6123.0
mov byte [0x762e34], 1
jmp case.0x5c6123.0
mov byte [0x762e35], 1
jmp case.0x5c6123.0
mov byte [0x762e36], 1
jmp case.0x5c6123.0
mov byte [0x762e37], 1
jmp case.0x5c6123.0
mov byte [0x762e38], 1
jmp case.0x5c6123.0
mov byte [0x762e39], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c6283
lea eax, [ebp - 4]
call fcn.00409e3c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040acb4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5c767d
test al, 0x10
jne 0x5c7681
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x5c76a6
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5c769e
test al, 0x10
je 0x5c76a2
xor eax, eax
jmp 0x5c76a8
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret