joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001541f
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor esi, esi
mov ebx, ecx
push esi
push esi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10015578
push edi
lea ecx, [ebx + 4]
push 0xf01ff
push ecx
push eax
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 8
mov ebx, eax
mov dword [ebp - 0x28], esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10015563
cmp dword [ebp - 0x24], 1
je 0x10015539
jmp 0x100154d5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x100154db
cmp dword [ebp - 0x24], 1
je 0x100154f0
call edi
sub eax, dword [ebp - 0x34]
cmp eax, 0x7530
ja 0x100154db
cmp dword [ebp - 0x24], 3
je 0x100154a4
mov edi, esi
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10015535
jmp 0x1001552a
xor edi, edi
inc edi
jmp 0x100154dd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10015539
cmp dword [ebp - 0x24], 1
je 0x10015532
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, 0x7530
ja 0x10015539
cmp dword [ebp - 0x24], 1
jne 0x100154f5
jmp 0x10015539
xor edi, edi
inc edi
test edi, edi
je 0x10015563
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, dword [ebp - 0x30]
push esi
push esi
push dword [ebp - 0x2c]
test eax, eax
je 0x1001555a
push 0x65
push 4
call fcn.1000f9e3
xor esi, esi
inc esi
jmp 0x10015563
push 0x66
push 1
call fcn.1000f9e3
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x10015570
push ebx
call edi
push dword [ebp - 0x3c]
call edi
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001890f
mov esp, ebp
pop ebp
ret
Function at 0x10015588
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x803]
xor ebx, ebx
push 0x7ff
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.10019f50
add esp, 0xc
lea eax, [ebp - 0x808]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceNetwork_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001560f
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceNetwork_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1001560f
xor eax, eax
inc eax
jmp 0x10015710
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.1001b6b8
lea ecx, [ebp - 0x804]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001562f
sub ecx, edx
lea eax, [ebp - 0x804]
push ecx
push eax
xor eax, eax
inc eax
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Destination
push dword [ebp - 0x808]
call ebx
xor esi, esi
lea edx, [edi + 0x80c]
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [edx], eax
mov eax, 0xffff
sbb ecx, ecx
neg ecx
cmp eax, dword [edx]
sbb eax, eax
neg eax
or ecx, eax
je 0x10015683
mov dword [edx], 0x1811
push 4
push edx
push 4
push 0
push str.DestPort
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x1001569c
inc esi
xor ecx, ecx
lea eax, [edi + 0x808]
inc ecx
cmp dword [eax], ecx
jbe 0x100156ab
mov dword [eax], ecx
push 4
push eax
push 4
push 0
push str.Syslog
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x100156c4
inc esi
push 4
lea eax, [edi + 0x800]
push eax
push 4
push 0
push str.SyslogDest
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x100156e3
inc esi
push 4
lea eax, [edi + 0x804]
push eax
push 4
push 0
push str.SyslogDynamicCritic
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x10015702
inc esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001890f
mov esp, ebp
pop ebp
ret
Function at 0x10015774
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x67]
xor ebx, ebx
push 0x63
push ebx
push eax
mov byte [ebp - 0x68], bl
call fcn.10019f50
add esp, 0xc
lea eax, [ebp - 0x6c]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceConfig_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100157e6
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceConfig_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x100157e6
push 2
pop eax
jmp 0x100158ce
push 0xffffffffffffffff
lea eax, [edi + 3]
push eax
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.1001b6b8
lea ecx, [ebp - 0x68]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10015800
sub ecx, edx
lea eax, [ebp - 0x68]
push ecx
push eax
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Clientname
push dword [ebp - 0x6c]
call ebx
xor esi, esi
test eax, eax
push 4
pop ecx
cmovne esi, ecx
lea eax, [edi + 0x468]
xor edx, edx
inc edx
cmp dword [eax], edx
jbe 0x1001583a
mov dword [eax], edx
push ecx
push eax
push ecx
push 0
push str.Audit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x10015850
add esi, 8
xor ecx, ecx
lea eax, [edi + 0x46c]
inc ecx
cmp dword [eax], ecx
jbe 0x1001585f
mov dword [eax], ecx
push 4
push eax
push 4
push 0
push str.FileAudit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x10015877
add esi, 0x10
lea eax, [edi + 0x470]
cmp dword [eax], 1
jbe 0x10015885
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.FileExport
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x1001589d
add esi, 0x10
lea eax, [edi + 0x474]
cmp dword [eax], 1
jbe 0x100158ab
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.CritAudit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x100158c3
add esi, 0x20
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001890f
mov esp, ebp
pop ebp
ret
Function at 0x100159c6
Capabilities:
Resolve function by hash

Disassembly:
push 0x278
mov eax, 0x100497bc
call fcn.1001949d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x280]
push 0x40
xor ebx, ebx
push ebx
push eax
call fcn.10019f50
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x284], 0x44
xorps xmm0, xmm0
mov byte [ebp - 0x218], bl
push ebx
push eax
movdqu xmmword [ebp - 0x240], xmm0
call fcn.10019f50
push 0xfd
lea eax, [ebp - 0x10d]
mov dword [ebp - 0x114], 0x4d485343
push ebx
push eax
mov word [ebp - 0x110], 0x5244
mov byte [ebp - 0x10e], bl
call fcn.10019f50
lea eax, [ebp - 0x230]
push str.024NPHJcdMLqN1GT53Yjdhj2mJGAxh0cd3oJDvLADBmi3sQ4xIOWQqYNnqJ2QMPVm27NNbPcdMG_m2Dcd3oJDvP2DvP2Drr
push eax
call fcn.1000e301
add esp, 0x2c
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 0x10
jb 0x10015a60
mov eax, dword [eax]
lea ecx, [ebp - 0x114]
push ecx
push esi
push eax
lea eax, [ebp - 0x218]
push 0xfa
push eax
call fcn.10013d41
add esp, 0x14
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.10013419
push 0x16b3fe72
push 0x6a4abc5b
call fcn.1000d649
pop ecx
pop ecx
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x284]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x218]
push ecx
push ebx
call eax
neg eax
sbb eax, eax
neg eax
call fcn.1001945b
ret 4
Function at 0x10016386
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x403]
push 0x3ff
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.10019f50
push ebx
push str.FileExport
push str.Config
call fcn.10015721
add esp, 0x18
test eax, eax
je 0x100164e0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x404]
push 0x400
push eax
push str._SystemRoot__system32LogFiles
call edi
lea eax, [ebp - 0x404]
push eax
call fcn.100110d1
pop ecx
cmp eax, 0xffffffff
je 0x1001644c
test eax, eax
jne 0x10016411
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1001644c
push 0x400
lea eax, [ebp - 0x404]
push eax
push str._SystemRoot__system32LogFilesSnare
call edi
lea eax, [ebp - 0x404]
push eax
call fcn.100110d1
pop ecx
cmp eax, 0xffffffff
je 0x1001644c
test eax, eax
jne 0x10016453
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10016453
xor eax, eax
jmp 0x100164df
lea eax, [ebp - 0x834]
push eax
call fcn.1001bd4b
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.1001bad1
push dword [ebp - 0x81c]
mov eax, dword [ebp - 0x818]
mov ebx, 0x400
inc eax
push eax
mov eax, dword [ebp - 0x814]
add eax, 0x76c
push eax
push str._SystemRoot__system32LogFilesSnare_
push str._s_04d_02d_02d.log
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.1001a28e
add esp, 0x2c
lea eax, [ebp - 0x404]
push ebx
push eax
lea eax, [ebp - 0x804]
push eax
call edi
push 0x1004d844
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x82c]
push eax
call fcn.1001a249
mov eax, dword [ebp - 0x82c]
add esp, 0xc
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001890f
mov esp, ebp
pop ebp
ret

Function at 0x1001715a
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x100171c7
mov eax, dword [ebp + 0x10]
sub dword [ebp + 0xc], eax
push esi
push edi
mov edi, dword [ebp + 8]
inc byte [edi + 0x100]
movzx esi, byte [edi + 0x100]
mov al, byte [esi + edi]
add byte [edi + 0x101], al
movzx edx, byte [edi + 0x101]
mov cl, byte [esi + edi]
mov al, byte [edx + edi]
mov byte [esi + edi], al
mov byte [edx + edi], cl
movzx eax, byte [edi + 0x101]
movzx ecx, byte [edi + 0x100]
mov edx, dword [ebp + 0x10]
mov al, byte [eax + edi]
add al, byte [ecx + edi]
mov ecx, dword [ebp + 0xc]
movzx eax, al
mov al, byte [eax + edi]
xor al, byte [ecx + edx]
mov byte [edx], al
inc edx
mov dword [ebp + 0x10], edx
dec ebx
jne 0x10017170
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1001726d
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x100175da
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100175f9
xor eax, eax
jmp 0x1001763a
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10017637
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup_failed:_WSA_ERROR:__d_r_n
push dword [ebp + 0xc]
push esi
call fcn.1001a2ad
add esp, 0x10
cmp dword [0x1006d34c], 9
jl 0x10017637
push esi
call fcn.100024d3
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001890f
mov esp, ebp
pop ebp
ret

Function at 0x100179c8
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push str.HTTP_1.0_404_Not_Found_r_nServer:_SNARE_1.0_r_nMIME_version:_1.0_r_nContent_type:_text_html_r_n_r_n_html__body__center__h2_Page_Not_Found__h2___center___body___html_
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.1001b6b8
lea ecx, [ebp - 0x204]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100179ff
push 0
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001890f
mov esp, ebp
pop ebp
ret

Function at 0x10017db1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
xor esi, esi
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
movzx edi, word [ecx + 6]
add edx, eax
test edi, edi
je 0x10017de6
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [edx + 0xc]
jb 0x10017dde
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x10017dec
add edx, 0x28
inc esi
cmp esi, edi
jb 0x10017dcf
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, edx
jmp 0x10017de8
Function at 0x100344a7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

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

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
nop
mov ecx, 0x44342a3b
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x326116e8
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10011023
Capabilities:
Terminate process

Disassembly:
jmp 0x10014430
jmp fcn.10015570
cmp ecx, dword [0x1001b004]
jne 0x1001443a
repz ret
jmp 0x100110cd

Function at 0x10011d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001b13c]
mov dword [ebp - 4], eax
jmp 0x10011d19
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10011d36
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10011d10
mov esp, ebp
pop ebp
ret

Function at 0x10012540
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10012555
xor eax, eax
jmp 0x100125ca
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x10012582
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x100125c5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x100125c3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x100125bf
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100125c3
xor eax, eax
jmp 0x100125ca
jmp 0x10012579
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100131c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100132c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1001327c
cmp dword [ebp - 4], 0x50000000
jb 0x100131fc
cmp dword [ebp - 4], 0x80000000
ja 0x100131fc
mov dword [ebp - 4], 0x80010000
jmp 0x100131d5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.1001109b
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10013222
jmp 0x1001327c
cmp dword [ebp - 0x10], 0x10000
jne 0x10013265
cmp dword [ebp - 0x14], 0x10000
jb 0x10013265
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10013258
mov eax, dword [ebp - 0x24]
jmp 0x1001327e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10013277
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.100132c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100131d5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10013300
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10013400
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100133c4
cmp dword [ebp - 4], 0x50000000
jb 0x10013341
cmp dword [ebp - 4], 0x80000000
ja 0x10013341
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001331a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.1001109b
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10013367
jmp 0x100133c4
cmp dword [ebp - 0x10], 0x10000
jne 0x100133aa
cmp dword [ebp - 0x14], 0x10000
jb 0x100133aa
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1001339d
mov eax, dword [ebp - 0x24]
jmp 0x100133c6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100133bf
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10013400
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001331a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4027da
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push 0
push 0x400000
call fcn.004015ac
mov dword [0x414040], eax
cmp dword [0x414014], 0
jne 0x403e75
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll_exit]
push esi
mov esi, ecx
call dword [sym.imp.ole32.dll_CoReleaseServerProcess]
test eax, eax
jne 0x401692
mov dword [esi + 4], 1
pop esi
ret
call 0x546000
push 0x14
push 0x402908
call fcn.00402010
and dword [ebp - 0x20], 0
call sub.MSVCR110_CLR0400.dll___crtGetShowWindowMode
movzx ebx, ax
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
xor edi, edi
mov esi, 0x414148
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x403dd8
xor esi, esi
inc esi
cmp dword [0x41414c], esi
je 0x403dea
cmp dword [0x41414c], 0
jne 0x402931
mov dword [0x41414c], esi
push 0x402904
push 0x4028f0
call sub.MSVCR110_CLR0400.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x403df7
cmp dword [0x41414c], esi
jne 0x402879
push 0x4028ec
push 0x4028cc
call sub.MSVCR110_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x41414c], 2
test edi, edi
jne 0x402886
xor eax, eax
mov ecx, 0x414148
xchg dword [ecx], eax
cmp dword [0x414158], 0
jne 0x403e08
mov eax, dword [sym.imp.MSVCR110_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402924
cmp cl, 0x22
je 0x403e2c
movzx eax, cl
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x403e3d
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4028a0
test cl, cl
je 0x40293c
test edi, edi
je 0x40293c
jmp 0x4028a7
mov dword [0x414268], esi
jmp 0x402856
mov al, byte [esi]
test al, al
je 0x401657
cmp al, 0x20
ja 0x401657
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40293c
cmp eax, edx
jne 0x40280b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40281e
push 0x1f
call sub.MSVCR110_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402856
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x403e90
push 0x414158
call fcn.0040f0a8
pop ecx
test eax, eax
je 0x402893
push 0
push 2
push 0
call dword [0x414158]
jmp 0x402893
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
jmp 0x4028b0
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4028c3
cmp dword [0x414268], 0
jne 0x403e89
call dword [sym.imp.MSVCR110_CLR0400.dll__cexit]
mov eax, dword [0x414040]
mov dword [ebp - 4], 0xfffffffe
call fcn.004017d6
ret