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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x473010
mov byte [edi + esi], 2
jmp 0x473047
test al, 4
je 0x47301a
mov byte [edi + esi], 0xd
jmp 0x473047
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x473033
mov byte [edi + esi], 2
jmp 0x473047
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x473043
mov byte [edi + esi], 0x19
jmp 0x473047
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x472ff7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x4730bb
cmp dl, 0xd
je 0x4730bb
xor edx, edx
jmp 0x4730c0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x4730ab
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4730e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.004719a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x473101
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00474750
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x473126
push esi
call fcn.00471a30
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004a67a9
push ebx
push edi
mov ebp, eax
call fcn.004747c0
push 0x473160
push ebp
push esi
call fcn.00475af0
push esi
call fcn.00471a30
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x474480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x6db340
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6db27c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4744fb
push 0x4c
push 1
call fcn.0049bc83
mov esi, eax
add esp, 8
test esi, esi
jne 0x4744c3
push 0x6db340
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x6db27c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x6ce224]
inc eax
lea edx, [esi + 0xc]
mov dword [0x6ce224], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.00477fc0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x6db340
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x474980
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0049c272
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004a67a9
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x474a7a
call fcn.0049c272
cmp dword [eax], 0
je 0x4749c7
call fcn.0049c272
mov ebp, dword [eax]
jmp 0x4749ca
or ebp, 0xffffffff
call fcn.00474510
test esi, esi
mov dword [eax], ebp
jne 0x4749df
call fcn.0049c272
cmp dword [eax], 4
je 0x474a2f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x474a12
cmp esi, 0xffffffff
je 0x474a54
test al, 6
je 0x474a12
call fcn.00474510
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00477ff0
add esp, 4
push eax
push 0x24
push 9
call fcn.00474d60
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x474a72
test al, 6
je 0x474a20
test ah, 2
je 0x474a72
test esi, esi
jbe 0x474a7e
test ah, 2
je 0x474a7e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0049c272
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004a67a9
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x474a7a
jmp 0x4749b4
call fcn.00474510
mov eax, dword [eax]
push eax
push ebx
call fcn.00477ff0
add esp, 4
push eax
push 0x24
push 2
call fcn.00474d60
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x474a8b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x474a94
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4896dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4897fd
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4897e1
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x489733
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x489711
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x48a245
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x48a29c
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x48a29c
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x48a29c
xor eax, eax
inc eax
jmp 0x48a29e
xor eax, eax
leave
ret 0x10
Function at 0x48a2c7
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x48a335
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x5c2a5c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48a32c
cmp dword [ebp - 0xc], 4
jne 0x48a32c
cmp dword [ebp - 0x10], edi
je 0x48a32c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6930e0], edi
xor eax, eax
jmp 0x48a374
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6930e0], edi
jge 0x48a36f
lea eax, [ebp - 0x34]
push eax
mov dword [0x6930e0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x48a36f
cmp word [ebp - 0x14], 5
jb 0x48a36f
call fcn.0048a2a2
test eax, eax
je 0x48a36f
emms
mov dword [0x6930e0], 1
mov eax, dword [0x6930e0]
pop edi
leave
ret

Function at 0x49d414
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49d434
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049c1ff
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x49d457
test byte [esp + 8], 2
je 0x49d457
call fcn.0049c272
mov dword [eax], 0xd
call fcn.0049c27b
mov dword [eax], 5
jmp 0x49d430
xor eax, eax
ret

Function at 0x4afe64
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4afe9c
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.004adf1b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004adef3
jmp 0x4afea8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b155e
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 0x4b15a0
call fcn.004b7317
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b15a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b1597
xor eax, eax
jmp 0x4b15a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b15ae
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b7847
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 0x4b7875
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b7893
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b77ad
jmp 0x4b7893
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b7893
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b77ad
test edi, edi
mov eax, edi
jne 0x4b787d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404db5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404dd7
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404dc8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f05
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404edf
test eax, eax
jne 0x404e08
cmp dword [0x4085d4], 1
je 0x404edf
cmp edx, 0xfc
je 0x404f05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e3f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404e82
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.004056f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.004032d0
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405667
add esp, 0x2c
pop edi
jmp 0x404f05
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40a435
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4093ec], 0
push esi
jne 0x40a46c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40a446
mov dword [ecx*4 + 0x4093e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40a441
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40a49d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4093e8]
xor eax, esi
inc ecx
dec edx
jne 0x40a47f
pop edi
not eax
pop esi
ret 0xc
Function at 0x10014936
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x10014964
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x1001496b
cmp ebx, dword [eax + 4]
jae 0x1001496b
xor eax, eax
jmp 0x10014b5b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1001497c
xor eax, eax
inc eax
jmp 0x10014b5a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10014992
cmp ecx, edx
jae 0x10014ad7
cmp dword [eax + 4], 0
je 0x1001499b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10014983
cmp dword [ebp + 8], 0
je 0x100149bd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10014ad7
cmp eax, esi
jae 0x10014ad7
mov eax, dword [0x15ee0c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100149e2
cmp dword [esi*4 + 0x15ee0d0], edi
je 0x10014adb
inc esi
cmp esi, eax
jl 0x100149d0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x15d00a4]
test eax, eax
je 0x10014b57
cmp dword [ebp - 8], 0x1000000
jne 0x10014b57
test byte [ebp - 0xc], 0xcc
je 0x10014a60
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x10014b57
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10014b57
cmp word [eax + 0x18], 0x10b
jne 0x10014b57
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x10014b57
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x10014a60
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x10014a60
test byte [ecx + 0x27], 0x80
jne 0x10014ad7
push 1
push 0x15ee110
call dword [0x15d017c]
test eax, eax
jne 0x10014974
mov ecx, dword [0x15ee0c8]
test ecx, ecx
mov edx, ecx
jle 0x10014a94
lea eax, [ecx*4 + 0x15ee0cc]
cmp dword [eax], edi
je 0x10014a94
dec edx
sub eax, 4
test edx, edx
jg 0x10014a88
test edx, edx
jne 0x10014ac5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10014aa1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10014ab9
lea eax, [edx*4 + 0x15ee0d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10014aa7
cmp ecx, 0x10
jge 0x10014ac5
inc ecx
mov dword [0x15ee0c8], ecx
push 0
push 0x15ee110
call dword [0x15d017c]
jmp 0x10014974
xor eax, eax
jmp 0x10014b5a
test esi, esi
jle 0x10014974
mov ebx, dword [0x15d017c]
push 1
push 0x15ee110
call ebx
test eax, eax
jne 0x10014974
cmp dword [esi*4 + 0x15ee0d0], edi
je 0x10014b31
mov eax, dword [0x15ee0c8]
lea esi, [eax - 1]
test esi, esi
jl 0x10014b1f
cmp dword [esi*4 + 0x15ee0d0], edi
je 0x10014b1b
dec esi
jns 0x10014b0f
test esi, esi
jge 0x10014b2f
cmp eax, 0x10
jge 0x10014b2a
inc eax
mov dword [0x15ee0c8], eax
lea esi, [eax - 1]
jmp 0x10014b31
je 0x10014b49
xor ecx, ecx
test esi, esi
jl 0x10014b49
lea eax, [ecx*4 + 0x15ee0d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x10014b37
push 0
push 0x15ee110
call ebx
jmp 0x10014974
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401616
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004017c6
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401714
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4016b7
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4016fa
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4016ce
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4016e9
test al, 0x40
je 0x4016e0
mov ecx, dword [edi + 0x20]
jmp 0x4016e7
test al, 0x80
je 0x4016fa
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4016fa
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401686
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40a11f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x40a157
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40a145
mov al, 1
jmp 0x40a198
cmp dword [ebx + 0x54], ecx
jne 0x40a14e
mov al, 2
jmp 0x40a198
cmp dword [ebx + 0x7c], ecx
jne 0x40a198
mov al, 3
jmp 0x40a198
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x40a16c
mov al, 4
jmp 0x40a198
cmp ecx, 5
jne 0x40a18c
cmp ebx, 0
jne 0x40a17a
mov al, 5
jmp 0x40a198
cmp ebx, 1
jne 0x40a183
mov al, 6
jmp 0x40a198
cmp ebx, 2
jne 0x40a18c
mov al, 7
jmp 0x40a198
cmp ecx, 6
jne 0x40a198
cmp ebx, 0
jne 0x40a198
mov al, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e850
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c03cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004b26e9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x44e8d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004afe2d
mov eax, dword [eax]
push 0x5c3244
push eax
call fcn.004a1eb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b2974
test bl, bl
je 0x44e8d2
push 0x5c3244
lea ecx, [esp + 0xc]
call fcn.004b2d50
push 0x5c6e18
lea ecx, [esp + 0xc]
call fcn.004b2d50
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44e90e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b2974
jmp 0x44e9d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x44e992
lea edx, [esp + 0x7c]
push 0x5c6e14
push edx
call fcn.004a1eb4
add esp, 8
test eax, eax
je 0x44e992
lea eax, [esp + 0x7c]
push 0x5c6e10
push eax
call fcn.004a1eb4
add esp, 8
test eax, eax
je 0x44e992
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44e922
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004b2974
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x44f1d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x44f232
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x44f240
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c044b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5ce2d8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x44f378
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x44f2a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b2974
xor eax, eax
jmp 0x44f3ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004b2afd
push esi
lea ecx, [esp + 0xc]
call fcn.004b2d8c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5c6e50
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x44f3cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0044f1d0
test eax, eax
jne 0x44f3cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0044f1d0
test eax, eax
jne 0x44f3cd
lea eax, [esp + 0x14]
push 0x5c6e2c
push eax
call fcn.004a3060
mov esi, eax
add esp, 8
test esi, esi
jne 0x44f3ac
lea ecx, [esp + 0x14]
push 0x5c6e28
push ecx
call fcn.004a2fe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44f3ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x44f3af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004b2aad
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x44f2be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b2974
xor eax, eax
jmp 0x44f3ef
mov byte [esi], 0
push 0x5c6e24
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004b2974
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4