joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x130
push ebp
mov ebp, dword [ecx + 4]
test ebp, ebp
jne 0x49601d
push 0x530474
lea eax, [esp + 0x10]
push ebp
push eax
mov dword [esp + 0x18], 0x53d188
mov dword [esp + 0x1c], 0xe4
call fcn.0041ce50
add esp, 0xc
xor al, al
pop ebp
add esp, 0x130
ret 0x1c
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
push ebx
push esi
push edi
sub eax, dword [ecx + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x28], eax
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0xc]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x2c], edx
xor edi, edi
lea esp, [esp]
xor edx, edx
div dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + esi*4 + 0xc0], edx
lea edx, [edx + edx*2]
lea edx, [eax + edx*4]
mov eax, dword [edx + 4]
add eax, dword [edx]
add eax, edi
mov edi, dword [edx + 8]
add ebx, eax
mov dword [esp + esi*4 + 0x40], eax
mov eax, dword [esp + 0x24]
inc esi
test eax, eax
jne 0x496060
mov eax, dword [ecx + 0x28]
dec eax
je 0x4960b5
dec eax
jne 0x4960c9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x150]
sar eax, 1
sub edx, eax
mov dword [esp + 0x150], edx
jmp 0x4960c9
mov eax, dword [esp + 0x150]
mov edx, dword [esp + 0x14]
sub eax, edx
mov dword [esp + 0x150], eax
mov ecx, dword [ecx + 0x24]
dec ecx
mov edi, dword [esp + 0x14c]
je 0x4960db
dec ecx
jne 0x4960dd
sar ebx, 1
sub edi, ebx
dec esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
js 0x49616d
mov ebx, dword [esp + 0x15c]
jmp 0x496100
mov eax, dword [esp + esi*4 + 0xc0]
mov ecx, eax
imul ecx, dword [esp + 0x18]
push ebx
push 0
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [esp + 0x15c]
push eax
movzx eax, word [esp + 0x164]
push eax
add edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x4c]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x164]
push edx
mov edx, dword [esp + 0x160]
push eax
push ebp
push ecx
push edi
push 0
push 0
push 0
push edx
call fcn.004b0630
mov ecx, dword [esp + esi*4 + 0x78]
add esp, 0x38
add edi, ecx
dec esi
jns 0x496100
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x130
ret 0x1c
Function at 0x49d4f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x84]
push ebp
push esi
mov esi, dword [ebx + 8]
mov dword [esp + 0x1c], eax
xor eax, eax
push edi
mov edi, dword [esi]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
lea ecx, [ecx]
xor ebp, ebp
cmp edi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], ebp
mov byte [esp + 0x13], 0
je 0x49d613
nop
mov eax, dword [edi + 8]
cmp dword [eax + 0xc], 0xa
je 0x49d5f8
mov ecx, dword [ebx + 0x60]
test ch, 2
movsx edx, word [eax + 0xde]
movsx esi, word [eax + 0xdc]
je 0x49d57c
mov ecx, dword [eax + 0xfc]
mov dword [esp + 0x1c], ecx
movsx ecx, cx
add edx, ecx
mov ecx, dword [esp + 0x1c]
sar ecx, 0x10
lea esi, [esi + ecx*2]
mov ecx, dword [ebx + 0x68]
add ecx, edx
add ecx, ebp
cmp ecx, dword [esp + 0x20]
jle 0x49d591
mov ebp, dword [esp + 0x40]
test ebp, ebp
jne 0x49d60e
mov ebp, ecx
cmp edx, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
jle 0x49d5a1
mov dword [esp + 0x2c], edx
mov word [eax + 0x128], 0
mov word [eax + 0x12a], si
mov eax, dword [eax + 0x124]
test al, 0x10
je 0x49d5cc
mov ecx, dword [esp + 0x3c]
mov edx, eax
xor edx, ecx
and edx, 0x13
xor ecx, edx
mov dword [esp + 0x3c], ecx
test al, 0x20
je 0x49d5df
mov ecx, dword [esp + 0x3c]
xor eax, ecx
and eax, 0x2c
xor ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x40]
mov edi, dword [edi]
mov eax, dword [esp + 0x18]
inc ecx
cmp edi, eax
mov dword [esp + 0x40], ecx
jne 0x49d540
jmp 0x49d613
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x28], edi
mov edi, dword [edi]
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], eax
jmp 0x49d617
mov byte [esp + 0x13], 1
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x18]
cmp edi, esi
jne 0x49d62f
mov al, byte [esp + 0x13]
test al, al
jne 0x49d62f
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49d654
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x24]
push eax
call fcn.0049ca80
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x44], ecx
add dword [eax], edx
jmp 0x49d520
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
Function at 0x4c93a0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52d3da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], esi
mov dword [esi + 0x14], esi
mov dword [esi], 0x53dc88
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], ebx
mov dword [esp + 0x14], ebx
mov byte [esi + 0x20], bl
lea eax, [esi + 0x38]
mov dword [eax], 0x53db08
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], eax
mov dword [eax + 0x14], eax
lea eax, [esi + 0x50]
mov dword [eax], 0x53db08
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], eax
mov dword [eax + 0x14], eax
lea eax, [esi + 0x68]
mov dword [eax], 0x53db08
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], eax
mov dword [eax + 0x14], eax
lea ecx, [esi + 0x8c]
mov byte [esp + 0x14], 4
call fcn.004348b0
push fcn.00417340
push fcn.00417230
push 2
push 0x70
lea eax, [esi + 0x98]
push eax
mov byte [esp + 0x28], 5
call fcn.0051c8c8
lea ecx, [esi + 0x1d0]
mov byte [esp + 0x14], 6
call fcn.0042a620
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], 0xffffffff
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0x1cc], ebx
lea edx, [esi + 0x224]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov ecx, esi
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x180], ebx
call fcn.004c6be0
lea ecx, [esi + 0x240]
xor eax, eax
mov dword [esi + 0x264], ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0xc]
lea eax, [esi + 0x248]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, 0x64
mov dword [esi + 0x250], eax
mov dword [esi + 0x254], eax
or dword [esi + 0x80], 8
mov word [esi + 0x258], bx
mov word [esi + 0x25a], bx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x260], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4c9fc0
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [ecx], 0x53dd74
jmp fcn.004c9530
Function at 0x4d2750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa0
push esi
push edi
lea edi, [esp + 0x14]
mov dword [esp + 0x40], edi
lea edi, [esp + 0x18]
mov dword [esp + 0x48], edi
lea edi, [esp + 0xd]
mov dword [esp + 0x50], edi
lea edi, [esp + 0x1c]
mov dword [esp + 0x58], edi
lea edi, [esp + 0x20]
mov dword [esp + 0x60], edi
lea ecx, [esp + 8]
mov dword [esp + 0x30], ecx
mov ecx, 4
lea edi, [esp + 0xe]
mov dword [esp + 0x68], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x8c], ecx
lea edi, [esp + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], edi
mov dword [esp + 0x90], ecx
lea edx, [esp + 0xc]
lea edi, [esp + 0xf]
lea ecx, [esp + 0x12]
mov dword [esp + 0x38], edx
mov edx, 1
mov dword [esp + 0x80], edi
mov dword [esp + 0x98], ecx
lea edi, [esp + 0x2c]
lea ecx, [esp + 0x11]
xor eax, eax
xor esi, esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x94], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x9c], 2
lea ecx, [esp + 0x3c]
xor edx, edx
lea esp, [esp]
test dword [edx + 0x53ec34], edi
je 0x4d285c
add eax, dword [ecx - 8]
inc esi
test dword [edx + 0x53ec38], edi
je 0x4d2867
add eax, dword [ecx]
inc esi
test dword [edx + 0x53ec3c], edi
je 0x4d2873
add eax, dword [ecx + 8]
inc esi
test dword [edx + 0x53ec40], edi
je 0x4d287f
add eax, dword [ecx + 0x10]
inc esi
test dword [edx + 0x53ec44], edi
je 0x4d288b
add eax, dword [ecx + 0x18]
inc esi
add edx, 0x14
add ecx, 0x28
cmp edx, 0x3c
jb 0x4d2850
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x4d28a3
mov dword [ecx], esi
pop edi
pop esi
add esp, 0xa0
ret
Function at 0x4d3470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
push ebp
mov ebp, dword [esp + 0x98]
push esi
push edi
lea eax, [ebp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xac]
push eax
push ecx
push edx
mov esi, 2
lea eax, [esp + 0x20]
push esi
mov edi, 4
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
call fcn.00434760
add esp, 0x14
test al, al
jne 0x4d34f7
push 0x530474
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x18], 0x53ece8
mov dword [esp + 0x1c], 0x2ab
call fcn.0041ce50
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x90
ret
push ebp
call fcn.004d33f0
add esp, 4
test al, al
jne 0x4d3534
push 0x530474
lea edx, [esp + 0x10]
push 0
push edx
mov dword [esp + 0x18], 0x53ece8
mov dword [esp + 0x1c], 0x2b4
call fcn.0041ce50
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x90
ret
push ebx
xor ebx, ebx
cmp word [ebp], bx
mov dword [esp + 0x10], ebx
jbe 0x4d3669
mov eax, 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], esi
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x28]
add eax, ebx
lea ecx, [eax + 4]
mov dword [esp + 0x30], ecx
lea edx, [eax + 0xc]
mov dword [esp + 0x38], edx
lea ecx, [eax + 0x10]
mov dword [esp + 0x40], ecx
lea edx, [eax + 5]
lea ecx, [eax + 0x14]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ecx
lea edx, [eax + 0x18]
lea ecx, [eax + 6]
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], ecx
lea edx, [eax + 0x1c]
lea ecx, [eax + 0x20]
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], ecx
lea edx, [eax + 7]
lea ecx, [eax + 0x24]
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], ecx
lea edx, [eax + 8]
lea ecx, [eax + 0xa]
mov dword [esp + 0x28], eax
add eax, 9
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x98], eax
lea esi, [esp + 0x28]
xor edi, edi
nop
mov edx, dword [edi + 0x53ec34]
test dword [ebp + 4], edx
je 0x4d3646
mov eax, dword [esp + 0xb0]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
push eax
push ecx
call fcn.004346a0
add esp, 0x14
test al, al
je 0x4d3676
add edi, 4
add esi, 8
cmp edi, 0x3c
jb 0x4d3610
mov eax, dword [esp + 0x10]
movzx edx, word [ebp]
inc eax
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x4d3592
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x90
ret
push 0x530474
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x1c], 0x53ece8
mov dword [esp + 0x20], 0x2ca
call fcn.0041ce50
add esp, 0xc
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x90
ret
Function at 0x4d8ef6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52d968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.004cc390
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 0
mov dword [esi], 0x53f9e8
call fcn.004347f0
xor eax, eax
lea ecx, [esi + 0x1c]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov ecx, dword [esp + 8]
mov dword [esi + 0x44], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4e19e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x4e19f9
mov ecx, dword [esp + 4]
mov edi, edi
xor byte [eax + ecx], 0x56
inc eax
cmp eax, edx
jb 0x4e19f0
mov al, 1
ret
Function at 0x4e64a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
push edi
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
cmp eax, 0xa
jae 0x4e6517
shl eax, 6
add eax, 0x540d80
push eax
lea eax, [esp + 0x14]
push 0x541000
push eax
call fcn.0051de68
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x1c]
push edx
push 0x80000001
mov dword [esp + 0x20], 0
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e6517
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x4e6521
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
inc eax
push eax
push esi
push 1
push 0
push 0x530c80
push edi
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4e8510
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call fcn.0052b360
add esp, 8
test eax, eax
jge 0x4e85a1
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
stosw word es:[edi], ax
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4e8550
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e8561
sub eax, edx
mov cl, byte [esp + eax + 6]
cmp cl, 0x5c
lea eax, [esp + eax + 6]
je 0x4e8583
mov byte [eax], 0
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x4e8577
lea eax, [esp + 8]
push eax
call fcn.004e8510
add esp, 4
test eax, eax
je 0x4e85a1
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ffb10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4ffb1b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x4ffc13
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x5445a8]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5445a8]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5445a8]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5445a8]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5445a8]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5445a8]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5445a8]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5445a8]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x4ffb36
test edi, edi
je 0x4ffc32
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x5445a8]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x4ffc17
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x505ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 8
cmp eax, 3
jne 0x505b2d
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0xc]
jle 0x505b1b
movzx edx, word [ecx + 0x118]
cmp eax, edx
jg 0x505b1b
push eax
mov eax, dword [esp + 0x14]
push eax
push 0x543acc
push ecx
call fcn.00504e20
add esp, 0x10
add esp, 8
ret
push 0x545d18
push ecx
call fcn.004ffa60
add esp, 8
add esp, 8
ret
test eax, eax
push esi
jne 0x505b89
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 8]
mov edx, dword [esp + 0x10]
mov cl, byte [edx + 0x127]
mov esi, 1
shl esi, cl
cmp eax, esi
jl 0x505b62
push 0x545cd8
push edx
call fcn.004ffa60
add esp, 8
pop esi
add esp, 8
ret
mov ecx, eax
mov byte [esp + 5], al
push 2
lea eax, [esp + 8]
push eax
shr ecx, 8
push 0x543acc
push edx
mov byte [esp + 0x14], cl
call fcn.00504e20
add esp, 0x10
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x505c09
mov esi, dword [esp + 0x18]
movzx eax, word [esi + 2]
mov ecx, eax
mov byte [esp + 5], al
movzx eax, word [esi + 4]
push ebx
movzx ebx, word [esi + 6]
mov esi, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0xb], al
mov eax, ebx
mov byte [esp + 0xd], bl
mov bl, byte [esi + 0x127]
shr ecx, 8
shr edx, 8
shr eax, 8
cmp bl, 8
mov byte [esp + 8], cl
mov byte [esp + 0xa], dl
mov byte [esp + 0xc], al
pop ebx
jne 0x505bef
or al, dl
or al, cl
je 0x505bef
push 0x545c98
push esi
call fcn.004ffa60
add esp, 8
pop esi
add esp, 8
ret
push 6
lea ecx, [esp + 8]
push ecx
push 0x543acc
push esi
call fcn.00504e20
add esp, 0x10
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x10]
push 0x545c70
push edx
call fcn.004ffa60
add esp, 8
pop esi
add esp, 8
ret
Function at 0x505c20
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x505c89
mov eax, dword [esp + 0x14]
mov cx, word [eax + 0x118]
test cx, cx
mov edx, dword [esp + 0x18]
jne 0x505c4b
test byte [eax + 0x230], 1
jne 0x505c68
movzx si, byte [edx]
cmp si, cx
jbe 0x505c68
push 0x545dc8
push eax
call fcn.004ffa60
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
lea edx, [esp + 0xc]
push edx
push 0x543a54
push eax
mov byte [esp + 0x18], cl
call fcn.00504e20
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x505d08
mov esi, dword [esp + 0x18]
movzx eax, word [esi + 2]
movzx ebx, word [esi + 6]
mov ecx, eax
mov byte [esp + 9], al
movzx eax, word [esi + 4]
mov esi, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0xb], al
mov eax, ebx
mov byte [esp + 0xd], bl
mov bl, byte [esi + 0x127]
shr ecx, 8
shr edx, 8
shr eax, 8
cmp bl, 8
mov byte [esp + 8], cl
mov byte [esp + 0xa], dl
mov byte [esp + 0xc], al
jne 0x505ced
or al, dl
or al, cl
je 0x505ced
push 0x545d88
push esi
call fcn.004ffa60
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
lea eax, [esp + 0xc]
push eax
push 0x543a54
push esi
call fcn.00504e20
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 8]
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 0x127]
mov esi, 1
shl esi, cl
cmp eax, esi
jl 0x505d39
push 0x545d48
push edx
call fcn.004ffa60
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov ecx, eax
mov byte [esp + 9], al
push 2
lea eax, [esp + 0xc]
push eax
shr ecx, 8
push 0x543a54
push edx
mov byte [esp + 0x18], cl
call fcn.00504e20
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
Function at 0x51cb05
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x51cb22
call fcn.0051f1cf
mov dword [eax], 0x16
xor eax, eax
jmp 0x51cb8c
push esi
push 0x8c
push 1
call fcn.0051ed02
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x51cb77
push esi
call fcn.0051faa4
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x51cb55
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x51ca70
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x51cb8b
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0051d79b
test ebx, ebx
pop ecx
je 0x51cb89
push ebx
call fcn.0051f1e1
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x51db0c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x5473c0
call fcn.00520fbc
push 8
call fcn.00520f8b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x5af990], esi
jne 0x51db40
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x5af98c], esi
mov al, byte [ebp + 0x10]
mov byte [0x5af988], al
cmp dword [ebp + 0xc], edi
jne 0x51db8a
cmp dword [0x5b11f0], edi
je 0x51db7a
mov eax, dword [0x5b11ec]
sub eax, 4
mov dword [0x5b11ec], eax
cmp eax, dword [0x5b11f0]
jb 0x51db7a
mov eax, dword [eax]
cmp eax, edi
je 0x51db5b
call eax
jmp 0x51db5b
push 0x554170
mov eax, 0x554168
call fcn.0051da8a
pop ecx
push 0x55417c
mov eax, 0x554174
call fcn.0051da8a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x51dbbb
cmp dword [ebp + 0x10], edi
jne 0x51dbc9
mov dword [0x5af990], esi
push dword [ebp + 8]
call fcn.0051da48
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x51dbc8
push 8
call fcn.00520ed6
pop ecx
ret
call fcn.00520ff7
ret