joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100259f
Capabilities:
Accept command line arguments
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x1006074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea ecx, [ebp - 0x2c8]
call fcn.01001675
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.010027dc
test eax, eax
je 0x10025e6
push 0x40
push 0x70
push 0
call fcn.0100277d
add esp, 0xc
or eax, 0xffffffff
jmp 0x1002768
call fcn.0100284a
test eax, eax
jne 0x10025f5
push 0x40
push 0x71
jmp 0x10025d4
push ebx
xor ebx, ebx
push ebx
call fcn.0100291a
cmp eax, 0x102
je 0x1002757
or edi, 0xffffffff
cmp eax, edi
je 0x1002746
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1002653
cmp dword [ebp - 0x9c], 5
jne 0x1002653
call fcn.010028c9
test eax, eax
je 0x100265c
push 0x40
push 0x73
jmp 0x100274a
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
je 0x1002753
xor edi, edi
inc edi
cmp dword [ebp - 0x2cc], edi
jle 0x10026c9
mov ecx, dword [eax + edi*4]
mov edx, 0x1001344
mov si, word [ecx]
cmp si, word [edx]
jne 0x10026b1
cmp si, bx
je 0x10026ad
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x10026b1
add ecx, 4
add edx, 4
cmp si, bx
jne 0x100268b
xor ecx, ecx
jmp 0x10026b6
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x10026c0
mov dword [ebp - 0x2c0], ebx
inc edi
cmp edi, dword [ebp - 0x2cc]
jl 0x1002683
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x2a8]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
lea eax, [ebp - 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10026ff
push 0x1001294
call fcn.010030a9
lea edi, [ebp - 0x1a4]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1002706
mov esi, 0x1001338
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c8]
push eax
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x2c0]
neg eax
sbb eax, eax
push 0x10023f0
and eax, 0xffffffe5
push ebx
add eax, 0x81
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x1002767
push 0x40
push 0x75
push ebx
call fcn.0100277d
add esp, 0xc
mov eax, edi
jmp 0x1002767
push 0x40
push 0x72
push ebx
call fcn.0100277d
add esp, 0xc
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01003ba3
leave
ret 0x10
Function at 0x10027dc
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1006074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0xbb8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x1002829
inc eax
jmp 0x1002839
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01003ba3
leave
ret

Function at 0x100284a
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1006074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10028b4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10028ab
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.01003ba3
leave
ret
Function at 0x1002aff
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1006074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x10013c4
push 0x80000002
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1002b59
xor eax, eax
jmp 0x1002c35
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
cmp edi, ebx
je 0x1002c0d
push esi
lea eax, [ebp - 0x108]
push 0x10013b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002ba7
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x108]
push eax
push 2
push ebx
push 0x10013a4
push dword [ebp - 0x10c]
call esi
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
cmp edi, ebx
je 0x1002c0d
mov eax, dword [ebp - 0x114]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002be4
sub eax, edi
push eax
push dword [ebp - 0x114]
push 2
push ebx
push 0x1001398
push dword [ebp - 0x10c]
call esi
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
cmp dword [ebp - 0x10c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1002c23
push dword [ebp - 0x10c]
call esi
cmp dword [ebp - 0x110], ebx
je 0x1002c33
push dword [ebp - 0x110]
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003ba3
leave
ret 8

Function at 0x1002c4b
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1006074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0xd
pop ecx
mov esi, 0x10013f8
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c78
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002c88
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
test eax, eax
setge cl
pop edi
pop esi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01003ba3
leave
ret 4
Function at 0x1002ed2
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x6c
push 0x1004648
call fcn.01003c2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
test eax, eax
jne 0x100301e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1002f25
xor eax, eax
jmp 0x1003020
push dword [ebp - 0x1c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
cmp eax, edi
je 0x1002f1e
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x1002f6c
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1006074
call fcn.01003cf0
add esp, 0xc
jmp 0x1002f1e
mov dword [ebp - 0x20], edi
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x24]
jae 0x1003012
imul esi, esi, 0x24
add esi, dword [ebp - 0x28]
push 9
pop ecx
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
push dword [ebp - 0x7c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x1002f57
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1002f57
cmp dword [ebp - 0x54], ebx
je 0x1002ff4
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1002f57
cmp dword [ebp - 0x54], ebx
je 0x1002ff4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x1002fb3
jmp 0x1002f57
and dword [ebp - 4], 0
call fcn.01003008
inc dword [ebp - 0x20]
jmp 0x1002f6f
mov dword [ebp - 4], 0xfffffffe
call fcn.0100302b
mov eax, ebx
call fcn.01003c71
ret 8

Function at 0x1003043
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100309d
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x100309d
push eax
push eax
lea eax, [ebp + 8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10030fd
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
xor esi, esi
push esi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0xc], edi
je 0x100320c
push ebx
push 0x2c
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, esi
jne 0x100314b
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100320b
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push ebx
call esi
test eax, eax
je 0x10031fd
cmp dword [ebp - 0x2c], 1
je 0x100320b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10031a7
push dword [ebp - 0x18]
call edi
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x10031fd
cmp dword [ebp - 0x2c], 1
je 0x10031fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x7530
ja 0x10031fd
cmp dword [ebp - 0x2c], 3
je 0x1003179
push ebx
push dword [ebp - 0xc]
call fcn.01002ed2
lea eax, [ebp - 0x30]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10031fd
jmp 0x10031f7
push dword [ebp - 0x18]
call edi
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x10031fd
cmp dword [ebp - 0x2c], 1
je 0x10031fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x7530
ja 0x10031fd
cmp dword [ebp - 0x2c], 1
jne 0x10031c9
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0xc]
call esi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x1003493
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
push edi
push dword [esi + 8]
call fcn.010037e7
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x10034bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1003568
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x1001470
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x100355f
mov eax, dword [esi + 8]
mov ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 3
cmp ecx, eax
jae 0x10034f4
push 0xd
pop edi
jmp 0x100355f
dec eax
mov ecx, eax
and ecx, 0x80000007
push ebx
jns 0x1003505
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
add eax, edx
mov bl, 1
shl bl, cl
mov edi, eax
mov eax, dword [esi + 4]
sar edi, 3
test byte [edi + eax], bl
je 0x1003521
movzx edi, bl
jmp 0x100355e
push dword [esi + 8]
push 0xff
push dword [ebp - 8]
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 8]
mov al, bl
not al
and byte [edi + ecx], al
mov eax, dword [esi + 4]
add esp, 0xc
add eax, edi
or byte [eax], bl
push dword [esi + 8]
push ecx
push dword [esi + 0xc]
push 0
push 0x1001468
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
pop ebx
push dword [ebp - 8]
call fcn.01003785
pop ecx
cmp dword [ebp - 4], 0
je 0x1003577
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret 4

Function at 0x1003589
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x1001470
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x10035d2
push dword [esi + 8]
push dword [esi + 4]
push dword [esi + 0xc]
push eax
push 0x1001468
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
cmp dword [ebp - 4], 0
je 0x10035e1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x10035f1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push 0x1001470
push 0x80000002
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
cmp ebx, esi
jne 0x100368f
push edi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 0x1001468
push edi
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
jne 0x100368e
push dword [ebp - 8]
call fcn.010037e7
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x100368e
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
jne 0x1003685
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
jmp 0x100368e
push dword [ebp - 0x10]
call fcn.01003785
pop ecx
pop edi
cmp dword [ebp - 4], 0
je 0x100369e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
pop esi
sete al
pop ebx
leave
ret
Function at 0x1003b6d
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x10046c8
call fcn.01003c2c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10066f4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1003917
cmp eax, esi
jne 0x100390a
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100391a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10038f1
xor esi, esi
inc esi
mov eax, dword [0x10066f0]
cmp eax, esi
jne 0x100392d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100395c
mov eax, dword [0x10066f0]
test eax, eax
jne 0x1003956
mov dword [0x10066f0], esi
push 0x1001254
push 0x1001248
call fcn.01003856
pop ecx
pop ecx
test eax, eax
je 0x100395c
jmp 0x1003a84
mov dword [0x10063bc], esi
mov eax, dword [0x10066f0]
cmp eax, esi
jne 0x1003980
push 0x1001244
push 0x100123c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10066f0], 2
test ebx, ebx
jne 0x100398c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1006704], 0
je 0x10039b0
push 0x1006704
call fcn.010041bb
pop ecx
test eax, eax
je 0x10039b0
push 0
push 2
push 0
call dword [0x1006704]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1003a0c
test al, al
je 0x10039ca
cmp dword [ebp - 0x1c], 0
jne 0x1003a0c
mov al, byte [esi]
test al, al
je 0x10039da
cmp al, 0x20
ja 0x10039da
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10039ca
test byte [ebp - 0x3c], 1
je 0x10039e6
movzx eax, word [ebp - 0x38]
jmp 0x10039e9
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x10063b8], eax
cmp dword [0x10063ac], 0
jne 0x1003a60
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1003a1b
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1003a2e
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10039b7
cmp dword [0x10063bc], 0
jne 0x1003a6f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10063b8]
jmp 0x1003a90
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01003c71
ret
call fcn.01004305
jmp 0x10038b7

Function at 0x1004130
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1004143
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100413f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1004170
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10041af
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10041a5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10041b1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1004195
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x40721c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407328
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x40729c
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x407293
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040a984
mov eax, dword [ebp - 4]
call fcn.0040a7f8
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4072cc
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040a8ac
jmp 0x4072e8
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040a984
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040a7f8
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407310
cmp edi, 0x104
jbe 0x407304
mov eax, dword [ebp - 4]
call fcn.0040a7f8
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x407310
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40732f
lea eax, [ebp - 4]
call fcn.00409c34
pop eax
jmp eax

Function at 0x407518
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409c34
test esi, esi
jne 0x40754e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409dcc
jmp 0x40756c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040745c
mov edi, eax
test esi, esi
je 0x40756c
cmp dword [ebx], 0
je 0x40756c
dec esi
jmp 0x407555
add esp, 0x20c
pop edi
pop esi
pop ebx
ret