joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e320
Capabilities:
Check os version
Compare security identifiers

Disassembly:
sub esp, 0xb4
mov eax, dword [0x4fcb54]
xor eax, esp
mov dword [esp + 0xb0], eax
push edi
lea eax, [esp + 0x20]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x43e36d
mov eax, 1
pop edi
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004a3135
add esp, 0xb4
ret
cmp dword [esp + 0x30], 2
jne 0x43e352
cmp dword [esp + 0x24], 6
jb 0x43e383
mov dword [esp + 0x14], 1
push ebx
lea ecx, [esp + 0xc]
push ecx
push 1
push 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 5
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x43e40c
call ebx
cmp eax, 0x3f0
jne 0x43e3f3
lea edx, [esp + 0xc]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43e40c
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004a3135
add esp, 0xb4
ret
push ebp
push esi
push 0x1000
call fcn.004a4697
mov esi, eax
add esp, 4
cmp esi, edi
je 0x43e522
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x18]
push eax
push 0x1000
push esi
push 2
push ecx
call ebp
mov edi, eax
call ebx
test edi, edi
jne 0x43e478
cmp eax, 0x7a
jne 0x43e478
mov edx, dword [esp + 0x18]
push edx
push esi
call fcn.004a5c6c
add esp, 8
test eax, eax
je 0x43e4b9
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
mov esi, eax
mov eax, dword [esp + 0x20]
push 2
push eax
call ebp
mov edi, eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x43e4b0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x43e4bd
push esi
call fcn.004a475a
add esp, 4
xor eax, eax
jmp 0x43e526
xor edi, edi
cmp dword [esi], edi
mov dword [esp + 0x10], 0
jbe 0x43e4f7
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call ebx
test eax, eax
jne 0x43e4ef
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x43e4d4
jmp 0x43e4f7
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.004a475a
add esp, 4
cmp dword [esp + 0x20], 0
je 0x43e522
cmp dword [esp + 0x10], 0
je 0x43e522
call fcn.0043e540
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc0]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.004a3135
add esp, 0xb4
ret
Function at 0x43ee80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cb138
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x43ef03
mov ebx, dword [eax + 0x30]
mov edx, dword [eax + 0xc]
mov edi, ecx
sar edi, 0x10
mov edi, dword [ebx + edi*4]
mov ebp, ecx
and ebp, 0xffff
shl ebp, 5
mov edi, dword [edi + ebp + 0x10]
mov dword [eax + 0x10], edx
xor edx, edx
test ecx, ecx
setne dl
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x1c], edx
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
call fcn.00484590
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43ef1d
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push str.Failed_to_go_outof_element
push ecx
mov dword [esp + 0x24], 0
call fcn.00404460
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.0043e820
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ef79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x43f840
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esi + 0x460]
mov ecx, fcn.004435a0
test ecx, ecx
push ebp
push edi
mov dword [esi + 0x40c], 0xffffffff
mov dword [esi + 0x104c8], 0
mov dword [esi + 0x104cc], 0
mov dword [esi + 0x104bc], 0x43f0e0
mov dword [esi + 0x104c0], esi
mov byte [esp + 0xb], 1
mov dword [esp + 0x10], eax
je 0x43f8ab
mov edx, dword [esi + 4]
push edx
push 0
push 0
push 0
push eax
push 0
push 0
call fcn.004435a0
test al, al
jne 0x43f8ab
mov al, 1
pop edi
pop ebp
add esp, 0xc
ret
mov dword [esi + 0x4b4], 0xfffffffe
jmp 0x43f8c0
cmp dword [esi + 0x468], 0
mov eax, 0x8000
jne 0x43f8e3
cmp dword [esi + 0x464], 0
jne 0x43f8e3
mov ecx, dword [esi + 0x460]
cmp ecx, eax
jae 0x43f8e3
mov eax, ecx
lea ecx, [esp + 0xc]
push ecx
push eax
lea edi, [esi + 0x84bc]
push edi
lea eax, [esi + 0x104bc]
push eax
lea eax, [esi + 0x46c]
push eax
call fcn.0043fce0
add esp, 0x14
test eax, eax
jne 0x43f9e6
mov ebp, dword [esp + 0xc]
mov edx, dword [esi + 0x420]
mov eax, dword [edx + 0x38]
lea ecx, [esi + 0x420]
push ebp
push edi
call eax
cmp byte [esi + 8], 0
je 0x43f964
test ebp, ebp
mov eax, dword [esi + 0x40c]
mov ecx, ebp
je 0x43f95e
jmp 0x43f940
movzx edx, byte [edi]
xor edx, eax
and edx, 0xff
mov edx, dword [esi + edx*4 + 0xc]
shr eax, 8
sub ecx, 1
add edi, 1
xor eax, edx
test ecx, ecx
jne 0x43f940
mov dword [esi + 0x40c], eax
mov eax, dword [esi + 0x460]
cmp eax, ebp
jae 0x43f975
add dword [esi + 0x464], 0xffffffff
sub eax, ebp
test ebp, ebp
mov dword [esi + 0x460], eax
je 0x43fa0e
mov ecx, fcn.004435a0
test ecx, ecx
je 0x43f9ab
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x10]
push edx
push 0
push 0
push 0
push ecx
sub ecx, eax
push 0
push ecx
call fcn.004435a0
mov byte [esp + 0xb], al
cmp dword [esi + 0x460], 0
je 0x43f9bd
cmp dword [esi + 0x464], 0
je 0x43f9d3
cmp dword [esi + 0x464], 0
jne 0x43f9d3
cmp dword [esi + 0x468], 0
je 0x43f8a3
cmp byte [esp + 0xb], 0
jne 0x43f8c0
mov al, 1
pop edi
pop ebp
add esp, 0xc
ret
mov ecx, fcn.004435a0
test ecx, ecx
je 0x43fa2b
mov edx, dword [esi + 4]
push edx
push eax
push 0x400
push 0
push 0
push 0
push 0
call fcn.004435a0
xor al, al
pop edi
pop ebp
add esp, 0xc
ret
cmp dword [esi + 0x468], 0
jne 0x43f8a3
test eax, eax
jne 0x43fa2b
cmp dword [esi + 0x464], eax
je 0x43f8a3
pop edi
xor al, al
pop ebp
add esp, 0xc
ret
Function at 0x43fa40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esi + 0x460]
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push edi
mov dword [esi + 0x104c8], 0
mov dword [esi + 0x104cc], 0
mov dword [esi + 0x40c], 0xffffffff
mov dword [esi + 0x104bc], 0x43f0e0
mov dword [esi + 0x104c0], esi
mov dword [esp + 0x10], eax
mov byte [esp + 0xb], 1
je 0x43faa9
mov ecx, dword [esi + 4]
push ecx
push 0
push 0
push 0
push eax
push 0
push 0
call ebp
test al, al
jne 0x43faa9
mov al, 1
pop edi
pop ebp
add esp, 0xc
ret 4
mov dword [esi + 0x4b4], 0xfffffffe
jmp 0x43fac0
cmp dword [esi + 0x468], 0
mov eax, 0x8000
jne 0x43fae3
cmp dword [esi + 0x464], 0
jne 0x43fae3
mov ecx, dword [esi + 0x460]
cmp ecx, eax
jae 0x43fae3
mov eax, ecx
lea edx, [esp + 0xc]
push edx
push eax
lea edi, [esi + 0x84bc]
push edi
lea eax, [esi + 0x104bc]
push eax
lea eax, [esi + 0x46c]
push eax
call fcn.0043fce0
add esp, 0x14
test eax, eax
jne 0x43fbe6
mov ebp, dword [esp + 0xc]
mov eax, dword [esi + 0x430]
mov edx, dword [eax + 0x38]
lea ecx, [esi + 0x430]
push ebp
push edi
call edx
cmp byte [esi + 8], 0
je 0x43fb64
test ebp, ebp
mov eax, dword [esi + 0x40c]
mov ecx, ebp
je 0x43fb5e
jmp 0x43fb40
movzx edx, byte [edi]
xor edx, eax
and edx, 0xff
mov edx, dword [esi + edx*4 + 0xc]
shr eax, 8
sub ecx, 1
add edi, 1
xor eax, edx
test ecx, ecx
jne 0x43fb40
mov dword [esi + 0x40c], eax
mov eax, dword [esi + 0x460]
cmp eax, ebp
jae 0x43fb75
add dword [esi + 0x464], 0xffffffff
sub eax, ebp
test ebp, ebp
mov dword [esi + 0x460], eax
je 0x43fc08
cmp dword [esi], 0
je 0x43fbaa
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x43fbaa
mov edx, dword [esi + 4]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push edx
push 0
push eax
call ecx
mov byte [esp + 0xb], al
cmp dword [esi + 0x460], 0
je 0x43fbbc
cmp dword [esi + 0x464], 0
je 0x43fbd2
cmp dword [esi + 0x464], 0
jne 0x43fbd2
cmp dword [esi + 0x468], 0
je 0x43fa9f
cmp byte [esp + 0xb], 0
je 0x43fa9f
mov ebp, dword [esp + 0x18]
jmp 0x43fac0
test ebp, ebp
je 0x43fc25
mov ecx, dword [esi + 4]
push ecx
push eax
push 0x400
push 0
push 0
push 0
push 0
call ebp
xor al, al
pop edi
pop ebp
add esp, 0xc
ret 4
cmp dword [esi + 0x468], 0
jne 0x43fa9f
test eax, eax
jne 0x43fc25
cmp dword [esi + 0x464], eax
je 0x43fa9f
pop edi
xor al, al
pop ebp
add esp, 0xc
ret 4
Function at 0x470b30
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ced60
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
push str.MessageFileRef
lea ecx, [esp + 0x1c]
mov bl, 1
call fcn.00402520
lea esi, [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.0043ec30
or esi, 0xffffffff
mov byte [esp + 0x13], al
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470ba5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x470d2c
push 0x4dfd54
lea ecx, [esp + 0x18]
call fcn.00402520
push 0x4df30c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 1
call fcn.00402520
lea ecx, [esp + 0x14]
push ecx
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 2
call fcn.0043eba0
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470c0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x470c5e
push str.MessageFile_Filename_attribute_not_found_or_empty.
lea ecx, [esp + 0x30]
call fcn.00402520
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x28], 3
call fcn.0043e910
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470c57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor bl, bl
jmp 0x470d0b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, esi
je 0x470cb1
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00470d50
test al, al
jne 0x470d0b
push 0x4dfd54
lea ecx, [esp + 0x30]
call fcn.00402520
mov byte [esp + 0x24], 4
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push str.MessageFile_Filename___s__Error_loading_messages_from_file.
push ecx
call fcn.00404460
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
jmp 0x470ce0
push 0x4dfd54
lea ecx, [esp + 0x30]
call fcn.00402520
mov byte [esp + 0x24], 5
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push str.MessageFile_Filename___s__File_not_found.
push edx
call fcn.00404460
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call fcn.0043e910
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov edx, esi
lea ecx, [eax + 0xc]
xor bl, bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470d0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x470d2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x471560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c7758
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor ebx, ebx
push ebx
mov dword [esp + 0x38], ebx
push 0x4dfd54
mov ecx, ebp
mov byte [esp + 0x3c], 1
mov byte [esp + 0x1a], bl
call fcn.00402430
push 0x4dfd54
lea ecx, [esp + 0x1c]
call fcn.00402520
push 0x4dfd54
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebx
call fcn.00402520
mov byte [esp + 0x2c], 1
mov eax, dword [edi + 0xc]
neg eax
sbb eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4716ba
mov edi, edi
cmp byte [esp + 0x34], 0
je 0x4716b3
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.0049047b
cmp byte [esp + 0x12], 0
jne 0x471643
lea esi, [esp + 0x20]
mov eax, edi
call fcn.00470580
mov eax, dword [eax]
xor ecx, ecx
or ebx, 1
test eax, eax
setne cl
test ecx, ecx
je 0x47176b
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004a30dd
add esp, 8
test eax, eax
sete al
test al, al
mov byte [esp + 0x13], 1
jne 0x471648
mov byte [esp + 0x13], 0
test bl, 1
je 0x471670
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471670
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x47167c
mov byte [esp + 0x12], 1
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
call fcn.00471170
test eax, eax
jne 0x4716a8
mov edx, dword [esp + 0x14]
push edx
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x1c]
push eax
push str.Language__s_uses_a_message_ref__s_that_does_not_correspond_to_a_messages_element.
push ebp
call fcn.00404460
add esp, 0x10
cmp dword [esp + 0x1c], 0
jne 0x4715e0
cmp byte [esp + 0x12], 0
jne 0x471705
lea esi, [esp + 0x20]
mov eax, edi
call fcn.00470580
mov byte [esp + 0x2c], 2
mov ecx, dword [eax]
push ecx
push str.Default_language_ID__s_not_found_in_language_map.
push ebp
call fcn.00404460
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x471700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47172a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471752
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x80004005
call fcn.004021e0
int3
Function at 0x478680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.00472060
add esp, 4
dec eax
mov esi, 1
je 0x4786e7
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
push edi
push ebx
call fcn.00472260
add esp, 8
cmp eax, 3
jne 0x4786fa
test esi, esi
je 0x4786d9
push edi
push ebx
call fcn.004723f0
fstp qword [esp]
mov eax, dword [ebp + 0xc]
push str._.14g
push eax
call fcn.004aa65c
add esp, 0x10
test eax, eax
jg 0x478729
xor esi, esi
mov eax, dword [esp + 0x14]
inc edi
dec eax
mov dword [esp + 0x14], eax
jne 0x4786a7
push 0
push esi
push ebx
call fcn.00477c80
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
call fcn.004794c0
add esp, 0xc
test esi, esi
je 0x4786d9
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
push ecx
push 1
push eax
call fcn.004a72b7
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jne 0x4786d9
mov esi, 1
jmp 0x4786db

Function at 0x479e50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x479e70
mov edx, dword [esp + 8]
push 1
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
add eax, 4
push eax
call fcn.004aba00
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.004a3e60
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x47a140
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx]
mov ebp, ebx
push edi
mov ecx, dword [esi + 0x1c]
sub ebp, ecx
cmp eax, 6
je 0x47a166
push ebx
push esi
call fcn.0047a450
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x47a17c
push esi
call fcn.0047a2c0
add esp, 4
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x47a238
mov edi, dword [eax + 0xc]
mov al, byte [edi + 0x46]
test al, al
je 0x47a1a7
xor ecx, ecx
add ebx, 0x10
mov cl, byte [edi + 0x45]
push ebx
push ecx
push esi
call fcn.0047a310
add esp, 0xc
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 8]
xor eax, eax
sub edx, ecx
mov al, byte [edi + 0x47]
mov ecx, eax
shl ecx, 4
cmp edx, ecx
jg 0x47a1c7
push eax
push esi
call fcn.0047a040
add esp, 8
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
add eax, 0x18
lea ecx, [edx + ebp + 0x10]
mov dword [esi + 0x14], eax
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
xor edx, edx
mov dword [esi + 0xc], ecx
mov dl, byte [edi + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x47a22b
mov edx, 0x10
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov ebx, dword [esi + 8]
add ebx, edx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov ecx, ebx
cmp ecx, edi
jb 0x47a211
mov edx, dword [eax + 4]
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
sub eax, edx
cmp eax, 0x140
jg 0x47a252
push 0x14
push esi
call fcn.0047a040
add esp, 8
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add edi, 0x18
mov eax, edi
lea edx, [ecx + ebp + 0x10]
mov dword [esi + 0x14], edi
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
add ecx, 0x140
mov dword [esi + 0xc], edx
mov dword [eax + 4], ecx
mov ecx, 1
mov dword [eax + 8], ecx
mov al, byte [esi + 0x30]
test cl, al
je 0x47a296
push 0xffffffffffffffff
push 0
push esi
call fcn.0047a070
add esp, 0xc
mov edx, dword [esi + 0xc]
push esi
mov eax, dword [edx - 8]
call dword [eax + 0xc]
add esp, 4
shl eax, 4
mov ecx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret
Function at 0x47ad60
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x1c]
push eax
push esi
call fcn.0047dbd0
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.00473d50
push esi
push edi
call fcn.00473d30
add esp, 0x18
pop edi
pop esi
ret
mov eax, dword [esp + 8]
xor ecx, ecx
mov cl, byte [eax + 4]
add ecx, 0xfffffffc
cmp ecx, 6
ja case.default.0x47ad71
jmp dword [ecx*4 + 0x47ade0]
mov dword [esp + 8], eax
jmp 0x47dc80
mov dword [esp + 8], eax
jmp 0x47dd20
mov edx, dword [esp + 4]
push 0
push 0x20
push eax
push edx
call fcn.0047ede0
add esp, 0x10
ret
mov dword [esp + 8], eax
jmp 0x47e1c0
mov dword [esp + 8], eax
jmp 0x473d00
mov edx, dword [eax + 0xc]
push 0
add edx, 0x11
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0047ede0
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
add ecx, 0x10
push 0
push ecx
push eax
push edx
call fcn.0047ede0
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0xc]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0047ede0
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x10]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0047ede0
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 8]
shl ecx, 4
push 0
push ecx
push edx
push edi
call fcn.0047ede0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x14]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0047ede0
mov eax, dword [esi + 0x38]
add esp, 0x40
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0047ede0
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
shl ecx, 2
push 0
push ecx
push edx
push edi
call fcn.0047ede0
push 0
push 0x48
push esi
push edi
call fcn.0047ede0
add esp, 0x30
pop edi
pop esi
ret
mov ecx, dword [esp + 8]
mov al, byte [ecx + 6]
test al, al
je 0x47dd46
xor eax, eax
push 0
mov al, byte [ecx + 7]
inc eax
shl eax, 4
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0047ede0
add esp, 0x10
ret
xor eax, eax
push 0
mov al, byte [ecx + 7]
lea eax, [eax*4 + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0047ede0
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [esi + 7]
test cl, cl
je 0x47e1ee
mov eax, 1
push 0
shl eax, cl
mov ecx, dword [esi + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
push edi
call fcn.0047ede0
add esp, 0x10
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
shl edx, 4
push 0
push edx
push eax
push edi
call fcn.0047ede0
push 0
push 0x20
push esi
push edi
call fcn.0047ede0
add esp, 0x20
pop edi
pop esi
ret