joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ffc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5021b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [eax]
mov esi, dword [esp + 0x50]
mov ebp, dword [edi + 0x74]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 8]
test ebp, ebp
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jne 0x4800e3
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
call ebx
push eax
push 1
push 0
lea ecx, [esp + 0x24]
call fcn.004dfa6a
lea eax, [esp + 0x18]
mov ecx, esi
push eax
mov dword [esp + 0x4c], 0
call fcn.004df02d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add ecx, 3
lea eax, [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004df4d9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
add ecx, 0xfffffffd
push ecx
push edx
mov ecx, esi
call fcn.004df525
push 0x14
call ebx
push eax
push 1
push 0
lea ecx, [esp + 0x1c]
call fcn.004dfa6a
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x4c], 1
call fcn.004df02d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add ecx, 3
inc edx
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.004df4d9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
add ecx, 0xfffffffd
inc edx
push ecx
push edx
mov ecx, esi
call fcn.004df525
mov ebx, 0x51ca2c
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.004dfa54
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 3
call fcn.004dfa54
push 0xfffffffffffffffe
lea eax, [esp + 0x34]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 0x124]
test eax, eax
je 0x480103
mov eax, 1
jmp 0x48010f
mov eax, dword [edi + 0x118]
test eax, eax
je 0x480186
xor eax, eax
mov edx, dword [esp + 0x30]
mov ebx, 2
sub edx, ebx
test ebp, ebp
mov dword [esp + 0x30], edx
je 0x48012a
mov ecx, edx
sub ecx, ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
push eax
lea ecx, [esp + 0x28]
push ebp
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push esi
mov ecx, edi
call fcn.0047fb40
mov ecx, dword [esp + 0x30]
add ecx, ebx
test ebp, ebp
mov dword [esp + 0x30], ecx
je 0x4801b5
mov ecx, dword [esi + 4]
push 0xf
lea eax, [esp + 0x34]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x4801b5
mov ecx, dword [edi + 0x54]
mov eax, 1
test ecx, ecx
je 0x480197
mov eax, 0x101
test ebp, ebp
je 0x4801a0
or ah, 2
jmp 0x4801a3
or ah, 0x40
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x34]
push 3
push edx
push eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
Function at 0x483c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x502677
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x51766c
mov dword [esp + 0x1c], 9
call fcn.00483de0
mov edi, dword [esi + 0x100]
xor ebx, ebx
cmp edi, ebx
je 0x483ce8
mov eax, dword [edi + 0x14]
cmp edi, ebx
mov dword [esi + 0x100], eax
je 0x483cde
lea ecx, [edi + 4]
call fcn.004dbec1
push edi
call fcn.004dbc23
add esp, 4
mov edi, dword [esi + 0x100]
cmp edi, ebx
jne 0x483cc0
mov eax, dword [esi + 0x28]
push eax
call fcn.004dbc23
lea ecx, [esi + 0xf8]
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [ecx], 0x51ca2c
mov byte [esp + 0x1c], 0xa
call fcn.004dfa54
lea ecx, [esi + 0xcc]
mov byte [esp + 0x1c], 7
call fcn.004d6993
lea edi, [esi + 0xa8]
mov dword [esp + 0x10], edi
mov dword [edi], 0x51769c
mov edx, dword [edi + 4]
mov byte [esp + 0x1c], 0xb
cmp edx, ebx
je 0x483d59
mov eax, dword [edi + 8]
cmp eax, ebx
jbe 0x483d59
push ebp
mov ecx, edx
mov ebp, eax
mov eax, dword [ecx]
cmp eax, ebx
je 0x483d52
mov eax, dword [eax]
cmp eax, ebx
jne 0x483d4c
add ecx, 4
dec ebp
jne 0x483d46
pop ebp
push edx
call fcn.004dbc23
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.004d660c
lea ecx, [esi + 0x8c]
mov dword [edi + 0x14], ebx
mov byte [esp + 0x1c], 5
call fcn.004d6fbb
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 4
call fcn.004d6fbb
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 3
call fcn.004d6fbb
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 2
call fcn.004d54c7
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 1
call fcn.004d54c7
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], bl
call fcn.004d5f15
mov ecx, esi
call fcn.004837e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x492bf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x503b93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004dede2
lea ebp, [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x51d4ec
mov edi, dword [esp + 0x3c]
mov dword [esi], 0x51822c
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], ecx
mov ebx, dword [edi + 0xc]
xor eax, eax
cmp ebx, ecx
mov byte [esp + 0x34], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x492d03
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_WindowFromDC]
push eax
call fcn.004d849b
mov ecx, dword [eax + 0x1c]
lea ebx, [esi + 0x20]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test edi, edi
jne 0x492c7a
xor eax, eax
jmp 0x492c7d
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004dee99
mov eax, dword [ebx + 8]
mov edx, dword [ebx]
sub eax, edx
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.004df9fd
xor edi, edi
cmp ebp, edi
jne 0x492cb5
xor ebp, ebp
jmp 0x492cb8
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.004defda
push edi
lea edx, [esp + 0x18]
push edi
push edx
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.004df315
mov eax, dword [ebx + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0x40]
sub eax, edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], ecx
push 0xffffff
push edx
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
call fcn.004ed550
xor ecx, ecx
jmp 0x492d15
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov edx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x24]
mov eax, dword [0x57bd00]
mov edi, dword [0x57bcfc]
sub edx, ebx
cmp eax, edx
jl 0x492d43
cmp edi, ecx
jne 0x492d43
mov ebx, dword [0x57bcf0]
xor edx, edx
cmp ebx, ecx
sete dl
mov dword [0x57bcf0], edx
cmp eax, dword [esp + 0x40]
jl 0x492d53
mov dword [0x57bd04], 1
cmp edi, eax
jl 0x492d7b
mov edx, dword [0x57bcf0]
xor eax, eax
cmp edx, ecx
mov dword [0x57bcfc], ecx
sete al
mov dword [0x57bcf0], eax
mov dword [0x57bd00], ecx
mov dword [0x57bd04], ecx
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x493330
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push edi
push 0
mov esi, ecx
push 0
call ebx
mov edi, eax
lea eax, [edi + edi]
push eax
call fcn.004dbbfa
add esp, 4
mov dword [esi], eax
push eax
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4998d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50430e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [0x574900]
lea ecx, [esi + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ecx], eax
mov dword [esi + 0xc], 0x518a98
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0xa
mov eax, dword [esp + 0x30]
mov dx, word [esp + 0x28]
push eax
mov byte [esp + 0x20], 2
mov dword [esi], 0x518a8c
mov word [esi + 4], dx
call fcn.004dc058
push 0xc
call fcn.004dbbfa
add esp, 4
cmp eax, edi
je 0x499963
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
mov ecx, eax
call fcn.00499460
mov ebp, eax
jmp 0x499965
xor ebp, ebp
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
cmp eax, edi
jne 0x49999f
mov edx, dword [esi + 0x24]
push 0xc
lea eax, [esi + 0x20]
push edx
push eax
call fcn.004d65ec
mov ecx, dword [esi + 0x24]
add eax, 4
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, edi
lea eax, [eax + edx*4 - 0xc]
jl 0x49999f
inc ecx
mov edx, dword [esi + 0x1c]
mov dword [eax], edx
mov dword [esi + 0x1c], eax
sub eax, 0xc
dec ecx
jne 0x499991
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 0x1c], ecx
mov dword [eax + 4], ebx
mov dword [eax], edi
mov ebx, dword [esi + 0x18]
inc ebx
mov dword [esi + 0x18], ebx
mov dword [eax + 8], edi
mov dword [eax + 8], ebp
mov ecx, dword [esi + 0x14]
cmp ecx, edi
je 0x4999c4
mov dword [ecx], eax
jmp 0x4999c7
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x49a488
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49a4e0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x5798f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49a4d3
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49a4e2
xor eax, eax
pop esi
leave
ret 4
Function at 0x4d77b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4d77d3
cmp dword [edi + 0x3c], 0
jne 0x4d77d3
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004f0976
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004d7800
pop edi
pop esi
pop ebx
ret 8

Function at 0x4d784e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f0976
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d787f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004d7892
pop edi
pop esi
pop ebx
ret 8

Function at 0x4d8e5b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d8e93
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004dc37f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dc356
jmp 0x4d8e9f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d8ea3
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x58e978
mov ecx, edi
call fcn.004dc058
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4d8ef6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4d8f09
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004dc37f
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004dc356
jmp 0x4d8f09
mov ecx, esi
call fcn.004db319
test eax, eax
je 0x4d8f09
push edi
mov ecx, eax
call fcn.004d8e5b
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4d99c8
Capabilities:
Terminate process

Disassembly:
xor al, 0x24
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
call edi
mov eax, dword [0x574f18]
mov edx, dword [0x574f18]
sub esp, 0x10
add eax, dword [esi + 0xc]
add eax, esi
add esi, edx
mov dword [esp], esi
call eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4daa7d
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 0x4daabf
call fcn.004f0976
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4daabf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4daab6
xor eax, eax
jmp 0x4daac7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004daacd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f1598
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004f0976
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4f15d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f15d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4f15d9
xor eax, eax
jmp 0x4f1657
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004dbbfa
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4f1611
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4f15fb
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004f1748
push ebx
mov edi, eax
call fcn.004dbc23
test edi, edi
pop ecx
je 0x4f1653
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004f1511
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004f165c
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x4f28f9
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 0x4f2927
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f2945
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f285f
jmp 0x4f2945
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f2945
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f285f
test edi, edi
mov eax, edi
jne 0x4f292f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x4f8419b
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x485c5a46
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40190f
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 0x40193d
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x401934
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40192c
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40195e
mov esp, ebp
pop ebp
ret

Function at 0x401962
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 0x4019ce
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 0x4019fb
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4019ea
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4019db
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x401a21
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x4019c2
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 0x401a4d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402043
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402053
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x4020a8
push dword [ebp + 8]
call fcn.00402254
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x4020a8
xor eax, eax
jmp 0x4020ad
mov eax, 1
test eax, eax
je 0x4020bf
mov eax, 0
jmp 0x40224e
push 0x3c
push dword [ebp + 8]
call fcn.00402296
push eax
call fcn.00402270
push eax
push dword [ebp + 8]
call fcn.00402296
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00402270
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x40211a
push 0x7c
push dword [ebp - 4]
call fcn.00402296
push eax
call fcn.00402270
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40211a
xor eax, eax
jmp 0x40211f
mov eax, 1
test eax, eax
je 0x402131
mov eax, 0
jmp 0x40224e
push 0x78
push dword [ebp - 4]
call fcn.00402296
push eax
call fcn.00402270
push eax
push dword [ebp + 8]
call fcn.00402296
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.00402296
push eax
call fcn.00402270
push eax
push dword [ebp + 8]
call fcn.00402296
push eax
call fcn.00402270
push eax
push dword [ebp + 8]
call fcn.00402296
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.00402296
push eax
call fcn.00402270
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.004022bd
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x402241
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.00402296
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.004022e4
test eax, eax
je 0x402224
push 0x1c
push dword [ebp - 8]
call fcn.00402296
push eax
call fcn.00402270
push eax
push dword [ebp + 8]
call fcn.00402296
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.00402318
push eax
push dword [ebp - 0x24]
call fcn.00402296
push eax
call fcn.00402270
push eax
push dword [ebp + 8]
call fcn.00402296
jmp 0x40224e
push dword [ebp - 0x14]
call fcn.00402340
push eax
push dword [ebp - 0x18]
call fcn.00402296
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x4021ad
add esp, 0xc
mov eax, 0
jmp 0x40224e
mov esp, ebp
pop ebp
ret 8