joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47591a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x475952
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004739ce
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004739a6
jmp 0x47595e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x477011
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x477053
call fcn.0047cd82
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x477053
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47704a
xor eax, eax
jmp 0x47705b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00477061
pop edi
pop esi
pop ebx
ret 4

Function at 0x47d2b2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47d2e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47d2fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047d218
jmp 0x47d2fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47d2fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047d218
test edi, edi
mov eax, edi
jne 0x47d2e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4034db
pop dword [ebp - 0x18]
mov eax, 0x3328efa8
sub eax, 0x32e8bacd
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x87ff2af9
sub dword [ebp - 0x28], 0x39ace5ae
mov dword [ebp - 0x24], 0x42e42874
sub dword [ebp - 0x24], 0x10b0dc2f
mov dword [ebp - 0x20], 0x347c9945
add dword [ebp - 0x20], 0x17cfaae9
mov dword [ebp - 0x1c], 0xfd127797
add dword [ebp - 0x1c], 0x2ed8869
lea eax, [ebp - 0x28]
push eax
mov eax, 0x4c9f0bdb
add eax, 0xb3a13479
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x6b8a6e4f
add dword [ebp - 0x28], 0x8e7fb07
mov dword [ebp - 0x24], 0xdd103095
sub dword [ebp - 0x24], 0x9ba3cf20
mov dword [ebp - 0x20], 0x818678c2
add dword [ebp - 0x20], 0xe1e8f3aa
mov dword [ebp - 0x1c], 0x3b765312
sub dword [ebp - 0x1c], 0x3b765312
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3691c
push 0
call eax
mov ecx, 0x46bc
mov edi, eax
mov ebx, 0xcd00e10b
sub ebx, 0xccc05d0b
add ebx, dword [ebp - 0x18]
mov edx, 0xaaf28dd9
sub edx, 0xb978102
mov dword [ebp - 0xc], 0x5a241a24
mov esi, dword [ebx]
add dword [ebp - 0x14], 0x791200ce
sub esi, edx
xor dword [ebp - 8], edx
mov dword [edi], esi
add edi, 0x8930c896
add edi, 0x76cf376e
add ebx, 4
loop 0x4035f2
add eax, 0x10dc3
mov ebx, eax
add eax, 0x75636a2d
add eax, 0x8a9c95d8
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4ca258
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4c9fca
mov esi, 0xd5ce30e9
add esi, eax
inc eax
call fcn.004ca295
add eax, 0x8d9b0a43
xor dword [ecx], ebx
and esi, eax
inc ecx
and esi, eax
sub eax, 0x7f74265d
cmp ecx, edx
jne fcn.004ca258
and esi, eax
dec esi
push esi
pop eax
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x4071e9
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x407219
push esi
call fcn.0040b389
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x407212
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x40729c
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x407288
mov eax, dword [esi + 8]
test eax, eax
je 0x40723d
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x18c]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x407284
cmp eax, 2
je 0x407288
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x407230
cmp eax, 3
je 0x407263
cmp eax, 1
jne 0x407230
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x407230
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x407230
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004072c9
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4072bc
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004072c9
add esp, 4
pop esi
ret
Function at 0x443c85
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x443ca7
mov eax, 0xfffffffd
jmp 0x443d1f
mov ebx, dword [0x20]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x443ced
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x20]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x443d15
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x443d1f
mov esp, ebp
pop ebp
ret 4

Function at 0x4445df
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x10001240
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000126e
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100024fb
mov esp, ebp
pop ebp
ret 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
movlpd qword [ebp - 0x218], xmm0
call fcn.10001110
push 0x100131d4
push 0x66
push dword [0x1001a868]
lea ecx, [ebp - 0x218]
call fcn.10001950
test eax, eax
jne 0x100012b0
or esi, 0xffffffff
jmp 0x1000140d
mov eax, dword [0x1001a878]
mov dword [ebp - 0x210], 0
test al, 1
jne 0x1000130e
or eax, 1
mov dword [0x1001a874], 0
xorps xmm0, xmm0
mov dword [0x1001a878], eax
movq qword [0x1001a86c], xmm0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10012570
mov dword [0x1001a86c], 0x100131a4
mov dword [0x1001a870], eax
mov byte [0x1001a874], 0
call fcn.100024e6
mov eax, dword [0x1001a878]
add esp, 4
test al, 2
jne 0x1000136a
or eax, 2
mov dword [0x1001a87c], 0x100131bc
mov dword [0x1001a878], eax
xor eax, eax
push 0x100125a0
mov dword [0x1001a880], 0x1001a86c
mov dword [0x1001a890], 2
mov dword [0x1001a888], 0
mov dword [0x1001a88c], 0
mov dword [0x1001a894], eax
mov dword [0x1001a884], 0x1001a87c
call fcn.100024e6
add esp, 4
mov eax, dword [0x1001a87c]
mov ecx, 0x1001a87c
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
call fcn.10001a90
test eax, eax
je 0x100013ec
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10002ea0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push dword [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100013ec
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
jmp 0x100013ef
or esi, 0xffffffff
mov edi, dword [ebp - 0x210]
or eax, 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000140d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x218]
call fcn.10001530
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.100024fb
mov esp, ebp
pop ebp
ret 4
Function at 0x10001d80
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.10002540
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x1318], eax
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.10002ea0
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.10002ea0
add esp, 0x18
lea eax, [ebp - 0x1304]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x102]
push 0
push eax
call fcn.10002ea0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.10002ea0
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.10001d40
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001eb0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.10005f53
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.10005e11
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x10001f35
inc esi
cmp esi, 0xa
jl 0x10001e02
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100024fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
push eax
call fcn.10001f60
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100024fb
mov esp, ebp
pop ebp
ret
Function at 0x40101f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0040df79
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0040df79
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.0040df79
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x4010dc
push 6
call fcn.0040df8b
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4010f5
push ebx
call fcn.0040df7f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 1
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x401124
push 6
call fcn.0040df8b
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x497b5d
mov eax, 2
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x40114e
push 6
call fcn.0040df8b
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 3
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x4011e2
push 6
call fcn.0040df8b
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 4
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x401207
push 6
call fcn.0040df8b
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x40120f
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401220
push ebx
call fcn.0040df7f
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0040df7f
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0040df7f
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.0040df7f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x401b9b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0040df79
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0040df79
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.0040df79
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 6
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x401c58
push 6
call fcn.0040df8b
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401c71
push ebx
call fcn.0040df7f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 7
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x401ca0
push 6
call fcn.0040df8b
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x497b5d
mov eax, 8
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x401cca
push 6
call fcn.0040df8b
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 9
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x401d5e
push 6
call fcn.0040df8b
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0xa
call fcn.0040df91
cmp dword [ebp - 0x20], esp
je 0x401d83
push 6
call fcn.0040df8b
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x401d8b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401d9c
push ebx
call fcn.0040df7f
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0040df7f
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0040df7f
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.0040df7f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x404c0c
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x404c2d
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x404c24
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x404c1c
mov eax, ebx
leave
ret

Function at 0x404c53
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x404cb2
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x404cdf
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x404cce
xor ecx, eax
xor edx, ebx
dec edi
jne 0x404cbf
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x404d05
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x404ca6
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x405384
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
jmp 0x40538c
sub esp, 0x28
push ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0
jle 0x4053d1
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp word [ebp - 8], 0x5a4d
jne 0x4053d1
lea eax, [ecx + 0x3c]
mov eax, dword [eax]
add ecx, eax
mov eax, dword [ecx]
cmp eax, 0x4550
jne 0x4053d1
lea eax, [ecx + 0x16]
mov eax, dword [eax]
cwde
and eax, 0x2000
test eax, eax
je 0x4053d1
lea eax, [ecx + 0x28]
mov eax, dword [eax]
add eax, dword [ebp + 8]
jmp 0x4053d5
xor eax, eax
jmp 0x405400
nop
push 0
push 0
push 0
call eax
call fcn.00405405
push 0x700ed6df
push eax
push 0
call fcn.00405458
push 0
push 0x8000
push 0
push dword [ebp + 8]
push 0xffffffffffffffff
call eax
pop ecx
leave
ret 4
Function at 0x405405
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x405433
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40542a
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x405422
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405454
mov esp, ebp
pop ebp
ret

Function at 0x405458
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x4054c4
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4054f1
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4054e0
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4054d1
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x405517
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x4054b8
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405543
mov esp, ebp
pop ebp
ret 0xc