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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x64
test eax, eax
push esi
mov esi, ecx
jne 0x4601bb
push 0x530474
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0x10], 0x53a6cc
mov dword [esp + 0x14], 0x6c7
call fcn.0041ce50
add esp, 0xc
xor al, al
pop esi
add esp, 0x64
ret 4
push ebx
mov ebx, dword [esi + 0xa2c]
xor ecx, ecx
mov dword [esp + 0x14], ecx
push ebp
push edi
mov edi, dword [esi + 0xa28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
push 0xd
mov ecx, 0x5aeb0c
mov dword [esp + 0x1c], 0
add edi, 0x320
call fcn.00435120
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov edx, dword [eax + 0x40]
add edx, edi
mov dword [esp + 0x20], edx
mov eax, dword [eax + 0x44]
add eax, ebx
mov dword [esp + 0x24], eax
test byte [esi + 4], 1
je 0x4602a9
push 0xa
mov ecx, 0x5aeb0c
call fcn.00435120
mov edx, dword [esi + 0xa30]
mov ecx, dword [eax + 0x44]
mov ebp, dword [eax + 0x40]
mov ebx, 4
add edx, ebx
cmp edx, ebx
mov dword [esp + 0x10], ecx
jbe 0x4602a9
lea ecx, [ecx]
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 8]
mov dword [esp + 0x3c], ebx
call fcn.00462920
test al, al
je 0x460354
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
add eax, ebp
mov dword [esp + 0x2c], ecx
add ecx, edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, ecx
push edx
call fcn.004a6170
mov eax, dword [esi + 0xa30]
add esp, 0xc
inc ebx
add eax, 4
cmp ebx, eax
jb 0x460240
add esi, 8
mov dword [esp + 0x10], esi
mov ebp, 1
mov esi, 0x53a5dc
mov ebx, 0x18
nop
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], ebp
call fcn.00462920
test al, al
je 0x460384
mov eax, dword [esp + 0x64]
mov edx, dword [esi - 4]
mov ecx, dword [esp + 0x68]
add edx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esi]
add eax, ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], edx
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x38], eax
push edx
mov eax, edx
push eax
call fcn.004a6170
add esp, 0xc
add ebx, 0x18
inc ebp
add esi, 0x18
cmp ebx, 0x60
jb 0x4602c0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
pop edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
pop ebp
mov dword [eax + 8], edx
pop ebx
mov dword [eax + 0xc], ecx
mov al, 1
pop esi
add esp, 0x64
ret 4
mov dword [esp + 0x14], 0x6f1
push 0x530474
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], 0x53a6cc
call fcn.0041ce50
add esp, 0xc
pop edi
pop ebp
pop ebx
xor al, al
pop esi
add esp, 0x64
ret 4
mov dword [esp + 0x14], 0x70b
jmp 0x46035c
Function at 0x465c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x18]
cmp eax, 7
jb 0x465c8a
mov eax, 6
add eax, 0xfffffffd
mov dword [esp + 0x18], eax
jmp fcn.00465980
cmp eax, 4
jae 0x465c7e
mov dword [esp + 0x18], eax
jmp fcn.00465650

Function at 0x46f7c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 8
test eax, eax
jle 0x46f846
push ebx
mov ebx, dword [sym.imp.kernel32.dll_DebugBreak]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov ebp, dword [edi]
mov ecx, dword [esp + 0x20]
lea eax, [ebp + 4]
cmp eax, ecx
mov dword [esi], ebp
jbe 0x46f816
push 0x530474
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], 0x53ac9c
mov dword [esp + 0x20], 0x3c
call fcn.0041ce50
add esp, 0xc
call ebx
mov al, byte [esp + 0x2c]
test al, al
je 0x46f825
inc dword [esi]
mov byte [esi + ebp + 4], 0
add esi, 4
add edi, 4
test ebp, ebp
jbe 0x46f83c
nop
mov dl, byte [edi]
xor dl, 0x53
mov byte [esi], dl
inc esi
inc edi
dec ebp
jne 0x46f830
dec dword [esp + 0x28]
jne 0x46f7e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4763d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52ca25
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], 0x53aef4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov byte [esi + 0x1c], bl
lea eax, [esi + 0x38]
mov dword [eax], 0x53aebc
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], 0x53aebc
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 + 0x90]
mov byte [esp + 0x14], 3
call fcn.00418110
mov dword [esi + 0x49c], 0xf
mov dword [esi + 0x498], ebx
mov byte [esi + 0x488], bl
mov ecx, esi
mov byte [esp + 0x14], 5
mov dword [esi + 0x480], ebx
mov dword [esi + 0x47c], 0x4753b0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x478], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
call fcn.00475740
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4764c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52ca25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x53aef4
mov dword [esp + 0x14], 5
call fcn.004755d0
mov ecx, esi
call fcn.00475a50
cmp dword [esi + 0x49c], 0x10
jb 0x476510
mov eax, dword [esi + 0x488]
push eax
call fcn.0051c16d
add esp, 4
xor ebx, ebx
mov dword [esi + 0x49c], 0xf
mov dword [esi + 0x498], ebx
lea ecx, [esi + 0x90]
mov byte [esi + 0x488], bl
mov byte [esp + 0x14], 3
call fcn.00418160
lea ecx, [esi + 0x50]
mov dword [ecx], 0x53aebc
call fcn.004c6ca0
lea ecx, [esi + 0x38]
mov dword [ecx], 0x53aebc
call fcn.004c6ca0
cmp dword [esi + 0x30], 0x10
jb 0x476566
mov eax, dword [esi + 0x1c]
push eax
call fcn.0051c16d
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov ecx, esi
mov dword [esi], 0x53ae04
call fcn.004c6ca0
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x479c90
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x18c
push ebx
xor ebx, ebx
push 0x5681b8
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
mov dword [esp + 8], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x5681b8
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
mov dword [esp + 0x1c], ebx
mov dword [esp + 4], ebx
xor eax, eax
jmp 0x479cf0
mov cl, byte [eax + 0x5681b8]
mov byte [esp + eax + 0x8c], cl
inc eax
cmp cl, bl
jne 0x479cf0
push 0x64
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0xaf], bl
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
jne 0x479d4d
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [0x531948]
mov edx, dword [0x53194c]
mov dword [esp + 4], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
push ebx
push 4
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00419bb0
add esp, 0x10
test al, al
jne 0x479d6c
xor al, al
pop ebx
add esp, 0x18c
ret
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.0041c660
add esp, 0x10
test al, al
je 0x479d62
push ebx
push 4
lea edx, [esp + 0xc]
push edx
push esi
call fcn.00419bb0
add esp, 0x10
test al, al
je 0x479d62
push ebx
push 8
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00419bb0
add esp, 0x10
test al, al
je 0x479d62
push ebx
push 8
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.00419bb0
add esp, 0x10
test al, al
je 0x479d62
push ebx
push 8
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00419bb0
add esp, 0x10
test al, al
setne al
pop ebx
add esp, 0x18c
ret

Function at 0x479ec0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x50
push esi
xor esi, esi
push 0x53b450
push 0x53b444
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, esi
je 0x479f22
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x40
call eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
jmp 0x479f4d
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x20
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
push esi
push 8
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00419bb0
add esp, 0x10
test al, al
jne 0x479f67
pop esi
add esp, 0x50
ret
push esi
push 8
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00419bb0
add esp, 0x10
test al, al
setne al
pop esi
add esp, 0x50
ret
Function at 0x47ec40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 0x18]
cmp edx, 0x10
push edi
lea ecx, [ebp + 4]
jb 0x47ec58
mov edi, dword [ecx]
jmp 0x47ec5a
mov edi, ecx
mov eax, dword [ebp + 0x14]
add eax, edi
cmp edx, 0x10
jb 0x47ec66
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.0040dad0
cmp dword [esi], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
je 0x47ecd3
mov edi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x47ecdb
mov ecx, dword [esi]
mov eax, dword [esp + 8]
dec ecx
test eax, eax
mov dword [esi], ecx
je 0x47ecd3
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x47ecf4
movsx ecx, byte [esp + 0x1c]
push ecx
call fcn.0051bd57
add esp, 4
test eax, eax
je 0x47ed20
cmp dword [esi], 0
jne 0x47ec83
pop edi
mov al, 1
pop ebp
add esp, 0xc
ret
push 0x530474
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 0xa7
push edx
jmp 0x47edd4
push 0x530474
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x18], 0x53bbfc
mov dword [esp + 0x1c], 0xb7
call fcn.0041ce50
add esp, 0xc
pop edi
xor al, al
pop ebp
add esp, 0xc
ret
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
inc dword [esi]
je 0x47ecd3
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x47edaa
mov ecx, dword [esi]
mov eax, dword [esp + 8]
dec ecx
test eax, eax
mov dword [esi], ecx
je 0x47ecd3
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x47edc0
movsx ecx, byte [esp + 0x1c]
push ecx
call fcn.0051bd57
add esp, 4
test eax, eax
jne 0x47ecd3
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47ed87
sub eax, edx
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.0040de80
cmp dword [esi], 0
jne 0x47ed31
pop edi
mov al, 1
pop ebp
add esp, 0xc
ret
push 0x530474
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0xd2
push eax
jmp 0x47edd4
push 0x530474
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0xe2
push ecx
mov dword [esp + 0x18], 0x53bbfc
call fcn.0041ce50
add esp, 0xc
pop edi
xor al, al
pop ebp
add esp, 0xc
ret
Function at 0x47edf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x52cdf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [esp + 0x50]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
lea ecx, [eax + 4]
lea edx, [eax + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea ecx, [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [esp + 0x14], eax
add eax, 0x14
mov dword [esp + 0x50], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
xor edi, edi
mov ebp, 0x10
lea esp, [esp]
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0047ec40
add esp, 8
test al, al
je 0x47ef66
mov eax, dword [esp + 0x40]
test eax, eax
je 0x47efb7
cmp eax, 2
jb 0x47eef7
mov edx, dword [esp + 0x44]
cmp edx, ebp
mov eax, dword [esp + 0x30]
mov ecx, eax
jae 0x47ee9d
lea ecx, [esp + 0x30]
cmp byte [ecx], 0x30
jne 0x47eeff
cmp edx, ebp
jae 0x47eeaa
lea eax, [esp + 0x30]
movsx edx, byte [eax + 1]
push edx
call fcn.0051dcd7
add esp, 4
cmp eax, 0x78
jne 0x47eef7
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x47eeca
lea eax, [esp + 0x30]
add eax, 2
push eax
call fcn.00431df0
add esp, 4
test al, al
je 0x47efc1
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x47eeec
lea eax, [esp + 0x30]
add eax, 2
push eax
call fcn.00431ea0
jmp 0x47ef2c
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
cmp edx, ebp
jae 0x47ef07
lea eax, [esp + 0x30]
push eax
call fcn.00431e50
add esp, 4
test al, al
je 0x47f002
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x47ef26
lea eax, [esp + 0x30]
push eax
call fcn.0051b808
mov ecx, dword [esp + edi*4 + 0x18]
add esp, 4
inc edi
cmp edi, 6
mov dword [ecx], eax
jl 0x47ee60
cmp dword [esp + 0x44], ebp
jb 0x47ef52
mov eax, dword [esp + 0x30]
push eax
call fcn.0051c16d
add esp, 4
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
push 0x530474
lea edx, [esp + 0x10]
push 0
push edx
mov dword [esp + 0x18], 0x53bbfc
mov dword [esp + 0x1c], 0x12f
call fcn.0041ce50
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp eax, ebp
jb 0x47f03b
mov eax, dword [esp + 0x30]
push eax
call fcn.0051c16d
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov dword [esp + 0x10], 0x13b
jmp 0x47f00a
push 0x530474
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x18], 0x53bbfc
mov dword [esp + 0x1c], 0x14c
call fcn.0041ce50
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00414fe0
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov dword [esp + 0x10], 0x15f
push 0x530474
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x18], 0x53bbfc
call fcn.0041ce50
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp eax, ebp
jb 0x47f03b
mov edx, dword [esp + 0x30]
push edx
call fcn.0051c16d
add esp, 4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x48e430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x30]
push 0
lea eax, [esp + 0xb]
push eax
lea ecx, [esp + 0xe]
push ecx
push 2
push edx
mov byte [esp + 0x1a], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x17], 0
call fcn.004a6380
mov edx, dword [esp + 0x48]
push 0
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x20]
push ecx
push 2
push edx
call fcn.004a6380
mov edx, dword [esp + 0x60]
push 0
lea eax, [esp + 0x2f]
push eax
lea ecx, [esp + 0x32]
push ecx
push 2
push edx
call fcn.004a6380
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x10]
add esp, 0x3c
test ecx, ecx
mov dword [esp + 0x18], ecx
jge 0x48e4b9
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
dec edx
imul edx, ecx
sub eax, edx
jmp 0x48e4bc
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 6]
push ebx
mov bl, byte [esp + 7]
push ebp
push esi
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
lea esp, [esp]
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
mov cl, byte [esp + 0x17]
xor edi, edi
mov di, word [ebp]
add esi, 3
add ebp, 2
mov eax, edi
shr ax, cl
mov cl, dl
mov edx, edi
shl al, cl
mov cl, byte [esp + 0x15]
shr dx, cl
mov cl, byte [esp + 0x14]
movzx eax, al
shl dl, cl
mov ecx, edi
mov dword [esp + 0x24], ecx
mov cl, bl
mov ebx, edi
shr bx, cl
mov cl, byte [esp + 0x12]
movzx edx, dl
shl bl, cl
mov cl, byte [esi - 3]
movzx edi, cl
sub eax, edi
movzx edi, word [esp + 0x50]
imul eax, edi
sar eax, 8
add al, cl
mov cl, byte [esi - 2]
mov byte [esp + 0x4e], bl
movzx ebx, cl
sub edx, ebx
movzx ebx, byte [esp + 0x4e]
imul edx, edi
sar edx, 8
add dl, cl
movzx ecx, byte [esi - 1]
sub ebx, ecx
mov cl, byte [esi - 1]
imul ebx, edi
mov byte [esi - 3], al
mov byte [esi - 2], dl
sar ebx, 8
add bl, cl
mov byte [esi - 1], bl
mov cl, byte [esp + 0x12]
shr bl, cl
movzx di, bl
mov bl, byte [esp + 0x13]
mov cl, bl
shl edi, cl
mov cl, byte [esp + 0x14]
shr dl, cl
mov cl, byte [esp + 0x15]
movzx dx, dl
shl edx, cl
or edi, edx
mov dl, byte [esp + 0x16]
mov cl, dl
shr al, cl
mov cl, byte [esp + 0x17]
movzx ax, al
shl eax, cl
mov ecx, dword [esp + 0x38]
or edi, eax
mov eax, dword [esp + 0x1c]
mov word [ebp - 2], di
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x48e4f0
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add edi, ecx
mov ecx, dword [esp + 0x34]
add esi, ecx
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], esi
jl 0x48e4e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x490d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x58]
push edi
xor eax, eax
test ebx, ebx
mov ecx, 0xd
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
jne 0x490daa
pop edi
xor al, al
pop ebx
add esp, 0x48
ret
push ebp
mov ebp, dword [esp + 0x58]
cmp ebp, ebx
jne 0x490db5
xor ebp, ebp
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
push ebx
push eax
push ebp
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00490c40
add esp, 0x14
test al, al
jne 0x490ddb
pop ebp
pop edi
mov al, 1
pop ebx
add esp, 0x48
ret
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
sub esi, edi
mov edi, dword [esp + 0x1c]
sub edi, edx
push edi
push esi
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00490d10
add esp, 0x18
test al, al
jne 0x490e16
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x48
ret
mov eax, dword [ebx + 0x10]
test eax, eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x3c], eax
jge 0x490e2d
mov edx, dword [ebx + 0xc]
dec edx
imul edx, eax
sub ecx, edx
imul eax, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
lea edx, [eax + ecx*4]
mov eax, dword [0x55532c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov ecx, dword [eax + 0x14]
movzx eax, byte [esp + 0x7c]
push 0x100
push eax
mov eax, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push eax
push edx
lea eax, [esp + 0x38]
push eax
call dword [ecx + 4]
add esp, 0x1c
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
add esp, 0x48
ret

Function at 0x491b30
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0xc8
lea eax, [esp + 0xd4]
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.user32.dll_wvsprintfA]
lea eax, [esp]
push eax
lea ecx, [esp + 0x68]
push 0x53c9f8
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
add esp, 0xc8
ret

Function at 0x492d00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x52cfd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
xor ebx, ebx
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], ebx
mov dword [esi], 0x53cbb0
call fcn.0049d990
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x10]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov word [esi + 0x3a], 0x38
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x493390
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 8
test eax, eax
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x1c]
je 0x4933e7
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0xa]
mov ecx, dword [esi + 0x14]
push edx
push ecx
movsx ecx, word [eax + 4]
mov eax, dword [eax]
push edx
mov edx, dword [esi + 0x10]
push edx
movsx edx, word [esi + 4]
push ecx
xor ecx, ecx
mov cl, byte [esi + 0x18]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x54]
push ebx
push ebp
push edi
call fcn.0049e840
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x493416
mov dx, word [esi + 6]
mov eax, dword [esp + 0x40]
mov word [eax + 0x2a], dx
mov edx, dword [esi]
add eax, 0xc
push eax
xor eax, eax
mov ax, word [esi + 6]
push 0x258
push eax
push edx
push ebx
push ebp
push edi
call fcn.004a0ba0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x493426
push ebx
push ebp
push edi
call fcn.0049f580
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x493436
push ebx
push ebp
push edi
call fcn.004a0070
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x493446
push ebx
push ebp
push edi
call fcn.00497220
mov ecx, edi
call fcn.0049e240
mov bl, al
test bl, bl
jne 0x493477
push 0x530474
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x1c], 0x53cbb4
mov dword [esp + 0x20], 0x612
call fcn.0041ce50
add esp, 0xc
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 0x30