joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0040a470
mov eax, dword [0x41b130]
xor eax, ebp
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 8]
call fcn.004023f0
push 0
push 0
push 0
push 0
push 0x417258
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4010dc
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4010d2
push 0x1000
push 0
lea edx, [ebp - 0x1018]
push edx
call fcn.0040a3e0
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0xfff
lea ecx, [ebp - 0x1018]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4010c8
cmp dword [ebp - 0x10], 0
jne 0x4010a1
jmp 0x4010c8
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 8]
call fcn.004016e0
push 0x1000
push 0
lea ecx, [ebp - 0x1018]
push ecx
call fcn.0040a3e0
add esp, 0xc
jmp 0x40107b
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402410
lea ecx, [ebp - 8]
call fcn.00402470
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a45a
mov esp, ebp
pop ebp
ret
Function at 0x4042d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x41b130]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00401c30
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.004070d0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.004045c0
lea ecx, [ebp - 0x438]
call fcn.004070d0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403cd0
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40434e
call fcn.00403ce0
mov dword [ebp - 0x444], eax
jmp 0x4044a3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x40437f
call fcn.00403ce0
mov dword [ebp - 0x444], eax
jmp 0x4044a3
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x4043af
call fcn.00403ce0
mov dword [ebp - 0x444], eax
jmp 0x4044a3
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x4043ff
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00407150
lea ecx, [ebp - 0x2c]
call fcn.00406d70
mov eax, dword [ebp - 0x44c]
jmp 0x4044d8
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.004070f0
lea ecx, [ebp - 0x438]
call fcn.00405c30
test eax, eax
jne 0x40442c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x4044a3
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00405c30
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.00401c30
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x40446e
call fcn.00403ce0
mov dword [ebp - 0x444], eax
jmp 0x4044a3
lea ecx, [ebp - 0x438]
call fcn.00405c30
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405c30
push eax
lea ecx, [ebp - 0x18]
call fcn.004045f0
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x4044b3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00407150
lea ecx, [ebp - 0x2c]
call fcn.00406d70
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0040a45a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405e20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41b130]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00405be0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405dc0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405e8b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00405c10
mov eax, dword [ebp - 0x224]
jmp 0x405f1c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405ef1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405e20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405ee8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00405c10
mov eax, dword [ebp - 0x228]
jmp 0x405f1c
mov dword [ebp - 4], 0x100
jmp 0x405e92
lea ecx, [ebp - 0x14]
call fcn.00405d00
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00405ca0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00405c10
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040a45a
mov esp, ebp
pop ebp
ret 4
Function at 0x406480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x406489
xor ecx, ecx
jne 0x406489
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4064aa
mov eax, 0xd
jmp 0x406505
xor eax, eax
jne 0x406491
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x4064bb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x408420
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xedb88320
mov dword [ebp - 4], 0
jmp 0x40843f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x408494
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 8
jmp 0x408460
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jle 0x408485
mov eax, dword [ebp - 8]
and eax, 1
je 0x40847b
mov ecx, dword [ebp - 8]
shr ecx, 1
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x408483
mov edx, dword [ebp - 8]
shr edx, 1
mov dword [ebp - 8], edx
jmp 0x408457
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x41c120], ecx
jmp 0x408436
mov esp, ebp
pop ebp
ret
Function at 0x408870
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x41b130]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0040a3e0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4088d6
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4088d6
xor eax, eax
jmp 0x408a7a
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx], ax
cmp dword [ebp - 0x124], 4
jne 0x408946
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x12c], edx
cmp dword [ebp - 0x12c], 1
je 0x408907
cmp dword [ebp - 0x12c], 2
je 0x408925
jmp 0x408941
mov eax, dword [ebp + 0xc]
push eax
push str.Windows98
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
jmp 0x408941
mov eax, dword [ebp + 0xc]
push eax
push str.WindowsNT
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp + 0x10]
mov dword [edx], 2
jmp 0x408a67
cmp dword [ebp - 0x124], 5
jne 0x4089d9
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x40897c
cmp dword [ebp - 0x130], 1
je 0x40899a
cmp dword [ebp - 0x130], 2
je 0x4089b8
jmp 0x4089d4
mov ecx, dword [ebp + 0xc]
push ecx
push str.Windows2000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
jmp 0x4089d4
mov ecx, dword [ebp + 0xc]
push ecx
push str.WindowsXP
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
jmp 0x4089d4
mov ecx, dword [ebp + 0xc]
push ecx
push str.Windows2003
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp + 0x10]
mov dword [eax], 5
jmp 0x408a67
cmp dword [ebp - 0x124], 6
jne 0x408a67
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x134], ecx
cmp dword [ebp - 0x134], 0
je 0x408a06
cmp dword [ebp - 0x134], 1
je 0x408a24
jmp 0x408a67
mov edx, dword [ebp + 0xc]
push edx
push str.Vista
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 6
jmp 0x408a67
movzx edx, byte [ebp - 0xe]
cmp edx, 1
jne 0x408a4b
mov eax, dword [ebp + 0xc]
push eax
push str.Windows7
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp + 0x10]
mov dword [edx], 7
jmp 0x408a67
mov eax, dword [ebp + 0xc]
push eax
push str.Windows2008
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp + 0x10]
mov dword [edx], 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a45a
mov esp, ebp
pop ebp
ret
Function at 0x408a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41b130]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x417c08]
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0040a3e0
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.HTTP_shellopencommand
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x408b34
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
neg eax
sbb eax, eax
neg eax
jmp 0x408b36
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a45a
mov esp, ebp
pop ebp
ret

Function at 0x408bc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
call fcn.00409dc0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x5c], 0x80
mov esp, ebp
pop ebp
ret

Function at 0x40a45a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b130]
jne 0x40a464
repz ret
jmp fcn.0040c5ea
Function at 0x41498b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f0c5
and dword [ebp - 4], 0
cmp dword [0x41dd08], 0
mov ebx, eax
jne 0x414a3c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414aed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x414aed
push eax
call fcn.0040f053
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41dd08], eax
call esi
push eax
call fcn.0040f053
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41dd0c], eax
call esi
push eax
call fcn.0040f053
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41dd10], eax
call esi
push eax
call fcn.0040f053
pop ecx
mov dword [0x41dd18], eax
test eax, eax
je 0x414a3c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f053
pop ecx
mov dword [0x41dd14], eax
mov eax, dword [0x41dd14]
cmp eax, ebx
je 0x414a94
cmp dword [0x41dd18], ebx
je 0x414a94
push eax
call fcn.0040f0ce
push dword [0x41dd18]
mov esi, eax
call fcn.0040f0ce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414a94
test edi, edi
je 0x414a94
call esi
test eax, eax
je 0x414a8b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414a8b
test byte [ebp - 0xc], 1
jne 0x414a94
or dword [ebp + 0x10], 0x200000
jmp 0x414acd
mov eax, dword [0x41dd0c]
cmp eax, ebx
je 0x414acd
push eax
call fcn.0040f0ce
pop ecx
test eax, eax
je 0x414acd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414acd
mov eax, dword [0x41dd10]
cmp eax, ebx
je 0x414acd
push eax
call fcn.0040f0ce
pop ecx
test eax, eax
je 0x414acd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41dd08]
call fcn.0040f0ce
pop ecx
test eax, eax
je 0x414aed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414aef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401468
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov esi, dword [ebp + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
lea ecx, [eax + 0x14]
mov eax, dword [eax + 0x14]
cmp eax, ecx
je 0x40159e
mov edx, eax
mov eax, dword [eax]
test eax, eax
je 0x40148b
cmp dword [edx + 0x10], esi
jne 0x401483
xor eax, eax
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], closesocket
mov eax, dword [edx + 0x20]
mov dword [esp], eax
call dword [ebp + 0x10]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x40159e
mov ecx, dword [esi + 0x3c]
mov eax, dword [ebp + 0xc]
add ecx, esi
sub eax, esi
lea edx, [ecx + 0xf8]
movzx ecx, word [ecx + 6]
mov dword [ebp - 0x24], eax
imul ecx, ecx, 0x28
add ecx, edx
cmp edx, ecx
je 0x401597
mov esi, dword [edx + 0xc]
cmp eax, esi
jb 0x401518
mov edi, dword [edx + 0x10]
add edi, esi
cmp edi, eax
jb 0x401518
add eax, dword [edx + 0x14]
sub eax, esi
jne 0x40151d
jmp 0x401597
add edx, 0x28
jmp 0x4014f7
xor edi, edi
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp], ebx
call dword [ebp + 0x14]
sub esp, 0x10
inc eax
je 0x401597
xor esi, esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebp + 0x18]
sub esp, 0x14
test eax, eax
je 0x401597
cmp dword [ebp - 0x24], 8
jne 0x401597
cmp byte [ebp - 0x20], 0xb8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jne 0x401597
shrd eax, edx, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
add eax, 5
mov dword [ebp - 0x1c], eax
mov dword [esp], ebx
call dword [ebp + 0x1c]
push ebx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x4015a2
mov dword [esp], ebx
call dword [ebp + 0x1c]
push eax
xor eax, eax
xor edx, edx
leave
ret 0x18
Function at 0x409dbd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x409e92
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x409e92
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x409e92
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x409e18
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x409e92
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x409e5d
test dl, dl
je 0x409e59
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x409e5d
add ecx, 2
add eax, 2
test dl, dl
jne 0x409e3d
xor eax, eax
jmp 0x409e62
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409e74
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x409e7f
inc esi
cmp esi, ebp
jae 0x409e92
mov edx, dword [esp + 0x10]
jmp 0x409e33
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x40a0f6
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40a101
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x40a115
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40a119
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x40a152
cmp dword [edi + ecx], 0x4550
jne 0x40a152
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x40a152
test byte [edi + ecx + 0x16], 2
je 0x40a152
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x40a157
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x40a193
xor eax, eax
jmp 0x40a176
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x40a19c
inc edx
movzx eax, dx
cmp eax, edi
jl 0x40a176
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x40a1a2
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x40a1da
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x40a1e8
add edx, 0x20
cmp eax, edx
jne 0x40a1f9
test bx, bx
je 0x40a22e
add esi, 2
add edi, 2
jmp 0x40a1ca
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x40a207
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x40a215
add edx, 0x20
sub ecx, edx
je 0x40a22e
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x40a1c3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x40ad68
test ecx, ecx
je 0x40ad68
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x40ad68
test ebx, ebx
je 0x40ad68
mov ebx, eax
add ebx, edx
je 0x40ad68
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x40ad68
cmp dword [edx + eax + 0x14], 0
je 0x40ad68
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x40ad68
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40ad58
test dl, dl
je 0x40ad54
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40ad58
add edi, 2
add esi, 2
test dl, dl
jne 0x40ad38
xor eax, eax
jmp 0x40ad5d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ad74
inc ebp
cmp ebp, dword [esp + 4]
jb 0x40ad25
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x41f9d1
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 0x41f9ff
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x41f9f6
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x41f9ee
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x41fa20
mov esp, ebp
pop ebp
ret

Function at 0x41fa24
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 0x41fa90
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 0x41fabd
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x41faac
xor ecx, eax
xor edx, ebx
dec edi
jne 0x41fa9d
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x41fae3
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x41fa84
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 0x41fb0f
mov esp, ebp
pop ebp
ret 0xc