joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040990
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov byte [edi], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100409a1
sub eax, ecx
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x100409e0
push 0xa
pop ecx
mov eax, esi
cdq
idiv ecx
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esi + ecx]
movzx eax, byte [edx + str._8N8Oe]
xor eax, ecx
push eax
push edi
push str._s_02x
push edi
call fcn.10045378
add esp, 0x10
inc esi
cmp esi, ebx
jl 0x100409b2
push edi
call fcn.10046d09
pop ecx
pop edi
pop esi
pop ebx
ret

Function at 0x100409eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100409fb
sub eax, edx
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
jle 0x10040a73
push edi
xor eax, eax
lea edi, [ebp - 7]
stosw word es:[edi], ax
mov al, byte [esi + ebx]
mov byte [ebp - 8], al
inc esi
mov al, byte [esi + ebx]
mov byte [ebp - 7], al
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
inc esi
mov byte [ebp - 6], 0
call fcn.100408e3
mov eax, dword [ebp - 0xc]
push 0xa
cdq
pop ecx
idiv ecx
mov al, byte [ebp - 1]
mov byte [ebp - 7], 0
xor al, byte [edx + str._8N8Oe]
inc dword [ebp - 0xc]
mov byte [ebp - 1], al
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push 0x10062cb4
push dword [ebp + 0xc]
call fcn.10045378
add esp, 0x18
cmp esi, dword [ebp - 0x10]
jl 0x10040a11
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10040ccf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
push 0x10074a38
call fcn.1004828c
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
push 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10040d17
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x10040dd6
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x1c]
test eax, eax
je 0x10040d3f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10040d09
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x101580eb], 0
je 0x10040db9
push str._tc_Env
push dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
call esi
test eax, eax
jne 0x10040d70
push str.TC_INSTALL
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x10040db9
xor bl, bl
mov dword [ebp - 0x28], edi
mov esi, dword [ebp + 0x10]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10040d7d
sub eax, edx
cmp edi, eax
jae 0x10040d9a
movsx eax, byte [edi + esi]
push eax
call fcn.1004861a
pop ecx
add bl, al
inc edi
jmp 0x10040d72
movsx eax, bl
and eax, 0x8000001f
jns 0x10040da9
dec eax
or eax, 0xffffffe0
inc eax
movsx ecx, al
and ecx, 0x1f
mov eax, dword [ebp + 0x14]
rol eax, cl
mov dword [ebp + 0x14], eax
jmp 0x10040dbc
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10040dd6
call fcn.100482d1
ret
Function at 0x10040e29
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10084adc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
mov dword [ebp - 0x14], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x10040e65
push 8
mov esi, str._1._1_GetFileVersionInfoSize_Err
mov edi, dword [ebp - 0x14]
pop ecx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x10040f03
push edi
call fcn.10045413
push edi
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.10045030
add esp, 0x10
push dword [ebp - 0x10]
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x10040e9c
push dword [ebp - 0x10]
call fcn.1004536d
pop ecx
push 7
mov esi, str._1._2_GetFileVersionInfo_Err
jmp 0x10040e59
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
call fcn.10040ddc
pop ecx
pop ecx
test eax, eax
je 0x10040ecb
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dx, word [ebp - 0x40]
mov si, word [ebp - 0x3c]
shr ecx, 0x10
shr eax, 0x10
jmp 0x10040edb
mov si, word [ebp - 6]
mov ax, word [ebp - 8]
mov dx, word [ebp - 0xa]
mov cx, word [ebp - 0xc]
movzx eax, ax
movzx esi, si
push esi
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
push str._d._d._d._d
push dword [ebp - 0x14]
call fcn.10045378
push dword [ebp - 0x10]
call fcn.1004536d
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.1004501f
leave
ret
Function at 0x10041da8
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x31ac
call fcn.10045420
mov eax, dword [0x10084adc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x31a8], edi
cmp dword [0x1015668c], ebx
je 0x10041de8
push esi
push edi
push str.in_Send8Str__s___s_
push ebx
call fcn.100412e2
add esp, 0x10
cmp byte [0x101580b1], bl
jne 0x10041df8
cmp byte [0x102d3d93], bl
je 0x10041dff
push esi
call fcn.10041b6e
pop ecx
lea eax, [ebp - 0x31a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10041e24
push esi
push str.WSAStartup_err___s_
push ebx
call fcn.100412e2
add esp, 0xc
push edi
call fcn.1000773e
mov dword [esp], 0x2dff
lea eax, [ebp - 0x3003]
push ebx
push eax
mov byte [ebp - 0x3004], bl
call fcn.10045030
push esi
lea eax, [ebp - 0x3004]
push 0x100614c0
push eax
call fcn.10045378
add esp, 0x18
push 0x11
push 2
push 2
mov byte [ebp - 0x205], bl
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x31ac], eax
cmp eax, 0xffffffff
jne 0x10041e8a
push esi
push str.socket_err___s_
push ebx
call fcn.100412e2
add esp, 0xc
jmp 0x10041f36
push 0x10
lea eax, [ebp - 0x3014]
push ebx
push eax
call fcn.10007858
add esp, 0xc
push 2
pop eax
push 0x1f99
mov word [ebp - 0x3014], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0x3012], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x3010], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10041ece
push 0x10
lea ecx, [ebp - 0x3014]
push ecx
sub eax, edi
push ebx
inc eax
push eax
push esi
push dword [ebp - 0x31ac]
call dword [0x101b73a0]
cmp eax, 0xffffffff
jne 0x10041f19
lea eax, [ebp - 0x204]
push eax
call fcn.10040833
push esi
lea eax, [ebp - 0x204]
push eax
push str.sendto_err_:__s___s_
push ebx
call fcn.100412e2
add esp, 0x14
jmp 0x10041f36
cmp dword [0x1015668c], ebx
je 0x10041f36
push esi
push dword [ebp - 0x31a8]
push str.in_Send8Str_OK_send__s___s_
push ebx
call fcn.100412e2
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004501f
leave
ret
Function at 0x1004501f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10084adc]
jne 0x10045029
repz ret
jmp fcn.10048b08

Function at 0x10048463
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10048494
call fcn.1004a3bc
mov dword [eax], esi
call fcn.1004a3a9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.1004a341
add esp, 0x14
push 0x16
pop eax
jmp 0x100484e9
test dword [ebp + 0xc], 0xfffffff9
jne 0x10048470
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100484c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004a3cf
pop ecx
call fcn.1004a3a9
mov eax, dword [eax]
jmp 0x100484e9
test al, 0x10
jne 0x100484e7
test al, 1
je 0x100484e7
test byte [ebp + 0xc], 2
je 0x100484e7
call fcn.1004a3bc
mov dword [eax], 5
call fcn.1004a3a9
mov dword [eax], 0xd
jmp 0x100484b8
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1005528f
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.1004982d
and dword [ebp - 4], 0
cmp dword [0x102de8e8], 0
mov ebx, eax
jne 0x10055340
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100553f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10074024
push edi
call esi
test eax, eax
je 0x100553f1
push eax
call fcn.100497bb
mov dword [esp], 0x10074014
push edi
mov dword [0x102de8e8], eax
call esi
push eax
call fcn.100497bb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102de8ec], eax
call esi
push eax
call fcn.100497bb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102de8f0], eax
call esi
push eax
call fcn.100497bb
pop ecx
mov dword [0x102de8f8], eax
test eax, eax
je 0x10055340
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100497bb
pop ecx
mov dword [0x102de8f4], eax
mov eax, dword [0x102de8f4]
cmp eax, ebx
je 0x10055398
cmp dword [0x102de8f8], ebx
je 0x10055398
push eax
call fcn.10049836
push dword [0x102de8f8]
mov esi, eax
call fcn.10049836
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10055398
test edi, edi
je 0x10055398
call esi
test eax, eax
je 0x1005538f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1005538f
test byte [ebp - 0xc], 1
jne 0x10055398
or dword [ebp + 0x10], 0x200000
jmp 0x100553d1
mov eax, dword [0x102de8ec]
cmp eax, ebx
je 0x100553d1
push eax
call fcn.10049836
pop ecx
test eax, eax
je 0x100553d1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100553d1
mov eax, dword [0x102de8f0]
cmp eax, ebx
je 0x100553d1
push eax
call fcn.10049836
pop ecx
test eax, eax
je 0x100553d1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102de8e8]
call fcn.10049836
pop ecx
test eax, eax
je 0x100553f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100553f3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10058c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10084adc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10058c6a
push 0x57
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x10058d1e
push 0x1c
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.10045030
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_VirtualQueryEx
test eax, eax
jne 0x10058c98
xor eax, eax
jmp 0x10058d1e
push 0
push 0x40
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x10058cb5
xor eax, eax
jmp 0x10058d1e
movzx edx, word [ebp - 0x48]
cmp edx, 0x5a4d
jne 0x10058ccf
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
ja 0x10058ccf
cmp dword [ebp - 0xc], 0x40
jae 0x10058cdd
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x10058d1e
push 0
push pe_nt_image_headers32
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x10058d00
xor eax, eax
jmp 0x10058d1e
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
je 0x10058d19
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x10058d1e
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004501f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10059fd0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x10084adc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x234], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x100740b4
call sub.KERNEL32.dll_GetEnvironmentVariableA
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 0xc], 1
jb 0x1005a022
cmp dword [ebp + 0xc], 0x1000
jbe 0x1005a033
push 0x57
call sub.KERNEL32.dll_SetLastError
jmp 0x1005a1fb
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.1005a370
test eax, eax
jne 0x1005a059
jmp 0x1005a1fb
cmp dword [ebp - 0x21c], 0
je 0x1005a06e
cmp dword [ebp - 0x21c], 0x104
jb 0x1005a078
jmp 0x1005a1fb
push 0x100740bc
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.1005a220
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jge 0x1005a0a7
jmp 0x1005a1fb
mov eax, dword [ebp - 0x234]
add eax, 0xc
push eax
push 0x100740d4
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.1005a270
add esp, 0x10
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jge 0x1005a0e3
jmp 0x1005a1fb
push 0x10
push 0
lea edx, [ebp - 0x230]
push edx
call fcn.10045030
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x280]
push eax
call fcn.10045030
add esp, 0xc
mov dword [ebp - 0x280], 0x44
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x280]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x1005a1fb
mov edx, dword [ebp - 0x234]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
push 0x1007406c
mov edx, dword [ebp - 0x230]
push edx
call fcn.10059b70
test eax, eax
jne 0x1005a195
push 0xffffffffffffffff
mov eax, dword [ebp - 0x230]
push eax
call sub.KERNEL32.dll_TerminateProcess
mov ecx, dword [ebp - 0x230]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x22c]
push edx
call sub.KERNEL32.dll_CloseHandle
jmp 0x1005a1fb
mov eax, dword [ebp - 0x22c]
push eax
call sub.KERNEL32.dll_ResumeThread
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x230]
push ecx
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x284], 0x1f4
lea edx, [ebp - 0x284]
push edx
mov eax, dword [ebp - 0x230]
push eax
call sub.KERNEL32.dll_GetExitCodeProcess
mov ecx, dword [ebp - 0x230]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x22c]
push edx
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 0x284], 0
je 0x1005a1f1
jmp 0x1005a1fb
mov dword [ebp - 0x220], 1
lea eax, [ebp - 0x234]
push eax
call fcn.1005a5f0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004501f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1005a640
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x10084adc]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x63c], 0
push 0x104
lea eax, [ebp - 0x418]
push eax
push str.WINDIR
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x41c], eax
cmp dword [ebp + 0xc], 1
jb 0x1005a692
cmp dword [ebp + 0xc], 0x1000
jbe 0x1005a6a3
push 0x57
call sub.KERNEL32.dll_SetLastError
jmp 0x1005a8a5
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x63c]
push ecx
call fcn.1005a370
test eax, eax
jne 0x1005a6c9
jmp 0x1005a8a5
cmp dword [ebp - 0x41c], 0
je 0x1005a6de
cmp dword [ebp - 0x41c], 0x104
jb 0x1005a6e8
jmp 0x1005a8a5
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.1005a8d0
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
jge 0x1005a717
jmp 0x1005a8a5
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x63c]
add ecx, 0xc
push ecx
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x104
jae 0x1005a74a
cmp dword [ebp - 4], 0
jg 0x1005a754
jmp 0x1005a8a5
lea edx, [ebp - 0x628]
push edx
push str.rundll32.exe___s__1
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.1005a930
add esp, 0x10
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
jge 0x1005a78d
jmp 0x1005a8a5
push 0x10
push 0
lea ecx, [ebp - 0x638]
push ecx
call fcn.10045030
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x688]
push edx
call fcn.10045030
add esp, 0xc
mov dword [ebp - 0x688], 0x44
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x688]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [ebp + 0x14]
test eax, eax
je 0x1005a8a5
mov ecx, dword [ebp - 0x63c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x63c]
push eax
push 0x1007406c
mov ecx, dword [ebp - 0x638]
push ecx
call fcn.10059b70
test eax, eax
jne 0x1005a83f
push 0xffffffffffffffff
mov edx, dword [ebp - 0x638]
push edx
call sub.KERNEL32.dll_TerminateProcess
mov eax, dword [ebp - 0x638]
push eax
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x634]
push ecx
call sub.KERNEL32.dll_CloseHandle
jmp 0x1005a8a5
mov edx, dword [ebp - 0x634]
push edx
call sub.KERNEL32.dll_ResumeThread
push 0xffffffffffffffff
mov eax, dword [ebp - 0x638]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x68c], 0x1f4
lea ecx, [ebp - 0x68c]
push ecx
mov edx, dword [ebp - 0x638]
push edx
call sub.KERNEL32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x638]
push eax
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x634]
push ecx
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 0x68c], 0
je 0x1005a89b
jmp 0x1005a8a5
mov dword [ebp - 0x420], 1
lea edx, [ebp - 0x63c]
push edx
call fcn.1005a5f0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004501f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1005acf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1005add0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1005adc5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10085e78]
jb 0x1005ad35
mov eax, dword [ebp - 4]
cmp eax, dword [0x10085e7c]
ja 0x1005ad35
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1005ad05
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10045030
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1005ad5a
jmp 0x1005adc5
cmp dword [ebp - 0x10], 0x10000
jne 0x1005adae
cmp dword [ebp - 0x14], 0x10000
jb 0x1005adae
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1005ad91
mov eax, dword [ebp - 0x24]
jmp 0x1005adc7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1005ada1
xor eax, eax
jmp 0x1005adc7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1005adc0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.1005add0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1005ad05
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005ae00
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.1005aef0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1005aedd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10085e78]
jb 0x1005ae4a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10085e7c]
ja 0x1005ae4a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1005ae1a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10045030
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1005ae6f
jmp 0x1005aedd
cmp dword [ebp - 0x10], 0x10000
jne 0x1005aec3
cmp dword [ebp - 0x14], 0x10000
jb 0x1005aec3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1005aea6
mov eax, dword [ebp - 0x24]
jmp 0x1005aedf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1005aeb6
xor eax, eax
jmp 0x1005aedf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1005aed8
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.1005aef0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1005ae1a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005b1e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x102de918]
mov dword [ebp - 4], eax
jmp 0x1005b1f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1005b220
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1005b21e
call sub.KERNEL32.dll_GetLastError
jmp 0x1005b222
jmp 0x1005b1f0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005b230
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x102de928], eax
je 0x1005b24d
mov eax, 0x10dd
jmp 0x1005b32c
mov eax, dword [0x102de938]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1005b2ca
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1005b2a8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1005b2a8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1005b390
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10044eea
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1005b255
mov dword [0x102de938], 0
call fcn.1005b330
mov ecx, dword [0x102de934]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x1005b316
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10044eea
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x1005b2e2
mov dword [0x102de934], 0
mov dword [0x102de928], 0
xor eax, eax
mov esp, ebp
pop ebp
ret