joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428a5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ae7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c459
and dword [ebp - 0x14], 0
cmp dword [0x4b0760], 0
mov dword [ebp - 0x18], eax
jne 0x428b0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x428bb7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4344ec
push ebx
call edi
test eax, eax
je 0x428bb7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b0760], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b0764], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b0768], eax
call edi
push eax
call esi
mov dword [0x4b0770], eax
test eax, eax
je 0x428b0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b076c], eax
mov eax, dword [0x4b076c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x428b68
cmp dword [0x4b0770], ecx
je 0x428b68
push eax
call esi
push dword [0x4b0770]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x428b68
test ebx, ebx
je 0x428b68
call edi
test eax, eax
je 0x428b5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x428b5f
test byte [ebp - 8], 1
jne 0x428b68
or dword [ebp + 0x10], 0x200000
jmp 0x428b9b
mov eax, dword [0x4b0764]
cmp eax, dword [ebp - 0x18]
je 0x428b9b
push eax
call esi
test eax, eax
je 0x428b9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x428b9b
mov eax, dword [0x4b0768]
cmp eax, dword [ebp - 0x18]
je 0x428b9b
push eax
call esi
test eax, eax
je 0x428b9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b0760]
call esi
test eax, eax
je 0x428bb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x428bb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004171f3
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42e05c
call fcn.0041dceb
mov dword [eax], esi
call fcn.0041dcd8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041dc86
mov eax, esi
jmp 0x42e0b1
test dword [ebp + 0xc], 0xfffffff9
jne 0x42e042
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42e089
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041dcfe
pop ecx
call fcn.0041dcd8
mov eax, dword [eax]
jmp 0x42e0b1
test al, 0x10
jne 0x42e0af
test al, 1
je 0x42e0af
test byte [ebp + 0xc], 2
je 0x42e0af
call fcn.0041dceb
mov dword [eax], 5
call fcn.0041dcd8
mov dword [eax], 0xd
jmp 0x42e080
xor eax, eax
pop esi
pop ebp
ret
Function at 0x409160
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, 0x4aab28
push 0xa
push 0x4091f4
mov eax, dword [0x4aab18]
push eax
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
test ebx, ebx
jne 0x409184
call fcn.00412564
push ebx
mov eax, dword [0x4aab18]
push eax
call sub.KERNEL32.DLL_CreateThread
mov ebx, eax
test ebx, ebx
jne 0x40919b
call fcn.00412564
push ebx
call sub.KERNEL32.DLL_ExitThread
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4091ad
call fcn.00412564
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4aab2c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4aab30], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4aab34], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4aab38], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4aab3c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4aab40], edx
pop esi
pop ebx
ret

Function at 0x40a9e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40aa91
test eax, edx
je 0x40aa94
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40aa11
push edx
mov edx, eax
mov eax, esp
call fcn.004057c0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40aa27
push eax
lea eax, [esp + 8]
call fcn.004057c0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40aa36
movzx eax, word [eax]
sub eax, ecx
jmp 0x40aa5d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40aa77
add ecx, 4
js 0x40aa4e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40aa74
push eax
mov eax, ecx
mov edx, 2
call fcn.00404d60
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40aa5b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40aa5d
xor eax, eax
ret
test eax, eax
je 0x40aaa4
test edx, edx
jne 0x40a9f8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bb9c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
mov ebx, eax
lea eax, [ebp - 0x250]
push eax
mov eax, ebx
call fcn.00405648
push eax
call sub.KERNEL32.DLL_GetFullPathNameW
cmp eax, 0xffffffff
je 0x40bbd3
push eax
call sub.KERNEL32.DLL_GetFileSize
test byte [ebp - 0x250], 0x10
sete al
jmp 0x40bbd5
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bbdc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405648
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 0xffffffff
je 0x40bbfa
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_SetEvent
mov ebx, eax
cmp ebx, 2
je 0x40bc1b
cmp ebx, 3
je 0x40bc1b
cmp ebx, 0x7b
je 0x40bc1b
mov eax, esi
call fcn.0040bb9c
test al, al
jne 0x40bc1f
xor eax, eax
jmp 0x40bc21
mov al, 1
pop esi
pop ebx
ret
Function at 0x410010
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push esi
xor eax, eax
push ebp
push 0x4100a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_WaitForMultipleObjectsEx
mov ecx, 0x4100c0
mov edx, 0x100b
call fcn.0040fd84
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040b78c
mov esi, eax
mov eax, esi
add eax, 0xfffffffd
sub eax, 3
jae 0x410091
push 4
push esi
call sub.KERNEL32.DLL_WaitForMultipleObjectsEx
push eax
push 0x40ff5c
call sub.KERNEL32.DLL_GetFileAttributesW
mov edx, 7
mov eax, 0x4aac3c
mov dword [eax], 0xffffffff
add eax, 4
dec edx
jne 0x410072
push 3
push esi
call sub.KERNEL32.DLL_WaitForMultipleObjectsEx
push eax
push 0x40ff98
call sub.KERNEL32.DLL_GetFileAttributesW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4100ae
lea eax, [ebp - 4]
call fcn.004055ac
ret

Function at 0x410558
Capabilities:
Get thread local storage value

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00410390
mov eax, dword [0x4a7410]
cmp byte [eax], 0
je 0x4105ea
mov eax, dword [0x4a7038]
call fcn.00403358
call fcn.0040315c
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00408244
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040bdf0
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_SwitchToThread
push eax
call sub.KERNEL32.DLL_TlsGetValue
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x410638
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_SwitchToThread
push eax
call sub.KERNEL32.DLL_TlsGetValue
jmp 0x410623
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a6fa4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4aab18]
call fcn.00406a98
push eax
call sub.user32.dll_GetMenu
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_GetMenuItemInfoW
add esp, 0x1084
ret
Function at 0x411224
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4112fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405610
lea eax, [ebp - 4]
call fcn.00405ebc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405648
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4112e4
mov eax, ebx
call fcn.00402ff4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4112dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405648
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4112c7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41130c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4112c7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4112e4
mov eax, dword [ebp - 0x10]
call fcn.00403010
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411301
lea eax, [ebp - 4]
call fcn.004055ac
ret

Function at 0x412393
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405060
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_FindClose
mov edi, eax
cmp edi, 0x104
jbe 0x4123b6
mov eax, edi
add eax, eax
call fcn.00402ff4
mov esi, eax
jmp 0x4123b8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_FindClose
push edi
push esi
call fcn.0040824c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4123f1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4123db
mov eax, esp
cmp esi, eax
je 0x4123fe
mov eax, esi
call fcn.00403010
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x412438
cmp bl, 0
je 0x412434
cmp bl, 0x41
jl 0x41242f
cmp bl, 0x5a
jg 0x41242f
or bl, 0x20
xor al, bl
inc esi
jmp 0x412413
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x412378

Function at 0x412c64
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.004055bc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405648
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_ReadFile
mov ebx, eax
cmp ebx, 0x400
jge 0x412cab
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004056f8
jmp 0x412cc4
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405860
push ebx
mov eax, dword [esi]
call fcn.00405648
push eax
push ebp
call sub.KERNEL32.DLL_ReadFile
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41741c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp dword [0x4acdf8], 0
je 0x41743e
cmp bx, 0x100
jb 0x41743e
cmp bx, 0x7ff
jbe 0x417442
xor eax, eax
jmp 0x417444
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x4174cb
push 0x4acdfc
call sub.KERNEL32.DLL_GetExitCodeThread
xor eax, eax
push ebp
push 0x4174c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4acdf8]
call fcn.004067dc
movzx edi, bx
mov edx, edi
sub edx, 0x100
cmp eax, edx
setg byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4174ac
mov eax, dword [0x4acdf8]
mov eax, dword [eax + edi*4 - 0x400]
mov dword [esi], eax
cmp dword [esi], 0
je 0x4174a3
mov eax, dword [esi]
cmp eax, dword [0x4a4b68]
jne 0x4174a7
xor eax, eax
jmp 0x4174a9
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4174cb
push 0x4acdfc
call sub.KERNEL32.DLL_WriteFile
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4174d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41759a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0x4acdfc
call sub.KERNEL32.DLL_GetExitCodeThread
xor eax, eax
push ebp
push 0x41757d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4acdf8]
call fcn.004067e4
mov esi, eax
test esi, esi
jl 0x417565
inc esi
xor edi, edi
mov eax, dword [0x4acdf8]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x417561
cmp ebx, dword [0x4a4b68]
je 0x417561
lea edx, [ebp - 0x10]
mov eax, dword [ebx]
call fcn.00403a40
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040ac4c
test al, al
je 0x417561
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov byte [ebp - 9], 1
jmp 0x417565
inc edi
dec esi
jne 0x417529
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417584
push 0x4acdfc
call sub.KERNEL32.DLL_WriteFile
ret

Function at 0x41a798
Capabilities:
Write file on windows

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_WriteFile
ret

Function at 0x41b834
Capabilities:
Write file on windows

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_WriteFile
ret
Function at 0x41f064
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
mov dword [ebx + 0x10], edi
test edi, edi
jne 0x41f090
push ebp
call fcn.0041efc4
pop ecx
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.DLL_CreateThread
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x41f0aa
push ebp
call fcn.0041efc4
pop ecx
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.DLL_VirtualQuery
push eax
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_ExitThread
mov edx, eax
mov eax, ebx
pop ecx
call fcn.0041ecf8
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x422954
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, eax
call sub.KERNEL32.DLL_MulDiv
mov edx, dword [0x4a760c]
cmp eax, dword [edx]
je 0x422997
call sub.KERNEL32.DLL_MulDiv
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x4a735c]
mov dl, 1
mov eax, dword [0x419900]
call fcn.00410758
call fcn.00404544
test ebx, ebx
jle 0x4229a4
mov eax, ebx
call fcn.00422914
jmp 0x4229a9
call fcn.00422908
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x4ace38
call sub.KERNEL32.DLL_GetExitCodeThread
xor eax, eax
push ebp
push 0x422b36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x4a4c2c
call sub.KERNEL32.DLL_GetVersionExW
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x422b17
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x4229f4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x4229f8
xor eax, eax
jmp 0x4229fa
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x422b01
jmp 0x422af4
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0041b330
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0041b224
push 0x4ace38
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
push ebp
push 0x422ab9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x422a7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
cmp word [ebx + 0xa], 0
je 0x422a5d
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x422a70
cmp dword [ebx + 0x10], 0
je 0x422a70
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x422aa1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ac0
push 0x4ace38
call sub.KERNEL32.DLL_GetExitCodeThread
ret
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x422a0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422b1e
mov eax, dword [ebp - 0xc]
call fcn.00403b68
ret
Function at 0x422bfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x422c15
add esp, 0xfffffff0
call fcn.00403fa0
mov ebx, ecx
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x422cde
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403b38
call fcn.0042293c
test bl, bl
je 0x422c42
cmp byte [esi + 0x3c], 0
je 0x422c46
xor eax, eax
jmp 0x422c48
mov al, 1
mov byte [esi + 0xe], al
test bl, bl
je 0x422c55
cmp byte [esi + 0x3c], 0
je 0x422c59
xor eax, eax
jmp 0x422c5b
mov al, 1
mov byte [esi + 0xc], al
cmp byte [esi + 0x3c], 0
jne 0x422cb8
push esi
push 4
lea eax, [esi + 8]
push eax
mov ecx, 0x422b48
xor edx, edx
xor eax, eax
call fcn.00404cc0
mov ebx, eax
mov dword [esi + 4], ebx
test ebx, ebx
jne 0x422cc8
call sub.KERNEL32.DLL_SetEvent
lea edx, [ebp - 0x10]
call fcn.0040fd34
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a7528]
mov dl, 1
mov eax, dword [0x419900]
call fcn.00410758
call fcn.00404544
jmp 0x422cc8
call sub.KERNEL32.DLL_LockResource
mov dword [esi + 4], eax
call sub.KERNEL32.DLL_MulDiv
mov dword [esi + 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ce5
lea eax, [ebp - 0x10]
call fcn.004055ac
ret

Function at 0x422e54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
push 0x4ace38
call sub.KERNEL32.DLL_GetExitCodeThread
xor eax, eax
push ebp
push 0x422f07
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a4c2c], 0
je 0x422eef
mov eax, dword [0x4a4c2c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x422eef
mov edx, esi
mov eax, dword [0x4a4c2c]
call fcn.0041b330
mov ebx, eax
cmp dword [ebx + 8], 0
jne 0x422ee9
test edi, edi
je 0x422ea9
mov eax, dword [ebx]
cmp edi, dword [eax]
je 0x422ec4
cmp word [ebp + 0xa], 0
je 0x422ee9
mov eax, dword [ebx]
mov eax, dword [eax + 8]
cmp eax, dword [ebp + 8]
jne 0x422ee9
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp + 0xc]
jne 0x422ee9
mov edx, esi
mov eax, dword [0x4a4c2c]
call fcn.0041b224
mov eax, dword [ebx]
mov edx, dword [0x4199a0]
call fcn.00406404
mov edx, 0xc
mov eax, ebx
call fcn.00403010
dec esi
cmp esi, 0xffffffff
jne 0x422e8b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422f0e
push 0x4ace38
call sub.KERNEL32.DLL_WriteFile
ret
Function at 0x422f18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
call sub.KERNEL32.DLL_MulDiv
mov edx, dword [0x4a760c]
cmp eax, dword [edx]
jne 0x422f69
mov eax, dword [ebp - 4]
cmp word [eax + 0xa], 0
je 0x422f4c
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x4230d6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x4230d6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
jmp 0x4230d6
cmp byte [ebp - 5], 0
je 0x422f7e
mov eax, 0xc
call fcn.00402ff4
mov dword [ebp - 0xc], eax
jmp 0x422f84
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], eax
movzx ebx, byte [ebp - 5]
xor bl, 1
test bl, bl
je 0x422fa4
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.KERNEL32.DLL_GetCurrentThread
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
jmp 0x422fac
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 8], edx
xor eax, eax
push ebp
push 0x4230b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ace38
call sub.KERNEL32.DLL_GetExitCodeThread
xor eax, eax
push ebp
push 0x42308e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
movzx edx, byte [ebp - 5]
mov byte [eax + 4], dl
cmp dword [0x4a4c2c], 0
jne 0x422ff6
mov dl, 1
mov eax, dword [0x418aa4]
call fcn.00403b38
mov dword [0x4a4c2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4a4c2c]
call fcn.0041b1d8
call fcn.00422930
cmp word [0x4a4c1a], 0
je 0x42302d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [0x4a4c1c]
call dword [0x4a4c18]
test bl, bl
je 0x423076
push 0x4ace38
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
push ebp
push 0x42306f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423076
push 0x4ace38
call sub.KERNEL32.DLL_GetExitCodeThread
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423095
push 0x4ace38
call sub.KERNEL32.DLL_WriteFile
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4242dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ace5c
cmp dword [edi], 0
jne 0x424358
push pe_nt_image_headers32
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_GetSystemInfo
mov esi, eax
mov eax, dword [0x4ace58]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a4c30
mov ecx, 2
call fcn.004031ac
mov edx, 0x4242b4
lea eax, [esi + 5]
call fcn.004242d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004242d4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42432d
mov dword [0x4ace58], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x425354
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
call sub.KERNEL32.DLL_MulDiv
cmp eax, dword [ebx + 0xc]
jne 0x42543c
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_GetCurrentThread
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x425435
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00425260
mov dword [ebx + 8], 1
mov eax, esi
dec eax
neg eax
push eax
lea eax, [ebx + 4]
push eax
call sub.KERNEL32.DLL_GlobalAddAtomW
push ebx
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_Sleep
sub eax, 1
jb 0x4253ed
sub eax, 0x101
jne 0x4253f3
mov byte [ebp - 5], 0
push 0x5b4
call sub.KERNEL32.DLL_lstrlenW
jmp 0x4253fe
mov byte [ebp - 5], 1
jmp 0x4253fe
mov byte [ebp - 5], 0
push 0
call sub.KERNEL32.DLL_lstrlenW
push ebx
call sub.KERNEL32.DLL_GetExitCodeThread
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004252c8
mov eax, esi
dec eax
push eax
lea eax, [ebx + 4]
push eax
call sub.KERNEL32.DLL_GlobalAddAtomW
mov dword [ebx + 8], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425440
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
ret
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret