joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a51d0
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 [0x6ced24], 0
je 0x5a5311
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6b52f4]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x5a5311
mov eax, dword [0x6ced28]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6ced24]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x5a52e0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6ced24]
call fcn.0042d784
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5a52d8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x5a52d8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x5a52d8
mov eax, dword [ebp - 0x14]
call fcn.005b0cf0
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x5a52d8
push ebp
call fcn.005a518c
pop ecx
test al, al
jne 0x5a52d8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00481fa4
test al, al
je 0x5a52d8
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.00481fa4
cmp byte [ebp - 1], 0
je 0x5a52d8
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0047d990
test al, al
je 0x5a52d8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6ced28]
call fcn.005a48e8
inc edi
dec ebx
jne 0x5a5235
mov eax, dword [0x6ced28]
cmp dword [eax + 8], 0
jle 0x5a52f8
mov eax, dword [0x6ced28]
call fcn.005a49a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5a5311
push ebp
mov eax, dword [ebp - 0x18]
call fcn.005a4ff4
pop ecx
test al, al
jne 0x5a5311
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 0x5ad7bc
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.0047d978
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.005a777c
test ebx, ebx
jne 0x5ad80f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005ad638
mov ebx, eax
test ebx, ebx
je 0x5ad905
cmp esi, ebx
je 0x5ad838
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 0x5ad84d
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 0x5ad885
add eax, 0xffffff5f
sub eax, 2
jb 0x5ad89d
dec eax
sub eax, 2
jb 0x5ad8b1
dec eax
sub eax, 2
jb 0x5ad8a7
jmp 0x5ad8bb
add eax, 0xfffffdff
sub eax, 2
jb 0x5ad89d
dec eax
sub eax, 2
jb 0x5ad8b1
dec eax
sub eax, 2
jb 0x5ad8a7
jmp 0x5ad8bb
mov byte [esp + 0x120], 0
jmp 0x5ad8c3
mov byte [esp + 0x120], 2
jmp 0x5ad8c3
mov byte [esp + 0x120], 1
jmp 0x5ad8c3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0056edb4
mov esi, eax
call fcn.005a4298
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.005a9190
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5ad907
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x5f58bc
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x6cedd0], 0
jne 0x5f58df
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x5f5830
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x6cedd0], eax
ret

Function at 0x604b74
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x604c61
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x604c33
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x604c22
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00481344
mov eax, dword [ebp - 4]
call fcn.006048b4
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
test eax, eax
jne 0x604c0b
mov ecx, dword [0x6b5594]
mov dl, 1
mov eax, dword [0x41f02c]
call fcn.00468258
call fcn.00482fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604c29
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret

Function at 0x604d8c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x604dfe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x604dd2
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004843a0
jmp 0x604dd9
mov eax, ebx
call fcn.004837b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604e05
cmp dword [ebp - 8], 0
je 0x604df5
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x604e40
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x604ee8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x604ebb
mov edx, ebx
mov eax, dword [0x556b38]
call fcn.0055ea28
test al, al
je 0x604eab
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0055e940
call fcn.004830b0
jmp 0x604eef
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x604e73
mov ecx, dword [0x6b56a8]
mov dl, 1
mov eax, dword [0x6047bc]
call fcn.00468258
call fcn.00482fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604eef
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x604ef8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x604f54
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604f5b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x604f64
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x604fb9
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604fc0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x605030
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x6050a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.006048b4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0055ea04
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x60508f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6050ac
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x6050b4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x605129
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.006048b4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x605113
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x605130
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x627998
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x627ac0
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00627884
mov eax, dword [esi]
call fcn.004854c8
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x627fe4]
call fcn.0048567c
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00481344
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00481344
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004854c8
mov dword [ebp - 0xc], eax
mov eax, dword [0x6b5714]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.0062d070
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00481704
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004854c8
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.0062d04c
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.0062ce04
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.0062d068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x627ac7
lea eax, [ebp - 4]
mov edx, dword [0x627fe4]
call fcn.00485688
ret
Function at 0x668944
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call fcn.004844b4
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x668969
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call fcn.00484338
push eax
call sub.KERNEL32.DLL_GetComputerNameW
test eax, eax
je 0x668988
mov eax, ebx
mov edx, dword [esp]
call fcn.004844b4
pop ecx
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x694ff0
call fcn.00696378
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x69500f
test bl, 1
je 0x69500f
call fcn.0069d0c0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x699240
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00693c38
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.00693d84
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00693d84
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x6b39cd
lea ecx, [ebp - 0x200]
push ecx
call fcn.00693c38
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.00693d84
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.0069a97c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x699351
push esi
call fcn.00693d84
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00693d84
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00692cd8
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x699328
xor eax, eax
jmp 0x6993d8
push esi
call fcn.00693d84
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00693d84
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00693b3f
add esp, 0xc
jmp 0x699391
mov edi, dword [ebx + 0x24]
push edi
call fcn.00693d84
pop ecx
push eax
push esi
call fcn.00693d84
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00693d84
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00692cf8
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x699391
xor eax, eax
jmp 0x6993d8
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00693c38
add esp, 8
push 0x6b39cf
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00693c38
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.00693c38
add esp, 8
push 0x6b39d1
mov edx, dword [ebx + 0x24]
push edx
call fcn.00693c38
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x69d054
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x69d081
jmp 0x69d0b8
call fcn.0069d004
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00693d84
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00693d84
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x69d13c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x6b40d8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x69d216
cmp dword [0x6b40d4], 0
jne 0x69d216
cmp dword [0x6b42d4], 0
je 0x69d1d0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0069c844
add esp, 8
mov ebx, eax
test eax, eax
jne 0x69d1b6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0069c844
add esp, 8
mov ebx, eax
test eax, eax
jne 0x69d1b6
lea ebx, [ebp - 0x84]
jmp 0x69d1b7
inc ebx
call fcn.0069d0f4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x69d251
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x6b40dc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00693d84
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x6b40df
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x69d251
cmp dword [0x6b40d4], 0
je 0x69d230
cmp dword [0x6b40d4], 0xffffffff
je 0x69d251
push esi
call dword [0x6b40d4]
pop ecx
mov eax, dword [0x6b40d8]
test eax, eax
je 0x69d251
cmp dword [0x6b40d8], 0xffffffff
je 0x69d251
cmp byte [eax], 0
je 0x69d251
push esi
push eax
call fcn.0069d054
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x69db5c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x6cfd74], 0
jne 0x69dbdd
cmp dword [0x6cfd94], 0
jne 0x69db8c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x6cfd94], eax
test eax, eax
jne 0x69db8c
push str.GetEnvironmentStrings_failed
call fcn.0069d268
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x6cfd94]
jmp 0x69dba0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00693d84
pop ecx
mov edi, eax
test eax, eax
jne 0x69db98
lea edi, [ebp + 1]
push edi
call fcn.00692cd8
pop ecx
mov ebx, eax
mov dword [0x6cfd78], ebx
test ebx, ebx
jne 0x69dbca
xor eax, eax
jmp 0x69dca0
push edi
mov edx, dword [0x6cfd94]
push edx
push ebx
call fcn.00693958
add esp, 0xc
jmp 0x69dbfd
xor esi, esi
mov ebx, dword [0x6cfd74]
jmp 0x69dbf7
push eax
call fcn.00693d84
pop ecx
test eax, eax
jne 0x69dbf3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x69dbe7
lea ebx, [esi + 4]
push 4
mov dword [0x6cfd7c], ebx
inc ebx
push ebx
call fcn.00692c3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x69dc20
xor eax, eax
jmp 0x69dca0
cmp dword [0x6cfd74], 0
jne 0x69dc51
xor esi, esi
mov ebx, dword [0x6cfd78]
mov eax, dword [esp]
mov ebp, eax
jmp 0x69dc42
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00693d84
pop ecx
mov edi, eax
test eax, eax
jne 0x69dc38
jmp 0x69dc82
xor esi, esi
mov ebx, dword [0x6cfd74]
mov eax, dword [esp]
mov edi, eax
jmp 0x69dc7c
push eax
call fcn.00693d84
pop ecx
test eax, eax
je 0x69dc71
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x69dc75
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x69dc60
mov eax, dword [0x6cfd74]
test eax, eax
je 0x69dc92
push eax
call fcn.00692ce8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x6cfd74], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4016a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4016b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4016e4
cmp esi, eax
jae 0x4016e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4016d4
cmp esi, eax
jb 0x4016ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4018d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.360EntPublish
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40191e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40191e
call fcn.00419220
test al, al
je 0x40190c
call fcn.0040f610
mov ecx, dword [0x436770]
call fcn.00407560
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x4027c0
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.0041e500
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
ret
Function at 0x403030
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x42a888
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [eax - 0xc], edi
jne 0x4030a0
or ebx, 0xffffffff
mov dword [esp + 0x24], ebx
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40308a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret 4
lea ebx, [esi + 4]
lea eax, [esp + 0x2c]
call fcn.00403250
mov ebx, dword [ebx]
push edi
push 0x8000000
push 3
push edi
push 7
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
mov dword [esi], eax
cmp eax, ebx
jne 0x4030d8
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x2c]
jmp 0x403071
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esi + 8], edx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40311b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret 4

Function at 0x4031a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4031ac
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0x4000
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
test eax, eax
jbe 0x4031d6
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop ecx
ret