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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4b48ea
call fcn.00497f7c
mov esi, dword [eax + 0xc]
push 0x5fc6e0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4b492c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b492c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4b492c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004b4935
jmp 0x4b492e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x53d50d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x53d563
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x53d53c
call fcn.00494bc4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x53d551
call fcn.00494bc4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x53d563
call fcn.00494bc4
call fcn.00497f7c
cmp dword [eax + 0x3c], 0
je 0x53d578
push edi
mov ecx, ebx
call fcn.0053cc2e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0053d75e
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x53d5a1
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x53d5ad
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x58f70e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005c513b
call fcn.00497fd0
cmp dword [eax + 0x14], 0
jne 0x58f729
mov ecx, esi
pop esi
jmp fcn.0058ea32
pop esi
ret
Function at 0x58f824
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0049fad8
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x58f860
call fcn.0058fa41
mov dword [esi + 0xc], 1
jmp 0x58f865
call fcn.0058fa41
cmp dword [esi], 0
je 0x58f8b0
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x58f88b
push edi
call fcn.004941d9
lea ecx, [edi + 1]
push ecx
jmp 0x58f89a
push 0xff
call fcn.004029e0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00490017
pop edi
jmp 0x58f8d4
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x58f8d4
push dword [esi]
push dword [ebp - 4]
call fcn.004a28b3
pop esi
leave
ret 0xc

Function at 0x58f998
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0058fa41
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x58f9e0
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004941d9
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00490017
jmp 0x58f9eb
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004a28b3
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x58ff62
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005d88fc
pop ecx
test eax, eax
jne 0x58ffa4
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004902d6
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x58ff6a
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x5c2bf6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401d60
call fcn.00497fd0
cmp dword [eax + 0x14], 0
jne 0x5c2c11
mov ecx, esi
pop esi
jmp fcn.005c2467
pop esi
ret

Function at 0x5e0762
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005e03df
Function at 0x415b88
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x415d43
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0040b454
mov eax, dword [ebp - 4]
call fcn.00405e74
push eax
call fcn.0040c2b4
push 0
push 0
push 0
push 0
push 0
call fcn.0040c2f4
mov dword [0x42ad78], eax
cmp dword [0x42ad78], 0
je 0x415d20
cmp dword [0x42ad88], 0
jbe 0x415c1f
push 0x415d60
lea edx, [ebp - 0x18]
mov eax, dword [0x42ad88]
call fcn.00408af4
push dword [ebp - 0x18]
push 0x415d88
lea eax, [ebp - 8]
mov edx, 3
call fcn.004060dc
mov eax, dword [ebp - 8]
call fcn.00405e74
mov edi, eax
jmp 0x415c29
lea eax, [ebp - 8]
call fcn.00405894
xor edi, edi
mov esi, dword [ebp - 8]
test esi, esi
je 0x415c35
sub esi, 4
mov esi, dword [esi]
push 0
push 0x84080300
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.00405e74
push eax
mov eax, dword [0x42ad78]
push eax
call fcn.0040c2fc
mov dword [0x42ad7c], eax
cmp dword [0x42ad7c], 0
je 0x415d20
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
mov eax, dword [0x42ad7c]
push eax
call fcn.0040c2c4
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x415d20
cmp dword [ebp - 0x14], 0xc8
je 0x415cc7
cmp dword [ebp - 0x14], 0xcb
je 0x415cc7
cmp dword [ebp - 0x14], 0xce
je 0x415cc7
cmp dword [ebp - 0x14], 0x1a0
je 0x415cc7
xor ebx, ebx
jmp 0x415cc9
mov bl, 1
test bl, bl
je 0x415d20
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x42ad80
push 0x20000005
mov eax, dword [0x42ad7c]
push eax
call fcn.0040c2c4
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x415d20
cmp dword [ebp - 0x14], 0x1a0
jne 0x415d15
mov eax, dword [0x42ad88]
mov dword [0x42ad80], eax
jmp 0x415d20
mov eax, dword [0x42ad88]
add dword [0x42ad80], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415d4a
lea eax, [ebp - 0x18]
call fcn.00405894
lea eax, [ebp - 8]
mov edx, 2
call fcn.004058f4
ret
Function at 0x404f33
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf28
mov eax, dword [0x418718]
push ebx
push esi
push edi
push 0x41
pop ecx
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
push 0x40
mov byte [ebp - 0x314], bl
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
pop ecx
mov word [ebp - 0x108], bx
lea edi, [ebp - 0x106]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x314]
push eax
push ebx
call edi
mov dword [ebp - 0xf28], eax
push esi
lea eax, [ebp - 0x314]
push eax
push ebx
call edi
test eax, eax
jne 0x404fa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405193
cmp dword [ebp - 0xf28], esi
jne 0x404fb8
mov eax, 0xa1
jmp 0x405193
push ebx
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.0040c2eb
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0x401434
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404edb
lea eax, [ebp - 0x20c]
push eax
call fcn.00404c42
add esp, 0x30
test eax, eax
je 0x405144
push 0x40
pop ecx
xor eax, eax
mov word [ebp - 0x418], bx
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x401430
push 0x418070
push 0x418064
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x4050f4
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0x401428
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00404edb
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov ecx, eax
add esp, 0x18
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x405091
lea eax, [ebp - 0x108]
push eax
call fcn.00404c42
test eax, eax
pop ecx
jne 0x4050ed
mov esi, 0x400
push esi
lea eax, [ebp - 0xf24]
push eax
push 0x3e9
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xf24]
push eax
lea eax, [ebp - 0xb24]
push esi
push eax
call fcn.00404edb
lea eax, [ebp - 0xb24]
jmp 0x405180
xor eax, eax
jmp 0x405193
mov esi, 0x400
push esi
lea eax, [ebp - 0xb24]
push eax
push 0x3ef
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xb24]
push eax
lea eax, [ebp - 0xf24]
push esi
push eax
call fcn.00404edb
add esp, 0x10
push 0x30
push dword [ebp + 0x10]
lea eax, [ebp - 0xf24]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xd
jmp 0x405192
mov esi, 0x400
push esi
lea eax, [ebp - 0xb24]
push eax
push 0x3ee
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xb24]
push eax
lea eax, [ebp - 0xf24]
push esi
push eax
call fcn.00404edb
lea eax, [ebp - 0xf24]
add esp, 0x10
push 0x30
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040b9d1
leave
ret
Function at 0x408f91
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call dword [0x418060]
push 2
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [0x4182a4]
mov esi, eax
cmp esi, edi
mov dword [ebp - 4], esi
jne 0x408fee
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x408fd1
call esi
mov esi, eax
jmp 0x408fe1
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push edi
push edi
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
jmp 0x4090be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [0x4182b4]
mov ebx, eax
cmp ebx, edi
je 0x40900f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40903b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x409021
call esi
mov esi, eax
jmp 0x409031
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push edi
push edi
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
jmp 0x409090
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov eax, esi
je 0x409082
lea eax, [ebx + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0040c440
mov eax, esp
cmp eax, edi
jne 0x40906a
mov esi, 0x8007000e
jmp 0x409031
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebx], 0
xor edi, edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.00408e16
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp + 8]
push edi
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4090be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x409504
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4168dd
call fcn.0040c948
sub esp, 0x420
mov eax, dword [0x418718]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x418060]
xor ebx, ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4095ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov edi, 0x400
cmp esi, edi
jg 0x40958b
push esi
call fcn.004073f8
test al, al
pop ecx
je 0x40958b
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040c440
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x409597
push esi
lea ecx, [ebp - 0x420]
call fcn.00407d55
push dword [ebp - 0x41c]
push esi
push dword [ebp + 8]
push eax
call fcn.0040692b
cmp eax, ebx
jne 0x4095ce
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4095c4
lea ecx, [ebp - 0x418]
call fcn.00409703
mov esi, 0x8007000e
jmp 0x4096d7
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp - 0x41c], eax
jne 0x4095ee
call fcn.004074c3
mov esi, eax
jmp 0x4096be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x409618
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x424], eax
jne 0x409622
call fcn.004074c3
jmp 0x4096b0
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, edi
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
jbe 0x409653
push eax
lea ecx, [ebp - 0x418]
call fcn.0040970c
jmp 0x409664
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x409664
mov edi, dword [ebp - 0x418]
test edi, edi
mov dword [ebp - 4], 1
jne 0x40967c
mov esi, 0x8007000e
jmp 0x4096b2
mov esi, dword [ebp - 0x424]
push dword [ebp + 0x14]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x418]
mov byte [ebx + eax], 0
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0040972d
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4096d7
lea ecx, [ebp - 0x418]
call fcn.00409703
lea ecx, [ebp - 0x420]
call fcn.00407af8
mov eax, esi
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040b9d1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x5d0e90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x130000]
push edi
or ebp, 0xffffffff
jmp 0x5d0eb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5d0eb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d0ea8
mov eax, 1
add ebx, ebx
jne 0x5d0ecb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5d0edc
jne 0x5d0efb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d0efb
dec eax
add ebx, ebx
jne 0x5d0ee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5d0ec0
add ebx, ebx
jne 0x5d0ef7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5d0f4d
xor ecx, ecx
sub eax, 3
jb 0x5d0f13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5d0f82
sar eax, 1
mov ebp, eax
jmp 0x5d0f1e
add ebx, ebx
jne 0x5d0f1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d0eec
inc ecx
add ebx, ebx
jne 0x5d0f2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d0eec
add ebx, ebx
jne 0x5d0f39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5d0f2e
jne 0x5d0f4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5d0f2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5d0f6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5d0f5e
jmp 0x5d0eae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5d0f6c
add edi, ecx
jmp 0x5d0eae
pop esi
mov edi, esi
mov ecx, 0x9cd2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5d0f8a
cmp byte [edi], 0x19
jne 0x5d0f8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5d0f8f
lea edi, [esi + 0x1bf000]
mov eax, dword [edi]
or eax, eax
je 0x5d1007
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e2be0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e2db0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5d0fbc
mov ecx, edi
jns 0x5d0feb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e2db8]
or eax, eax
je 0x5d1001
mov dword [ebx], eax
add ebx, 4
jmp 0x5d0fd9
call dword [esi + 0x1e2db4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5d1038
cmp al, 0xef
ja 0x5d102b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5d100d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5d101a
mov ebp, dword [esi + 0x1e2dbc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5d106c
sub esp, 0xffffff80
jmp 0x505707
Function at 0x40d04b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40d05a
pop dword [ebp - 0xc]
mov eax, 0x6eda523b
sub eax, 0x6e9981e1
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x664019d9
add dword [ebp - 0x1c], 0xe8122b72
mov dword [ebp - 0x18], 0x5d69f6df
sub dword [ebp - 0x18], 0x2b36aa9a
mov dword [ebp - 0x14], 0x3dc33906
add dword [ebp - 0x14], 0xe890b28
mov dword [ebp - 0x10], 0x4ce581d7
add dword [ebp - 0x10], 0xb31a7e29
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xf39d5ab4
add dword [ebp - 0x1c], 0x80d50ea2
mov dword [ebp - 0x18], 0x2462f7cb
add dword [ebp - 0x18], 0x1d0969aa
mov dword [ebp - 0x14], 0x3297693b
sub dword [ebp - 0x14], 0xcf27fccf
mov dword [ebp - 0x10], 0x33aa2f2f
sub dword [ebp - 0x10], 0x33aa2f2f
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3732c
push 0
call eax
mov ecx, 0xdc621f1d
sub ecx, 0xdc61d923
mov ebx, eax
mov edx, 0x1e80c96e
sub edx, 0x1e3ed96e
add edx, dword [ebp - 0xc]
mov edi, 0x3cdbf34
add edi, 0xf55db0a7
sub dword [ebp - 8], edi
mov esi, dword [edx]
sub esi, edi
xor dword [ebp - 4], 0xa0b12a4a
mov dword [ebx], esi
mov dword [ebp - 8], 0xfb486208
add ebx, 4
add edx, 0x96dea66f
add edx, 0x69215995
loop 0x40d172
add eax, 0x8337986e
sub eax, 0x83368db3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb4589e77
sub ecx, 0xb4189e77
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4010d4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010e6
mov eax, dword [0x44108b]
shl eax, 2
mov dword [0x44108f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004050b8
pop edx
call fcn.00404454
call fcn.004050bc
push 0
call fcn.0040660c
pop ecx
push 0x441034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x441093], eax
push 0
jmp fcn.0040cd18

Function at 0x40161c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x490c21]
mov edx, dword [0x490c29]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x490c25]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x490c2d]
mov dword [0x4aad5c], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401760
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016cb
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401762
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405630
add esp, 0xc
test eax, eax
je 0x4016e5
xor eax, eax
jmp 0x401762
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40170e
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401762
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x49016c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x49016c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401759
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401762
mov eax, 1
jmp 0x401762
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401838
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
cmp dword [ebp + 0xc], 0
je 0x40185e
lea eax, [ebp - 0x458]
push eax
call fcn.004017a4
pop ecx
test eax, eax
jne 0x4018fe
push 0x400
push 0
lea edx, [ebp - 0x458]
push edx
call fcn.004053d8
add esp, 0xc
lea ecx, [ebp - 0x458]
push ecx
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3D.exe
lea eax, [ebp - 0x458]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0xf000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x4018b6
xor eax, eax
jmp 0x40197c
push ebx
push 0x4810a4
call fcn.0040f5f8
add esp, 8
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4018fe
push 0
lea eax, [ebp - 4]
push eax
push 0xf000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.004053d8
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.004053d8
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x40196c
xor eax, eax
jmp 0x40197c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret