joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bd80
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x808], esi
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x804]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44bdd2
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404870
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055a658
mov esp, ebp
pop ebp
ret

Function at 0x44be10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593482
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x814], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x810]
push eax
push 0x400
mov dword [ebp - 0x814], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x44bebe
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x44bea0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44bea0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404870
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
Function at 0x44bee0
Capabilities:
Gather total-commander information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5934d9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push esi
push 0x5a82d0
push 0x5af258
push SysReAllocString
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 1
call fcn.00457190
push esi
call fcn.0044c4c0
push 0x5af29c
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00413dc1
add esp, 0x20
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 1
jb 0x44bf70
mov eax, dword [eax]
push eax
call fcn.0044c600
mov edx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], 0
mov bl, al
cmp edx, 8
jb 0x44bfb5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44bfab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c029
push edx
push ecx
call fcn.0055a64a
add esp, 8
test bl, bl
je 0x44bfc2
push 0xc
push 0x5af29c
jmp 0x44c005
push 0x5af2b8
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00413dc1
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 2
jb 0x44bfe3
mov eax, dword [eax]
push eax
call fcn.0044c600
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004047a9
test bl, bl
je 0x44c00c
push 0xe
push 0x5af2b8
mov ecx, esi
call fcn.0040650c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
call fcn.005617aa
int3
Function at 0x44c600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5935d0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor bl, bl
test edx, edx
je 0x44c77a
cmp word [edx], 0
je 0x44c77a
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x14], 7
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44c660
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00404870
push 0
push 0x5a72d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x5af040
push eax
call fcn.0040b4c2
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp eax, 2
jbe 0x44c752
cmp eax, 1
jbe 0x44c797
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + 2], 0x3a
jne 0x44c752
push 0
push 0x5af1b4
lea ecx, [ebp - 0x28]
call fcn.0040c43b
cmp eax, 0xffffffff
jne 0x44c752
push 0x5af1c0
lea ecx, [ebp - 0x58]
call fcn.00404778
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040650c
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00405898
lea ecx, [ebp - 0x40]
call fcn.004047a9
lea ecx, [ebp - 0x58]
call fcn.004047a9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x28]
call fcn.004047a9
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
call fcn.00404842
int3
Function at 0x44c9e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593600
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
xor bl, bl
mov esi, dword [ebp + 8]
push eax
push esi
mov byte [ebp - 0x11], bl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x44cabf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44cabf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44cabf
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ebx, eax
jbe 0x44ca76
cmp ebx, 0x7fffffff
ja 0x44cad3
push ebx
mov ecx, esi
call fcn.0044ad50
add ebx, edi
cmp edi, ebx
je 0x44cabd
mov cl, byte [edi]
mov eax, dword [esi + 4]
mov byte [ebp + 0xf], cl
cmp dword [esi + 8], eax
je 0x44ca91
mov byte [eax], cl
inc dword [esi + 4]
inc edi
jmp 0x44ca78
lea ecx, [ebp + 0xf]
push ecx
push eax
mov ecx, esi
call fcn.004373a0
inc edi
jmp 0x44ca78
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00409390
int3
Function at 0x44d750
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x1c], 0x10
lea esi, [edi + 8]
mov ebx, dword [edi + 0x18]
jb 0x44d76c
mov esi, dword [edi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x44d788
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x44d777
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
lea edx, [eax*8]
mov eax, dword [ecx + edx]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x44d7c1
cmp eax, edi
jne 0x44d7b9
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x44d7c9
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x44d7c9
cmp eax, edi
jne 0x44d7c9
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov esi, dword [edi]
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ebx + 8]
call fcn.0044d9c0
push 0x38
push edi
call fcn.0055a64a
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4508e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593c08
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0055b080
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x104c], esi
mov dword [ebp - 0x1048], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x1044]
mov dword [ebp - 4], 0
push ecx
push 0x1000
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1048], 1
push ecx
push eax
mov dword [ebp - 0x1044], 0
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x450aaf
xor edi, edi
test dword [ebp - 0x1044], 0xfffffffc
jbe 0x450aaf
lea esp, [esp]
push dword [ebp + edi*4 - 0x1010]
lea eax, [ebp - 0x1040]
push eax
call fcn.00450ae0
add esp, 8
push eax
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 1
call fcn.00434520
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 2
cmp dword [esi + 8], ecx
je 0x450a0e
mov eax, dword [ebp - 0x1028]
mov edx, 7
mov dword [ecx], eax
mov eax, dword [ebp - 0x1024]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1020]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x101c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x1018]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x1014]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [esi + 4], 0x18
mov word [ebp - 0x1028], ax
jmp 0x450a23
lea eax, [ebp - 0x1028]
push eax
push ecx
mov ecx, esi
call fcn.0044feb0
mov edx, dword [ebp - 0x1014]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x450a5d
mov ecx, dword [ebp - 0x1028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x450a53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450acc
push edx
push ecx
call fcn.0055a64a
add esp, 8
mov edx, dword [ebp - 0x102c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x450a9d
mov ecx, dword [ebp - 0x1040]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x450a93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450acc
push edx
push ecx
call fcn.0055a64a
add esp, 8
mov eax, dword [ebp - 0x1044]
inc edi
shr eax, 2
cmp edi, eax
jb 0x450990
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
call fcn.005617aa
int3
Function at 0x451030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0055b080
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x1054], 0
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push 0x1000
push eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1004]
push eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1058], 0x44
call fcn.0055dac0
push esi
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0056641e
add esp, 0x18
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4511c6
cmp dword [ebp + 0x10], 0
je 0x45119e
mov esi, dword [ebp - 0x1014]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x1074]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1014]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1010]
call esi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a658
mov esp, ebp
pop ebp
ret

Function at 0x4511e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45120b
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret
Function at 0x451d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593e6b
mov eax, dword fs:[0]
push eax
mov eax, 0x3044
call fcn.0055b080
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x5af84c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x451d7d
xor al, al
jmp 0x451f42
lea eax, [ebp - 0x3020]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x800
lea eax, [ebp - 0x2010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x3038]
push eax
call fcn.004523b0
add esp, 4
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x451dcb
mov esi, dword [esi]
call fcn.00451c90
cmp dword [eax + 0x2c], 8
lea ecx, [eax + 0x18]
jb 0x451ddb
mov ecx, dword [ecx]
movzx eax, word [ebp - 0x3014]
push eax
movzx eax, word [ebp - 0x3016]
push eax
movzx eax, word [ebp - 0x3018]
push eax
movzx eax, word [ebp - 0x301a]
push eax
movzx eax, word [ebp - 0x301e]
push eax
movzx eax, word [ebp - 0x3020]
push eax
push esi
push ecx
lea eax, [ebp - 0x2010]
push eax
push 0x5af864
lea eax, [ebp - 0x3010]
push 0x800
push eax
call fcn.0044d330
add esp, 0x30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3038]
call fcn.004047a9
lea eax, [ebp - 0x1010]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x303c], eax
cmp eax, 0xffffffff
je 0x451d76
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x5af8a4
push edi
mov dword [ebp - 0x3050], eax
mov dword [ebp - 0x304c], ebx
mov dword [ebp - 0x3048], 0
mov dword [ebp - 0x3044], 0
mov dword [ebp - 0x3040], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x451d76
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x3044]
push ecx
push 0
lea ecx, [ebp - 0x3050]
push ecx
push 0
push dword [ebp - 0x303c]
push eax
push esi
call ebx
test eax, eax
je 0x451d76
push dword [ebp - 0x303c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x613438]
test eax, eax
je 0x451f40
lea ecx, [ebp - 0x1010]
push ecx
call eax
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
Function at 0x4522e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x5af810
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45230b
push 0x5af828
push eax
call edi
mov esi, eax
test esi, esi
jne 0x452328
push 0x5af7a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x452324
push 0x5af828
push eax
call edi
mov esi, eax
test esi, esi
je 0x4523a6
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 7
push esi
call edi
test eax, eax
je 0x4523a6
cmp byte [ebp + 8], 0
jne 0x452378
mov eax, dword [esi]
mov dword [0x61343c], eax
movzx eax, word [esi + 4]
mov word [0x613440], ax
movzx eax, byte [esi + 6]
mov byte [0x613442], al
mov eax, dword [0x5af844]
mov dword [esi], eax
movzx eax, word [0x5af848]
mov word [esi + 4], ax
movzx eax, byte [0x5af84a]
jmp 0x452397
cmp byte [0x61343c], 0
je 0x45239a
mov eax, dword [0x61343c]
mov dword [esi], eax
mov ax, word [0x613440]
mov word [esi + 4], ax
mov al, byte [0x613442]
mov byte [esi + 6], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 7
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4523b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593f42
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
shr eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
push eax
push 0x5af7ec
lea eax, [ebp - 0x210]
push 0xff
push eax
call fcn.0044d330
lea eax, [ebp - 0x210]
add esp, 0x14
lea edx, [eax + 2]
jmp 0x452450
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452450
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040650c
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x23c], 9
mov ecx, edi
push 4
jne 0x452490
push 0x5af7f8
jmp 0x452495
push 0x5af804
call fcn.0040650c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
Function at 0x452aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00452a70
mov edi, eax
mov dword [ebp - 0x24], edi
push dword [0x60a6d4]
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
call fcn.00452a10
mov ecx, eax
call fcn.004104ff
mov esi, dword [ebp + 8]
push 0xe
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x452bbd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp cx, word [eax + 4]
jae 0x452bbd
mov edx, dword [ebp - 0x20]
lea esi, [eax + 7]
mov cl, byte [esi - 1]
mov dword [ebp - 0x10], 0
test cl, cl
jne 0x452b63
cmp byte [esi], cl
jne 0x452b63
mov dword [ebp - 0x10], 0x100
mov eax, 0x100
jmp 0x452b6f
xor eax, eax
cmp cl, byte [esi]
jne 0x452b6f
movzx eax, cl
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jb 0x452bac
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
call fcn.004524c0
mov edx, dword [ebp - 0x20]
mov ecx, eax
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x452c32
mov eax, dword [ebp - 0x18]
inc edx
mov dword [edi + 4], ecx
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xe
movzx eax, word [eax + 4]
cmp ebx, eax
jl 0x452b43
jmp 0x452bc0
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x452bec
mov ecx, dword [edi]
cmp ecx, edi
je 0x452bec
mov eax, dword [ecx]
cmp eax, edi
je 0x452be3
mov edx, dword [eax + 8]
mov esi, eax
cmp edx, dword [ecx + 8]
mov eax, dword [eax]
cmovae esi, ecx
mov ecx, esi
cmp eax, edi
jne 0x452bd0
cmp ecx, edi
je 0x452bec
mov ebx, dword [ecx + 8]
jmp 0x452bee
xor ebx, ebx
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x452c13
lea esp, [esp]
mov esi, dword [eax]
push 0xc
push eax
call fcn.0055a64a
add esp, 8
mov eax, esi
cmp esi, edi
jne 0x452c00
push 0xc
push edi
call fcn.0055a64a
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5a1cb0
call fcn.0055bd1e
int3