joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003728
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x100373f
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 8], eax
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10037cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x10037c7
cmp eax, 2
je 0x10037c7
cmp eax, 5
je 0x10037eb
cmp eax, edi
mov edi, eax
jle 0x1003779
and edi, 0xffff
or edi, 0x80070000
cmp eax, 0x15
jne 0x10037aa
mov ecx, ebx
push esi
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1003784
sub ecx, esi
sar ecx, 1
cmp ecx, 3
pop esi
jle 0x10037aa
cmp word [ebx + ecx*2 - 2], 0x5c
jne 0x10037aa
cmp word [ebx + ecx*2 - 4], 0x3a
jne 0x10037aa
xor edi, edi
test edi, edi
jge 0x10037eb
cmp dword [ebp + 0x10], 0
je 0x10037eb
push ebx
push 0x23
push eax
push 0
push dword [ebp + 8]
call fcn.010066a7
add esp, 0x14
jmp 0x10037eb
xor edi, edi
inc edi
jmp 0x10037eb
test al, 0x10
jne 0x10037eb
cmp dword [ebp + 0x10], edi
je 0x10037e6
push ebx
push 0x14
push edi
push 0x10
push dword [ebp + 8]
call fcn.010066a7
add esp, 0x14
mov edi, 0x80004005
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x10037f8
Capabilities:
Create directory

Disassembly:
push 0xc
mov eax, 0x10080ed
call fcn.01007402
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.0100672b
lea ecx, [ebp - 0x14]
mov esi, eax
call sub.MFC42u.dll_CString::CString_3
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call fcn.01006828
mov eax, 0x10019b4
cmp esi, edi
jne 0x100383b
mov eax, 0x10019a4
push eax
lea ecx, [ebp - 0x10]
call fcn.01006d76
mov byte [ebp - 4], 1
cmp esi, edi
je 0x1003851
lea eax, [ebp - 0x14]
jmp 0x1003870
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::Right
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.01006d16
test byte [ebp - 0x18], 1
mov dword [ebp - 4], 1
je 0x100388e
lea ecx, [ebp + 0xc]
call sub.MFC42u.dll_CString::CString
push edi
push dword [ebp - 0x10]
push edi
call fcn.01003728
neg esi
sbb esi, esi
and esi, 0x16
add esi, 0x24
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_wcschr]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.msvcrt.dll_wcsrchr]
add eax, 4
push 0x5c
push eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0x18], eax
call ebx
add esp, 0x10
jmp 0x10038f5
push 1
push dword [ebp + 8]
xor eax, eax
push eax
mov word [esi], ax
call fcn.01003728
test eax, eax
jl 0x10038fd
je 0x1003922
test edi, edi
je 0x10038e9
push 0x5c
pop eax
mov word [edi - 2], ax
push 0x5c
push dword [ebp - 0x18]
lea edi, [esi + 2]
call ebx
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x10038c8
jmp 0x1003928
xor esi, esi
inc esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString
mov eax, esi
call fcn.010074b0
ret 8
push 0x5c
pop eax
mov word [esi], ax
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x100395b
test edi, edi
je 0x100397e
cmp word [edi], 0
je 0x100397e
push 0x5c
pop eax
push eax
push edi
mov word [edi - 2], ax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1003959
xor ecx, ecx
mov word [eax], cx
lea edi, [eax + 2]
jmp 0x100395b
xor edi, edi
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1003930
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100397a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1003900
xor esi, esi
jmp 0x1003900
Function at 0x1003f49
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x100a278]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xdc], 0
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xd8]
push eax
push 0x68
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x1003f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003f90
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xdc], eax
jmp 0x1003ff3
lea ecx, [eax + 1]
mov eax, dword [ebp + 8]
cmp ecx, eax
jbe 0x1003fae
mov dword [ebp - 0xdc], 0x80070057
jmp 0x1003ff3
push esi
push edi
lea edi, [eax + eax]
push edi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp word [ebp - 0xd8], 0
lea esi, [ebp - 0xd8]
je 0x1003ff1
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x1003fe8
push 8
push esi
push edi
push ebx
call fcn.01003b47
add ebx, 8
add esi, 8
cmp word [esi], 0
jne 0x1003fcf
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xdc]
xor ecx, ebp
pop ebx
call fcn.010073ed
leave
ret 8
Function at 0x100672b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a278]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20c], edi
test edi, edi
je 0x1006810
movzx esi, word [edi]
test si, si
je 0x1006810
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1006764
sub eax, edx
sar eax, 1
cmp eax, 2
jbe 0x100678c
cmp si, 0x5c
jne 0x100678c
cmp word [edi + 2], si
jne 0x100678c
add edi, 4
mov dword [ebp - 0x20c], edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
xor esi, esi
push esi
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x1006805
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x204]
push eax
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x100680b
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x1006805
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push eax
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x100680b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop ebx
jmp 0x1006813
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010073ed
leave
ret 4

Function at 0x100694d
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0xffffffffffffffff
xor eax, eax
lea ecx, [ebp - 0x10]
inc eax
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.srvcli.dll_NetShareEnum
cmp eax, esi
jne 0x10069fe
push edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 8], esi
cmp dword [ebp - 0xc], esi
jbe 0x10069f3
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_towupper]
test dword [edi + 4], 0x80000000
je 0x10069de
mov esi, dword [edi]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10069a6
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x10069de
cmp word [esi + 2], 0x24
jne 0x10069de
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
push eax
call ebx
movzx ecx, word [esi]
push ecx
mov word [ebp + 0xa], ax
call ebx
pop ecx
pop ecx
mov cx, word [ebp + 0xa]
cmp ax, cx
je 0x10069ee
add edi, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jb 0x1006996
jmp 0x10069f2
and dword [ebp - 4], 0
pop ebx
push dword [ebp - 0x10]
call sub.netutils.dll_NetApiBufferFree
pop edi
jmp 0x1006a0d
jle 0x1006a0a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x1006a1a
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100a278]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x18e
xor edi, edi
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1006ab2
push 0x7e
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push edi
push eax
call sub.msvcrt.dll_memset
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push 0x17
push esi
mov dword [ebp - 0x218], 0x80
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x1006aac
inc edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.010073ed
leave
ret 4
Function at 0x10073d2
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1008c60
call fcn.01007874
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100a724
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100718d
cmp eax, esi
jne 0x1007180
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1007190
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1007167
xor esi, esi
inc esi
mov eax, dword [0x100a720]
cmp eax, esi
jne 0x10071a3
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10071d2
mov eax, dword [0x100a720]
test eax, eax
jne 0x10071cc
mov dword [0x100a720], esi
push 0x100145c
push 0x1001450
call fcn.010070c9
pop ecx
pop ecx
test eax, eax
je 0x10071d2
jmp 0x10072f6
mov dword [0x100a3dc], esi
mov eax, dword [0x100a720]
cmp eax, esi
jne 0x10071f6
push 0x100144c
push 0x100143c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100a720], 2
cmp dword [ebp - 0x20], ebx
jne 0x1007203
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100a730], ebx
je 0x1007224
push 0x100a730
call fcn.010077e9
pop ecx
test eax, eax
je 0x1007224
push ebx
push 2
push ebx
call dword [0x100a730]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10072f6
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100728e
cmp cx, bx
je 0x1007249
cmp dword [ebp - 0x1c], ebx
jne 0x100728e
movzx ecx, word [eax]
cmp cx, bx
je 0x100725e
cmp cx, 0x20
ja 0x100725e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1007249
test byte [ebp - 0x40], 1
je 0x100726a
movzx ecx, word [ebp - 0x3c]
jmp 0x100726d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100a3d8], eax
cmp dword [0x100a3cc], ebx
jne 0x10072d3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100729f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1007233
cmp dword [0x100a3dc], ebx
jne 0x10072e1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100a3d8]
jmp 0x1007302
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010078b9
ret
call fcn.010079c1
jmp 0x100712a
Function at 0x1007c59
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100a278]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002074
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007d2e
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007d1d
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1007d07
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1007d1d
push eax
push edi
push dword [ebp - 0x110]
call fcn.01007bf1
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1007d30
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010073ed
leave
ret 4
Function at 0x401000
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x640
mov eax, dword [0x408024]
xor eax, esp
mov dword [esp + 0x63c], eax
push ebx
push ebp
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x40c
mov ebp, eax
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x14], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp ebp, 0xffffffff
jne 0x401057
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x63c]
xor ecx, esp
call fcn.004047bd
add esp, 0x640
ret
lea ecx, [esp + 0x418]
push ecx
push ebp
mov dword [esp + 0x420], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40103e
xor eax, eax
jmp 0x401080
movzx ecx, word [eax + str.driverscanner.exe]
mov word [esp + eax + 8], cx
add eax, 2
cmp cx, bx
jne 0x401080
lea eax, [esp + 8]
add eax, 0xfffffffe
jmp 0x4010a0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4010a0
mov edx, dword [0x4061dc]
mov ecx, dword [0x4061e0]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x4010d0
lea ecx, [esp + 0x444]
mov eax, str.driverscanner.exe
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401106
cmp dx, bx
je 0x401102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401106
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4010e0
xor eax, eax
jmp 0x40110b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40114f
lea ecx, [esp + 0x444]
lea eax, [esp + 0x10]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401146
cmp dx, bx
je 0x401142
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401146
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401120
xor eax, eax
jmp 0x40114b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401162
mov edx, dword [esp + 0x428]
push edx
push ebx
push 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x40117a
lea eax, [esp + 0x420]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4010d0
jmp 0x40118d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov bl, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x64c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004047bd
add esp, 0x640
ret
Function at 0x4047bd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408024]
jne 0x4047c7
repz ret
jmp fcn.00404b85
Function at 0x10022d0
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x68
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10022fe
call fcn.01004973
xor eax, eax
jmp 0x1002365
lea eax, [ebp - 0xc]
push eax
push 0x10012a0
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1002322
call fcn.01004973
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10022fa
mov eax, dword [ebp - 0xc]
push esi
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1002359
call fcn.01004973
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
leave
ret

Function at 0x1002cc3
Capabilities:
Get token privileges

Disassembly:
push 8
mov eax, 0x1009357
call fcn.0100423d
mov edi, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push ebx
push ebx
push 3
push dword [edi]
mov dword [ebp - 0x14], ebx
call esi
cmp dword [ebp - 0x14], ebx
jne 0x1002cf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002db4
push dword [ebp - 0x14]
call fcn.01004c86
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x1002d0f
push 8
pop eax
jmp 0x1002db4
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
push 3
push dword [edi]
call esi
cmp eax, ebx
jne 0x1002d2c
lea eax, [ebp - 0x10]
push eax
call fcn.01004f9c
jmp 0x1002ced
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
shl eax, 2
push eax
call fcn.01004c86
mov esi, dword [ebp + 8]
mov dword [esi], eax
cmp eax, ebx
jne 0x1002d53
lea eax, [ebp - 0x10]
push eax
call fcn.01004f9c
jmp 0x1002d07
mov ecx, dword [ebp - 0x10]
xor eax, eax
xor edi, edi
cmp ax, word [ecx]
jae 0x1002da9
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x1002d88
mov edx, dword [ebp - 0x10]
movzx eax, di
imul eax, eax, 0xc
lea eax, [eax + edx + 4]
push eax
call fcn.01002115
jmp 0x1002d8a
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov edx, dword [esi]
movzx ecx, di
shl ecx, 2
mov dword [ecx + edx], eax
mov eax, dword [esi]
cmp dword [ecx + eax], ebx
je 0x1002d21
mov eax, dword [ebp - 0x10]
inc edi
cmp di, word [eax]
jb 0x1002d5f
lea eax, [ebp - 0x10]
push eax
call fcn.01004f9c
xor eax, eax
call fcn.010042b0
ret 8

Function at 0x100379e
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add ecx, 0xc
pop ebp
jmp fcn.0100271f
Function at 0x100420d
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10094a0
call fcn.010044c4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100a4a4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1004022
cmp eax, esi
jne 0x1004015
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1004025
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003ffc
xor esi, esi
inc esi
mov eax, dword [0x100a4a0]
cmp eax, esi
jne 0x1004038
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1004073
mov eax, dword [0x100a4a0]
test eax, eax
jne 0x100406d
mov dword [0x100a4a0], esi
push 0x10011c4
push 0x10011b8
call fcn.01003f79
pop ecx
pop ecx
test eax, eax
je 0x1004073
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100413d
mov dword [0x100a04c], esi
mov eax, dword [0x100a4a0]
cmp eax, esi
jne 0x1004097
push 0x10011b4
push 0x10011ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100a4a0], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10040a4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100a4a8], ebx
je 0x10040c5
push 0x100a4a8
call fcn.01004439
pop ecx
test eax, eax
je 0x10040c5
push ebx
push 2
push ebx
call dword [0x100a4a8]
push dword [0x100a034]
push dword [0x100a038]
push dword [0x100a030]
call fcn.01001b2c
add esp, 0xc
mov dword [0x100a048], eax
cmp dword [0x100a03c], ebx
jne 0x1004123
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100a04c], ebx
jne 0x1004131
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100a048]
call fcn.01004509
ret
call fcn.01004611
jmp 0x1003fda
Function at 0x41c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x420190
cmp edx, dword [eax]
je 0x41c78b
add eax, 8
inc ecx
cmp eax, 0x420220
jl 0x41c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x420190]
jne 0x41c8b9
mov eax, dword [0x420bb0]
cmp eax, 1
je 0x41c893
test eax, eax
jne 0x41c7bc
cmp dword [0x4200e4], 1
je 0x41c893
cmp edx, 0xfc
je 0x41c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f45c
push edi
call fcn.0041df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041d680
lea eax, [ebp - 0xa0]
push 0x41f43c
push eax
call fcn.0041d680
push dword [esi + 0x420194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041de75
add esp, 0x2c
pop edi
jmp 0x41c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x420194]
push 0
push eax
push dword [esi]
call fcn.0041d490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219