joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402340
Capabilities:
Get session user name

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x1dc], eax
push 0x94
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00406b00
mov ecx, dword [str.___x9:7__9_3x59_]
mov edx, dword [ecx + 0x19c]
add esp, 0xc
mov dword [esp + 0x14], edx
call fcn.00401000
mov dword [esp + 0x10], eax
call fcn.00402ab0
movzx eax, al
push 0
mov dword [esp + 0x1c], eax
call fcn.00404542
add esp, 4
add eax, 0x7080
lea ecx, [esp + 8]
adc edx, 0
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.004039eb
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov eax, dword [eax]
add esp, 4
mov dword [esp + 0x30], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4023f7
mov eax, 1
jmp 0x402423
call fcn.00401000
cmp eax, 4
jge 0x402408
mov eax, 3
jmp 0x402423
call fcn.004031d0
cmp eax, 1
jne 0x402419
mov eax, 2
jmp 0x402423
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
push 0x12b
lea ecx, [esp + 0xad]
push 0
push ecx
mov dword [esp + 0x40], eax
mov byte [esp + 0xb4], 0
call fcn.00406b00
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0xc], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x402477
push 0x64
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00406b00
add esp, 0xc
jmp 0x402493
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x3c]
mov byte [esp + 0xd4], 0
call fcn.00401780
add esp, 4
mov eax, dword [0x413190]
mov ecx, dword [0x413194]
mov edx, dword [0x413198]
push 0
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x14]
mov dword [esp + 0xa4], ecx
push 0x98
push eax
mov ecx, 0x414774
mov dword [esp + 0xb0], edx
call fcn.004018e0
mov ecx, dword [esp + 0x1e8]
add esp, 0xc
xor ecx, esp
call fcn.004033e4
add esp, 0x1e4
ret
Function at 0x402ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call fcn.00406b00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x148]
mov byte [esp + 0x14b], bl
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402b10
mov edx, dword [str.Program_Files__x86_]
mov ecx, dword [0x4105c0]
mov dword [eax], edx
mov edx, dword [0x4105c4]
mov dword [eax + 4], ecx
mov ecx, dword [0x4105c8]
mov dword [eax + 8], edx
mov edx, dword [0x4105cc]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x402b65
test byte [esp + 8], 0x10
je 0x402b65
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x254]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004033e4
mov esp, ebp
pop ebp
ret
Function at 0x402e70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push 0x41046c
push ebp
call fcn.00403c7d
add esp, 8
test eax, eax
je 0x402e94
push eax
call fcn.004044c6
add esp, 4
xor al, al
pop ebp
ret
mov eax, dword [esp + 8]
push esi
push 0x410480
push eax
call fcn.00403c7d
mov esi, eax
add esp, 8
test esi, esi
jne 0x402eb2
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.004043ca
push esi
call fcn.004042d2
push 0
push 0
push esi
mov edi, eax
call fcn.004043ca
push edi
call fcn.00403aef
push esi
push 1
mov ebx, eax
push edi
push ebx
call fcn.00403f34
push esi
call fcn.004044c6
add esp, 0x34
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x41060c
push ebp
mov dword [ebx + edi - 8], eax
call fcn.00403c7d
mov esi, eax
push esi
push 1
push edi
push ebx
call fcn.004040b3
push esi
call fcn.004044c6
add esp, 0x1c
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret
Function at 0x4031d0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, esi
je 0x4032f3
or edi, 0xffffffff
cmp ebx, edi
je 0x4032f3
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40325c
mov dword [esp + 0x10], edi
jmp 0x4032fb
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x403285
mov dword [esp + 0x10], edi
jmp 0x4032fb
push 0x400
call fcn.00403aef
push 0x400
mov edi, eax
push esi
push edi
call fcn.00406b00
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push 0x400
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebp, dword [edi]
cmp ebp, esi
jle 0x4032ff
lea ebx, [edi + 4]
mov edx, dword [ebx]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4032e3
inc esi
add ebx, 8
cmp esi, ebp
jl 0x4032c1
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x4032ff
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
xor esi, esi
jmp 0x4032ff
mov dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x40330c
push edi
call fcn.00403a12
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40331b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x40332d
cmp ebx, 0xffffffff
je 0x40332d
push ebx
call edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40333d
cmp eax, 0xffffffff
je 0x40333d
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004033e4
add esp, 0x20
ret
Function at 0x403360
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub esp, 0x114
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x110], eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x413a20]
push 0
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [0x413a20]
push ecx
lea edx, [esp + 4]
push str._c_ping_127.0.0.1__del__q___s_
push edx
call fcn.004033f3
add esp, 0xc
push 0
push 0
lea eax, [esp + 8]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4033e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412008]
jne 0x4033ee
repz ret
jmp fcn.00404744

Function at 0x40aff5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058cd
and dword [ebp - 4], 0
cmp dword [0x414374], 0
mov ebx, eax
jne 0x40b0a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b157
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b157
push eax
call fcn.0040585b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414374], eax
call esi
push eax
call fcn.0040585b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414378], eax
call esi
push eax
call fcn.0040585b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41437c], eax
call esi
push eax
call fcn.0040585b
pop ecx
mov dword [0x414384], eax
test eax, eax
je 0x40b0a6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040585b
pop ecx
mov dword [0x414380], eax
mov eax, dword [0x414380]
cmp eax, ebx
je 0x40b0fe
cmp dword [0x414384], ebx
je 0x40b0fe
push eax
call fcn.004058d6
push dword [0x414384]
mov esi, eax
call fcn.004058d6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b0fe
test edi, edi
je 0x40b0fe
call esi
test eax, eax
je 0x40b0f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b0f5
test byte [ebp - 0xc], 1
jne 0x40b0fe
or dword [ebp + 0x10], 0x200000
jmp 0x40b137
mov eax, dword [0x414378]
cmp eax, ebx
je 0x40b137
push eax
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b137
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b137
mov eax, dword [0x41437c]
cmp eax, ebx
je 0x40b137
push eax
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b137
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414374]
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b157
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b159
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001100
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
mov al, 0x43
push esi
mov esi, ecx
mov byte [esp + 0xc], al
mov byte [esp + 0xe], al
mov eax, dword [esi + 0x10]
test eax, eax
mov byte [esp + 8], 0x4d
mov byte [esp + 9], 0x41
mov byte [esp + 0xa], 0x47
mov byte [esp + 0xb], 0x49
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xf], 0x4f
mov dword [esp + 4], 0
jne 0x10001146
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
push ebx
mov ebx, dword [esp + 0x1c]
lea ecx, [ebx - 4]
test ecx, ecx
push edi
mov edi, dword [esp + 0x1c]
jle 0x10001175
push 1
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
lea edx, [esi + 0x14]
push edx
lea eax, [edi + 4]
push ecx
push eax
push eax
call fcn.10001950
add esp, 0x1c
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xb0]
push eax
push ebx
push edi
push ecx
call sub.WS2_32.dll_send
pop edi
pop ebx
pop esi
add esp, 0xc
ret 0xc

Function at 0x10001390
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, esi
mov ebx, eax
call fcn.10001090
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov ecx, dword [esi + 0xb4]
mov dword [esi + 0xb0], eax
jne 0x100013d3
mov edx, dword [ecx]
push 0xe
call dword [edx + 0x4c]
pop esi
mov eax, 0x80004005
pop ebx
ret
push edi
lea edi, [esi + 0xa0]
mov word [edi], 2
mov eax, dword [ecx]
call dword [eax + 0x54]
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 0xb4]
mov word [esi + 0xa2], ax
mov edx, dword [ecx]
call dword [edx + 0x50]
push eax
call sub.WS2_32.dll_inet_addr
push 0x10
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0xb0]
push edi
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
pop edi
jne 0x1000143e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x10001457
mov ecx, dword [esi + 0xb4]
mov edx, dword [ecx]
push 5
call dword [edx + 0x4c]
pop esi
mov eax, 0x80004005
pop ebx
ret
mov eax, dword [esi + 0xb0]
push 0x23
push 0x464
push ebx
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
je 0x10001429
mov ecx, dword [esi + 0xb4]
mov eax, dword [ecx]
push 6
call dword [eax + 0x4c]
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10001470
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x400
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 4]
mov edx, ecx
push esi
push edi
mov edi, dword [ebx + 0xc]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 4], 0
jmp 0x100014a0
mov ecx, dword [ebx + 0xb0]
push 0
push 0x400
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x100014f8
test eax, eax
jle 0x1000151b
mov edx, dword [ebx + 4]
mov edi, dword [ebx + 0xc]
add edi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
add edx, eax
mov eax, edx
cmp eax, ecx
mov dword [ebx + 4], edx
jbe 0x100014a0
pop edi
pop esi
pop ebx
add esp, 0x400
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x1000151b
mov ecx, dword [ebx + 0xb4]
mov eax, dword [ecx]
push 0x11
call dword [eax + 0x4c]
pop edi
pop esi
pop ebx
add esp, 0x400
ret
mov eax, dword [ebx + 0xc]
movzx ecx, word [eax]
mov edx, dword [ebx + 4]
cmp edx, ecx
jb 0x1000156b
cmp edx, 4
jb 0x1000156b
cmp word [eax + 2], 0x200a
je 0x10001560
push ecx
push eax
mov ecx, ebx
call fcn.100011a0
test eax, eax
jne 0x1000156b
mov ecx, dword [ebx + 4]
mov edi, dword [ebx + 0xc]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
add esp, 0x400
ret
add eax, 4
push eax
mov ecx, ebx
call fcn.100010c0
pop edi
pop esi
pop ebx
add esp, 0x400
ret
Function at 0x10001750
Capabilities:
Encrypt data using rc6

Disassembly:
mov eax, 0x108
call fcn.100024c0
mov ecx, dword [esp + 0x118]
cmp ecx, 0x10
je 0x10001782
cmp ecx, 0xc
je 0x10001782
cmp ecx, 8
je 0x10001782
mov dword [esp + 0x118], 0x10
mov ecx, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x114]
push esi
lea eax, [ebx - 8]
xor esi, esi
xor edx, edx
test eax, eax
push edi
mov dword [ebp], ecx
jl 0x10001815
lea edi, [eax + 8]
shr edi, 3
lea eax, [edi*8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x124]
xor ecx, ecx
xor edx, edx
mov cl, byte [eax]
mov dh, byte [eax + 1]
inc eax
or ecx, edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x18
or ecx, edx
inc eax
mov dword [esp + esi*4 + 0x18], ecx
xor ecx, ecx
mov cl, byte [eax]
inc esi
inc eax
xor edx, edx
mov dh, byte [eax]
or ecx, edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x18
or ecx, edx
inc eax
mov dword [esp + esi*4 + 0x18], ecx
inc esi
dec edi
jne 0x100017ba
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x128]
jmp 0x1000181c
mov eax, dword [esp + 0x124]
mov edi, ebx
sub edi, edx
je 0x1000188b
mov ecx, ebx
xor edi, edi
and ecx, 7
xor edx, edx
add eax, ecx
dec ecx
cmp ecx, 7
ja case.default.0x10001833
jmp dword [ecx*4 + 0x10001924]
dec eax
xor ecx, ecx
mov cl, byte [eax]
mov edi, ecx
shl edi, 0x18
dec eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or edi, edx
dec eax
xor ecx, ecx
mov ch, byte [eax]
or edi, ecx
dec eax
xor edx, edx
mov dl, byte [eax]
or edi, edx
dec eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x18
dec eax
xor ecx, ecx
mov cl, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
xor ecx, ecx
mov ch, byte [eax]
or edx, ecx
xor ecx, ecx
mov cl, byte [eax - 1]
or edx, ecx
mov ecx, dword [esp + 0x128]
mov dword [esp + esi*4 + 0x18], edx
mov dword [esp + esi*4 + 0x1c], edi
lea eax, [ebx + 3]
mov dword [ebp + 4], 0xb7e15163
cdq
and edx, 3
add edx, eax
lea eax, [ecx + ecx + 2]
mov ecx, 1
sar edx, 2
cmp eax, ecx
mov dword [esp + 0x14], edx
jle 0x100018c2
mov esi, dword [ebp + ecx*4]
sub esi, 0x61c88647
mov dword [ebp + ecx*4 + 4], esi
inc ecx
cmp ecx, eax
jl 0x100018af
cmp eax, edx
jle 0x100018c8
mov edx, eax
lea ecx, [edx + edx*2]
xor ebx, ebx
xor esi, esi
xor edx, edx
xor edi, edi
test ecx, ecx
jle 0x10001919
mov dword [esp + 0x10], ecx
lea ecx, [edx + edi]
mov edi, dword [ebp + esi*4 + 4]
add ecx, edi
rol ecx, 3
mov edi, ecx
mov dword [ebp + esi*4 + 4], ecx
lea ecx, [edx + edi]
add edx, edi
add edx, dword [esp + ebx*4 + 0x18]
inc esi
rol edx, cl
cmp esi, eax
mov dword [esp + ebx*4 + 0x18], edx
jl 0x10001903
xor esi, esi
mov ecx, dword [esp + 0x14]
inc ebx
cmp ebx, ecx
jl 0x1000190e
xor ebx, ebx
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x100018db
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x1000226d
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000235a
mov eax, 0x94
call fcn.100024c0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100023cf
mov ecx, dword [esi + 0x10]
mov dword [0x10009c34], ecx
mov eax, dword [esi + 4]
mov dword [0x10009c40], eax
mov edx, dword [esi + 8]
mov dword [0x10009c44], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10009c38], esi
je 0x100022d8
or esi, 0x8000
mov dword [0x10009c38], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10009c3c], eax
call fcn.10002517
test eax, eax
pop ecx
je 0x100023cf
call fcn.100038a1
test eax, eax
jne 0x10002305
call fcn.10002568
jmp 0x100023cf
call fcn.1000400c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000a298], eax
call fcn.10003eea
mov dword [0x10009ac4], eax
call fcn.100039cb
test eax, eax
jl 0x10002353
call fcn.10003e48
test eax, eax
jl 0x1000234e
call fcn.10003c15
test eax, eax
jl 0x1000234e
call fcn.100034c6
test eax, eax
jne 0x1000234e
inc dword [0x10009ac0]
jmp 0x100023e0
call fcn.10003bc9
call fcn.10003694
jmp 0x100022fb
test eax, eax
jne 0x1000238a
cmp dword [0x10009ac0], eax
jle 0x100023cf
dec dword [0x10009ac0]
cmp dword [0x10009c70], eax
jne 0x10002379
call fcn.1000360f
call fcn.10003bc9
call fcn.10003694
call fcn.10002568
jmp 0x100023e0
cmp eax, 2
jne 0x100023d3
push 0x88
push 1
call fcn.10003910
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100023cf
push esi
push dword [0x10009168]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x100023c9
call fcn.100036b2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100023e0
call fcn.10002051
pop ecx
xor eax, eax
jmp 0x100023e3
cmp eax, 3
jne 0x100023e0
push 0
call fcn.10003736
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1000352b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10002719
xor esi, esi
inc esi
cmp dword [0x10009c74], esi
pop ecx
jne 0x10003553
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x10009c70], esi
mov byte [0x10009c6c], al
jne 0x100035b9
mov ecx, dword [0x1000a268]
test ecx, ecx
je 0x1000359a
mov eax, dword [0x1000a264]
sub eax, 4
cmp eax, ecx
jmp 0x10003593
mov eax, dword [eax]
test eax, eax
je 0x10003585
call eax
mov eax, dword [0x1000a264]
sub eax, 4
cmp eax, dword [0x1000a268]
mov dword [0x1000a264], eax
jae 0x1000357d
mov eax, 0x10009020
mov esi, 0x10009024
cmp eax, esi
mov edi, eax
jae 0x100035b9
mov eax, dword [edi]
test eax, eax
je 0x100035b2
call eax
add edi, 4
cmp edi, esi
jb 0x100035aa
mov eax, 0x10009028
mov esi, 0x1000902c
cmp eax, esi
mov edi, eax
jae 0x100035d8
mov eax, dword [edi]
test eax, eax
je 0x100035d1
call eax
add edi, 4
cmp edi, esi
jb 0x100035c9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x100035e9
push 8
call fcn.10002685
jmp 0x100035fb
push dword [ebp + 8]
mov dword [0x10009c74], 1
call fcn.10003484
pop ecx
pop ebp
ret
Function at 0x10004094
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100096b0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10009190]
je 0x100040c1
inc eax
cmp eax, 0x12
jb 0x100040b2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10009190]
jne 0x100041f5
mov eax, dword [0x10009acc]
cmp eax, 1
je 0x100041d0
cmp eax, edx
jne 0x100040f1
cmp dword [0x10009ad0], 1
je 0x100041d0
cmp ecx, 0xfc
je 0x100041f5
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000412a
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10005170
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10005270
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000416c
lea eax, [ebp - 0x10c]
push eax
call fcn.10005270
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10007548
push edi
call fcn.10005400
add esp, 0x10
push edi
call fcn.10005270
push dword [esi + 0x10009194]
mov ebx, eax
call fcn.10005270
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100024c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10005170
push edi
push ebx
call fcn.10005180
push 0x10007528
push ebx
call fcn.10005180
push dword [esi + 0x10009194]
push ebx
call fcn.10005180
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100052fb
add esp, 0x2c
jmp 0x100041f5
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10009194]
push dword [esi]
call fcn.10005270
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10005555
pop edi
pop esi
pop ebx
leave
ret