joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcb3000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xcb3131
push esi
call fcn.00cb6145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ca5080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xcb3131
push 0
push ebp
call fcn.00ca53a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ca5260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xcb308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ca52f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xcb3121
push 0xccb918
push edi
call fcn.00cb43f0
push eax
push ebx
push esi
call fcn.00cb2f60
push 0xccb8f8
push edi
call fcn.00cb43f0
push eax
push ebx
push esi
call fcn.00cb2f60
push 0xccb8d8
push edi
call fcn.00cb43f0
push eax
push ebx
push esi
call fcn.00cb2f60
push 0xccb8c0
push edi
call fcn.00cb43f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00cb2f60
push 0xccb8a0
push edi
call fcn.00cb43f0
push eax
push ebx
push esi
call fcn.00cb2f60
push 0xccb888
push edi
call fcn.00cb43f0
push eax
push ebx
push esi
call fcn.00cb2f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xcb41b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cb4140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cb4140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cb4140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cb4140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcb4bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcb4c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcc687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcb4c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcb4c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x40cfad
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 0x40cfdb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40cff9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040cf13
jmp 0x40cff9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40cff9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040cf13
test edi, edi
mov eax, edi
jne 0x40cfe3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404000
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x404036
mov dword [0x446040], eax
mov edx, 0x403fe0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040cae0
test eax, eax
sete al
movzx eax, al
mov dword [0x43e0d0], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43e0d0], eax
leave
ret

Function at 0x404120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.p
mov dword [ebp - 0x24], 0x43cbc4
mov dword [ebp - 0x1c], 0x4041e0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040d050
cmp dword [0x43e0d0], 0
mov dword [ebp - 0x44], 0x446050
je 0x4041c0
jl 0x404200
mov dword [ebp - 0x3c], 1
mov eax, dword [0x446040]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4042a3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040d130
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x446660]
mov eax, 0xffffffff
test edx, edx
je 0x40421a
mov eax, dword [0x43e0d4]
test eax, eax
je 0x40425a
xor eax, eax
test eax, eax
jne 0x404250
mov edi, dword [0x43e0d0]
test edi, edi
js 0x404250
mov dword [ebp - 0x44], 0x446050
mov ebx, dword [0x43e0d0]
test ebx, ebx
je 0x4041c0
jmp 0x40416e
xor esi, esi
mov dword [0x43e0d0], esi
jmp 0x404228
mov dword [esp], 0x43e0d8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4042e1
mov eax, dword [0x43e0d4]
test eax, eax
jne 0x404218
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43e0d4]
test eax, eax
je 0x40427d
jmp 0x404218
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4042d5
mov dword [esp + 4], eax
mov eax, dword [0x446040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40430a
test edx, edx
je 0x4042f5
mov dword [ebp - 0x3c], 1
call fcn.00403b80
call fcn.00404000
mov eax, 1
mov dword [0x43e0d4], eax
jmp 0x404218
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4041b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4042d1
Function at 0x409950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00409930
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40999c
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x409970
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040daa0
call fcn.0040cbe0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40c9b8
jmp 0x40ca56
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40c9b7
cmp cl, 0x22
je 0x40ca10
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40ca30
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40c9f0
jmp 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40ca10
cmp cl, 0x22
je 0x40ca92
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ca50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40ca40
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ca74
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._D_
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40ca30

Function at 0x40cf40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4466c0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40cf80
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040cae0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40d330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4466c0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d40c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d421
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d3e0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d378
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d388
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d3d3
test edx, edx
jne 0x40d3c6
test ecx, ecx
je 0x40d370
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40d430
cmp eax, 8
je 0x40d370
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d362
call fcn.0040cd00
mov eax, dword [0x4466c0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d354
call fcn.0040cfa0
mov eax, dword [0x4466c0]
jmp 0x40d354
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040d2a0
cmp eax, 7
jne 0x40d3cb
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d483
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d4ae
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d48f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040cd00
mov eax, dword [0x4466c0]
jmp 0x40d461
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d472
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d472
call fcn.0040cfa0
mov eax, dword [0x4466c0]
jmp 0x40d468
Function at 0x40d710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4466c0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d7a4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d7c0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d7e0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40d798
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040d2a0
cmp eax, 7
jne 0x40d85f
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d836
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40d850
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40d810
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040d4c0
jmp 0x40d755
call fcn.0040cd00
mov eax, dword [0x4466c0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d730
lea esi, [esi]
call fcn.0040cfa0
mov eax, dword [0x4466c0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d73b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d73e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d787
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d787
call fcn.0040cd00
mov eax, dword [0x4466c0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40d779
nop
lea esi, [esi]
call fcn.0040cfa0
mov eax, dword [0x4466c0]
jmp 0x40d779
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40d870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40d902
mov eax, dword [0x4466c0]
test eax, eax
je 0x40d8f6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40d971
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40d917
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040d4c0
cmp eax, 7
jne 0x40d98f
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d962
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40d980
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40d943
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040cd00
mov eax, dword [0x4466c0]
jmp 0x40d892
mov dword [esp], edi
call fcn.0040d330
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d8a7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d8e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d8e5
call fcn.0040cd00
mov eax, dword [0x4466c0]
jmp 0x40d8d0
call fcn.0040cfa0
mov eax, dword [0x4466c0]
jmp 0x40d89d
call fcn.0040cfa0
mov eax, dword [0x4466c0]
jmp 0x40d8db
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40e250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ebx
sub esp, 0x124
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x40e457
cmp byte [ebx], 0
je 0x40e423
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x40e448
test al, 0x10
je 0x40e423
mov dword [esp + 4], ebx
mov eax, 0x104
lea esi, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll__fullpath
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
mov eax, edx
and eax, 0x80808080
je 0x40e2c0
and edx, 0x8080
jne 0x40e2e6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + 0x233]
mov dword [esp], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x40e439
mov dword [esp + 4], esi
lea esi, [eax + 0x22c]
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
cmp byte [ebx + 0x22c], 0
je 0x40e3c0
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x40e330
and edx, 0x8080
jne 0x40e356
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x2f
je 0x40e3c0
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x40e370
and edx, 0x8080
jne 0x40e396
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x5c
je 0x40e3c0
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x5c
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x2a
mov eax, 0xffffffff
xor edx, edx
mov dword [ebx + 0x224], eax
xor ecx, ecx
xor esi, esi
mov dword [ebx + 0x228], edx
xor eax, eax
mov edx, 0x104
mov dword [ebx + 0x118], ecx
xor ecx, ecx
mov word [ebx + 0x11c], si
lea esi, [ebx + 0x120]
mov word [ebx + 0x11e], ax
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memset
add esp, 0x124
mov eax, ebx
pop ebx
pop esi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x124
pop ebx
pop esi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x40e430
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x40e430
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x40e430
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x56a60fd7
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x162b0e53
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x435360]
test eax, eax
push esi
push edi
je 0x4011eb
mov eax, dword [esp + 0x10]
mov edx, dword [0x434054]
mov ecx, dword [0x434058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4011b6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40125f
mov esi, dword [0x434050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x434054]
add ecx, eax
pop edi
mov dword [0x434054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.00420388
mov edi, eax
mov eax, dword [0x435350]
add esp, 0x10
test eax, eax
je 0x40125d
test edi, edi
jle 0x40125d
mov edx, dword [0x4351bc]
mov eax, dword [0x4351a0]
lea ecx, [eax + edx]
mov edx, dword [0x4351ac]
mov eax, dword [0x4351a8]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40125d
mov dl, byte [0x4351b4]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x401247
pop ebp
mov byte [0x4351b4], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x411760
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
mov cl, byte [esp + 0x50]
test cl, 2
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, 0xa
je 0x411785
mov eax, 2
mov edx, dword [esp + 0x4c]
cmp byte [edx], 0
je 0x41183c
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [0x4361fc]
mov ecx, dword [eax + 0x34]
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], ecx
call fcn.0041f7e0
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], eax
call fcn.0041f7e0
mov dword [esp + 0x2c], eax
add esp, 0x10
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
lea ecx, [esp]
push ecx
jne 0x411826
call fcn.0041f7f0
lea edx, [esp + 8]
push edx
call fcn.0041f7f0
add esp, 8
push 0x432754
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0xe
call fcn.00420843
call fcn.0041f7f0
lea edx, [esp + 8]
push edx
call fcn.0041f7f0
add esp, 8
add esp, 0x44
ret
test cl, 0x10
push esi
push eax
lea eax, [esp + 8]
je 0x41186c
mov ecx, dword [esp + 0x50]
push 0x42d3a1
push 0x42d3a1
push eax
push ecx
call fcn.0041f7e0
add esp, 8
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4118aa
test cl, 0x20
mov ecx, dword [esp + 0x50]
je 0x411899
push 0x42d3a1
push 0x42d3a1
push eax
push ecx
call fcn.0041f7e0
add esp, 8
push eax
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4118aa
push eax
push ecx
call fcn.0041f7e0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea edx, [esp + 4]
push edx
mov esi, eax
call fcn.0041f7f0
add esp, 4
cmp esi, 0x20
pop esi
jge 0x411838
push 0x432754
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0xe
call fcn.00420843
int3
Function at 0x414cb0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x43621c]
test byte [eax + 0x30c], 2
je 0x414d3c
mov edx, dword [esi + 4]
cmp edx, 0x200
mov edi, dword [0x436214]
jne 0x414d1d
test edi, edi
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 0xe]
jne 0x414d12
cmp dword [0x43620c], eax
jne 0x414cfb
cmp dword [0x436210], ecx
je 0x414d1d
push 0x432754
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00420843
mov dword [0x43620c], eax
mov dword [0x436210], ecx
cmp edx, 0x100
jne 0x414d3c
test edi, edi
jne 0x414d3c
push 0x432754
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], edi
call fcn.00420843
cmp dword [esi + 4], 0x100
jne 0x414d7a
cmp dword [esi + 8], 9
jne 0x414d50
call fcn.00414a20
push 2
call fcn.00403f50
add esp, 4
test eax, eax
je 0x414d7a
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00404d10
add esp, 0x10
pop edi
pop ecx
ret