joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403438
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push 0xa
push 0x60e
push 0
call sub.kernel32.dll_FindResourceA
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x4034bb
mov esi, eax
mov al, byte [esi]
lea edi, [0x40a29b]
mov byte [edi], al
inc esi
inc edi
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
mov dword [edi], esi
mov dword [ebp - 4], 0
jmp 0x40348a
push esi
call sub.kernel32.dll_lstrlenA
add esi, eax
inc esi
add edi, 4
mov dword [edi], esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x403479
mov esi, dword [0x40a2a1]
jmp 0x4034aa
cmp byte [esi], 0x2c
jne 0x4034a9
mov byte [esi], 0
inc esi
mov dword [0x40a2b1], esi
jmp 0x4034bb
inc esi
cmp byte [esi], 0
jne 0x403498
push dword [0x40a2a1]
pop dword [0x40a2b1]
pop edi
pop esi
leave
ret

Function at 0x4035bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov dword [ebp - 4], 0
mov dword [0x40abc8], 0x7d0
push 0xa
push dword [0x40abc8]
push 0
call sub.kernel32.dll_FindResourceA
inc dword [0x40abc8]
mov dword [0x40abd8], eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x403602
jmp 0x4036c1
mov dword [0x40abcc], eax
push dword [0x40abd8]
push 0
call sub.kernel32.dll_SizeofResource
push eax
push eax
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x40957e], eax
inc eax
mov dword [0x40abf5], eax
pop eax
push eax
push dword [0x40abcc]
push dword [0x40957e]
call fcn.004042fb
mov eax, dword [0x40957e]
mov bl, byte [eax]
cmp dword [ebp - 4], 0
je 0x403656
test bl, 0x80
jne 0x4036b1
mov dword [ebp - 4], 0
jmp 0x4036b1
test bl, 1
je 0x403662
call fcn.00403746
jmp 0x40368a
test bl, 2
je 0x40366e
call fcn.00403a9d
jmp 0x40368a
test bl, 4
je 0x40367a
call fcn.00403de5
jmp 0x40368a
test bl, 8
je 0x403686
call fcn.0040405a
jmp 0x40368a
xor ebx, ebx
jmp 0x4036f6
cmp eax, 1
jne 0x403693
jmp 0x4036f6
cmp eax, 2
jne 0x40369c
jmp 0x4036d5
cmp eax, 3
jne 0x4036a5
jmp 0x4036ca
test bl, 0x80
je 0x4036b1
mov dword [ebp - 4], 1
push dword [0x40957e]
call sub.kernel32.dll_GlobalFree
jmp 0x4035d7
mov byte [0x40a2b9], 1
jmp 0x403712
push dword [0x40ab5e]
call sub.kernel32.dll_GlobalFree
push dword [0x40ab5e]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x40957a]
call sub.kernel32.dll_CloseHandle
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
push dword [0x40957e]
call sub.kernel32.dll_GlobalFree
test bl, 0x80
je 0x40370b
jmp 0x4035d7
mov byte [0x40a2b9], 2
mov byte [0x40967e], 0
push 0x309
push dword [0x409474]
call sub.user32.dll_KillTimer
push 0x404571
push 0x14d
push 0x3e7
push dword [0x409474]
call sub.user32.dll_SetTimer
pop ebx
leave
ret
Function at 0x403de5
Capabilities:
Create process on windows
Delete file
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov byte [0x40a2ba], 0
push dword [0x40abf5]
call sub.kernel32.dll_lstrlenA
push eax
shl eax, 4
push eax
push eax
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x40abed], eax
pop eax
push eax
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x40abf1], eax
push dword [0x40abf5]
push dword [0x40abed]
call sub.kernel32.dll_lstrcpyA
push dword [0x40abf5]
push dword [0x40abf1]
call sub.kernel32.dll_lstrcpyA
pop esi
inc esi
add esi, dword [0x40abf5]
mov bl, byte [esi]
or bl, bl
je 0x403e65
call fcn.00404f20
or eax, eax
jne 0x403e65
jmp 0x404033
inc esi
jmp 0x403edc
mov edi, esi
add esi, 6
movzx edx, byte [esi]
mov dword [0x40abbe], edx
inc esi
mov dword [0x40abba], esi
push esi
call sub.kernel32.dll_lstrlenA
add esi, eax
inc esi
mov dword [0x40abb6], esi
pushal
push 0
push 0x404e5d
push dword [0x409474]
push 0x76c
push dword [0x409470]
call sub.user32.dll_DialogBoxParamA
popal
push 0x40a8ba
push edi
push dword [0x40abf1]
push dword [0x40abed]
call fcn.00405150
push dword [0x40abf1]
push dword [0x40abed]
call sub.kernel32.dll_lstrcpyA
push esi
call sub.kernel32.dll_lstrlenA
add esi, eax
inc esi
cmp byte [esi], 0
jne 0x403e68
push dword [0x40abed]
call sub.kernel32.dll_GlobalFree
push 0x40a2ba
call fcn.00405200
push str.___uppp_reg___
push 0x40a2ba
call sub.kernel32.dll_lstrcatA
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x40a2ba
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x403f32
mov byte [0x40a2ba], 0
jmp 0x404033
mov dword [0x40ab5a], eax
push dword [0x40abf1]
call sub.kernel32.dll_lstrlenA
push 0
push 0x409586
push eax
push dword [0x40abf1]
push dword [0x40ab5a]
call sub.kernel32.dll_WriteFile
push dword [0x40ab5a]
call sub.kernel32.dll_FlushFileBuffers
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
push dword [0x40abf1]
call sub.kernel32.dll_GlobalFree
push 0x200
push 0x40a4ba
push str._WINDIR__regedit.exe
call sub.kernel32.dll_ExpandEnvironmentStringsA
push 0x40a4ba
push 0x40a6ba
call sub.kernel32.dll_lstrcpyA
push str.__s__
push 0x40a6ba
call sub.kernel32.dll_lstrcatA
push 0x40a2ba
push 0x40a6ba
call sub.kernel32.dll_lstrcatA
push 0x4090f7
push 0x40a6ba
call sub.kernel32.dll_lstrcatA
mov dword [0x40ab62], 0x44
push 0x40aba6
push 0x40ab62
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x40a6ba
push 0x40a4ba
call sub.kernel32.dll_CreateProcessA
push eax
push 0xffffffffffffffff
push dword [0x40aba6]
call sub.kernel32.dll_WaitForSingleObject
push 0x3e8
call sub.kernel32.dll_Sleep
push 0x409586
push dword [0x40aba6]
call sub.kernel32.dll_GetExitCodeProcess
pop eax
or eax, eax
je 0x404033
cmp dword [0x409586], 0
jne 0x404033
jmp 0x404036
inc dword [ebp - 4]
or bl, bl
je 0x40403f
call fcn.00404f4b
cmp byte [0x40a2ba], 0
je 0x404052
push 0x40a2ba
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404338
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
test dword [0x40abd4], 2
je 0x40450e
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push str.___uppp_bin___
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x404562
mov dword [0x40ab5a], eax
push 0xa
push 0x640
push dword [0x409470]
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x4044ee
push eax
push eax
push dword [0x409470]
call sub.kernel32.dll_SizeofResource
mov dword [0x409586], eax
push dword [0x409470]
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x4044ee
push 0
push 0x40abe0
push dword [0x409586]
push eax
push dword [0x40ab5a]
call sub.kernel32.dll_WriteFile
or eax, eax
je 0x4044ee
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
mov dword [0x40ab5a], 0
push dword [ebp + 8]
call sub.shlwapi.dll_PathStripPathA
push str.___uppp_bin___
push 0x40a8ba
call sub.kernel32.dll_lstrcpyA
push 0x4091ce
push 0x40a8ba
call sub.kernel32.dll_lstrcatA
push dword [ebp + 8]
push 0x40a8ba
call sub.kernel32.dll_lstrcatA
mov dword [0x40ab62], 0x44
push 0x40aba6
push 0x40ab62
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x40a8ba
push str.___uppp_bin___
call sub.kernel32.dll_CreateProcessA
or eax, eax
je 0x4044ee
push 0xffffffffffffffff
push dword [0x40aba6]
call sub.kernel32.dll_WaitForSingleObject
push 0xc8
call sub.kernel32.dll_Sleep
push 0x409586
push dword [0x40aba6]
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [0x409586], 0
jne 0x4044ee
push 0
push 2
push 3
push 0
push 0
push 0x80000000
push 0x409225
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4044ee
mov dword [0x40ab5a], eax
push 0x409586
push dword [0x40ab5a]
call sub.kernel32.dll_GetFileSize
push 0
push 0x409586
push eax
push dword [ebp + 8]
push dword [0x40ab5a]
call sub.kernel32.dll_ReadFile
mov ebx, eax
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
mov dword [0x40ab5a], 0
push 0x409225
call sub.kernel32.dll_DeleteFileA
cmp dword [0x40ab5a], 0
je 0x404502
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
push str.___uppp_bin___
call sub.kernel32.dll_DeleteFileA
jmp 0x404562
push dword [ebp + 8]
call sub.shlwapi.dll_PathStripPathA
push dword [ebp + 8]
push 0x40a8ba
call sub.kernel32.dll_lstrcpyA
push 0x40a8ba
call sub.kernel32.dll_lstrlenA
add eax, 0x40a8ba
inc eax
push dword [ebp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x40a8ba
push str.Target_not_found___Lets_search_n_...
push 0
push dword [0x409474]
call fcn.004052c0
cmp byte [eax], 0
je 0x404562
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcpyA
inc ebx
or ebx, ebx
jne 0x40456c
mov eax, dword [ebp + 8]
mov byte [eax], 0
pop ebx
leave
ret 4
Function at 0x405264
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x40528f
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x4053f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x405403
cmp dword [esi + 0x2b], 0
je 0x405411
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x40549a
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindResourceA]
or eax, eax
jne 0x405435
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x40549a
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_LoadResource]
pop ecx
or eax, eax
jne 0x405450
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x40549a
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_SizeofResource]
or eax, eax
jne 0x40546f
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x40549a
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.00405720
or eax, eax
jne 0x40548e
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x40549a
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40b5d6
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.msvcrt.dll__beginthread]
push 0
push 0
push 0x40b60e
call esi
add esp, 0xc
test byte [0x419614], 0x10
mov dword [0x41aae8], eax
jne 0x40b60c
push 0
push 0
push 0x412afc
call esi
add esp, 0xc
mov dword [0x41aaec], eax
pop esi
ret
Function at 0x40ef27
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x90]
push edi
xor edi, edi
cmp eax, edi
je 0x40f057
mov ecx, dword [esi + 0x8c]
cmp eax, ecx
je 0x40f057
cmp dword [esi + 0xb4], edi
jne 0x40ef61
xor edx, edx
cmp eax, ecx
setle dl
inc edx
mov dword [esi + 0xb4], edx
cmp dword [0x418690], edi
je 0x40ef71
cmp dword [0x418694], edi
jne 0x40ef90
cmp dword [0x4186a0], edi
je 0x40f057
mov edx, dword [0x41aadc]
test byte [edx + 0x129], 1
jne 0x40f057
mov ebp, dword [esi + 0xd8]
cmp ebp, edi
mov edx, dword [esi + 0xb4]
je 0x40efc3
mov ecx, dword [esi + 0xb0]
xor edi, edi
inc edi
cmp edx, edi
jne 0x40efb5
add dword [esi + 0xdc], ecx
jmp 0x40efbb
sub dword [esi + 0xdc], ecx
mov ecx, dword [esi + 0xdc]
jmp 0x40efe0
xor edi, edi
inc edi
cmp edx, edi
jne 0x40efda
mov ebx, dword [esi + 0xb0]
add ebx, ecx
mov dword [esi + 0x8c], ebx
jmp 0x40efe6
sub ecx, dword [esi + 0xb0]
mov dword [esi + 0x8c], ecx
cmp edx, edi
jne 0x40eff4
cmp dword [esi + 0x8c], eax
jl 0x40f00e
jmp 0x40effc
cmp dword [esi + 0x8c], eax
jg 0x40f00e
mov dword [esi + 0x8c], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xb4], edi
test ebp, ebp
je 0x40f057
mov edx, dword [esi + 0x8c]
cmp edx, eax
je 0x40f057
mov ecx, 0x100000
xor ebx, ebx
sub ecx, edx
mov edx, dword [esi + 0x84]
mov edi, ecx
mov ecx, ebx
call fcn.0040cff2
mov ecx, eax
sub ecx, dword [esi + 0x8c]
inc ebx
mov eax, ecx
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp ebp, eax
jl 0x40f025
add dword [esi + 0x8c], edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41618f
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 4]
push edx
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401b60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401bab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ba4
test esi, esi
je 0x401ba4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b80
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401eb8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e1e
cmp eax, 4
jne 0x401e40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e2e
cmp edx, 4
je 0x401e2e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d90

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x564370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x56438e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x58d074
push ecx
mov edi, eax
call fcn.00578198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5643cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0057802e
push esi
call fcn.00577fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x567850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5678ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x592720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5678ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005781e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5678ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x592720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x56792a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00579082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x567957
mov word [eax], si
add eax, 2
push eax
call fcn.00579030
add esp, 4
jmp 0x567959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5678ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5678b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x567ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x568080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5680c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x58d458
push ecx
call fcn.005781e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005781e1
add esp, 0x10
jmp 0x5680d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0057820b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00577dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00568050
mov eax, dword [0x592728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x56813b
push esi
call fcn.00567fb0
add esp, 4
mov dword [0x592728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x56814c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00567ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x56b440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x56b4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x56b48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x56b471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x56b47e
add edx, ecx
cmp ebx, edx
jb 0x56b48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x56b467
xor ecx, ecx
jmp 0x56b4a2
test eax, eax
jne 0x56b492
xor ecx, ecx
jmp 0x56b4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.0056b3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x56b8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x56b921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x56b946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x56b96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x56b993
push ecx
push esi
call fcn.0056b4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret