joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035cb
Capabilities:
Terminate process

Disassembly:
jmp 0x45b3e4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45b3f5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058a3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036f2
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a2af1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a2b02
pop esi
ret
push ebx
push edi
push esi
call fcn.004a29d8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f9e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a2b2a
push ebx
push esi
push edi
call fcn.00405691
add esp, 0xc
push 0
call fcn.004061db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40574f
Capabilities:
Parse pe header

Disassembly:
jmp 0x44a677
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44a6b6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a6b6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a6b6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44a6b6
cmp dword [ecx + 0x74], 0xe
jbe 0x44a6b6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x448146
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403751
mov eax, dword [eax + 0x14]
test eax, eax
je 0x448189
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x448189
sub eax, 1
je 0x448184
sub eax, 1
je 0x448180
xor eax, eax
leave
ret
push 3
jmp 0x44818b
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48e85b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48e89a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48e89a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48e89a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48e89a
cmp dword [ecx + 0x74], 0xe
jbe 0x48e89a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x499c87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d84
mov eax, dword [0x4d4040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405df8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x499cc9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x499e25
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f4c
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d7958]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403256
mov ecx, dword [esi*4 + 0x4d7958]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x499e1e
cmp eax, dword [ecx + edi + 0x24]
jne 0x499e1e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x499e1e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403256
add esp, 0x14
test edx, edx
jl 0x499e1e
jg 0x499d94
test eax, eax
jb 0x499e1e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x499e1e
jl 0x499dae
cmp dword [ebp - 0x1008], eax
ja 0x499e1e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x499dcc
test ebx, ebx
je 0x499e05
cmp ecx, edi
jae 0x499e05
mov al, byte [ecx]
cmp al, 0xd
jne 0x499de6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x499df2
cmp byte [ecx + 1], 0xa
jne 0x499df2
inc ecx
jmp 0x499df2
movzx eax, al
movsx eax, byte [eax + 0x4d43a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x499dcc
cmp edx, ebx
jne 0x499dcc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x499e23
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303a
leave
ret
Function at 0x49a564
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d7958]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49a5a4
cmp byte [ebx], 0xa
jne 0x49a5a4
or byte [edi + eax + 0x28], 4
jmp 0x49a5a9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49a6a8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49a68b
inc eax
cmp dl, 0xd
je 0x49a5d5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49a5fb
cmp eax, ecx
jae 0x49a609
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49a5bd
jmp 0x49a6a8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49a686
cmp dword [ebp - 0x10], 0
je 0x49a686
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d7958]
test byte [eax + edi + 0x28], 0x48
je 0x49a660
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49a64b
mov byte [esi], dl
jmp 0x49a65c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d7958]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49a6a8
cmp byte [ebp - 1], 0xa
jne 0x49a66f
cmp esi, ebx
jne 0x49a66f
mov byte [esi], 0xa
jmp 0x49a6a7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040191f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49a6a8
mov byte [esi], 0xd
jmp 0x49a6a7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d7958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49a6a5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49a6a8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49a704
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d7958]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49a74a
cmp word [ebx], dx
jne 0x49a74a
or byte [eax + edi + 0x28], 4
jmp 0x49a74f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x49a8b2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x49a892
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49a790
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49a7c6
cmp eax, edx
jae 0x49a7d4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49a76b
jmp 0x49a8b2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49a88d
cmp dword [ebp - 0x18], 0
je 0x49a88d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d7958]
test byte [eax + edi + 0x28], 0x48
je 0x49a863
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x49a827
mov word [esi], cx
jmp 0x49a85e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d7958]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d7958]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d7958]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49a8b2
pop eax
cmp word [ebp - 4], ax
jne 0x49a873
cmp esi, ebx
jne 0x49a873
mov word [esi], ax
jmp 0x49a8af
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040191f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49a8b2
push 0xd
pop eax
jmp 0x49a86e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d7958]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49a8ac
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49a8b2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a10a7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d4040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a10f2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a155f
test al, al
jne 0x4a10ec
sub edx, 2
cmp edx, edi
jne 0x4a10d2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a1114
lea eax, [edi + 2]
cmp edx, eax
je 0x4a1114
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a0ca0
add esp, 0x10
jmp 0x4a120e
push esi
lea ecx, [ebp - 0x255]
call fcn.004a155f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a1157
push dword [ebp - 0x25c]
jmp 0x4a1104
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a1194
cmp word [ebp - 0x226], 0
je 0x4a11b5
cmp word [ebp - 0x226], ax
jne 0x4a1194
cmp word [ebp - 0x224], 0
je 0x4a11b5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a0ca0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a1201
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a116e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a11e9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a120e
push 0x4a0688
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054ed
add esp, 0x10
jmp 0x4a11de
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040303a
leave
ret

Function at 0x4a6b70
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004042b4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a6bdf
cmp esi, dword [ebp - 4]
je 0x4a6bda
cmp dword [ebp + 0xc], 0
je 0x4a6bda
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a6bb7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a6598
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a6be1
xor eax, eax
inc eax
jmp 0x4a6be1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401cf6
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040dc00
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401d21
push dword [0x416ff4]
call fcn.004053c1
and eax, eax
je 0x401d21
push dword [0x416ff4]
call fcn.00405430
call fcn.0040365c
push dword [0x417040]
call fcn.0040a3c4
push dword [0x417060]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [0x417048]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011a5

Function at 0x401d59
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x16
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401d60
call fcn.0040dc00
mov edx, dword [esp + 0x64]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x68]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 8]
call fcn.00405060
mov edx, dword [0x417040]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
lea eax, [esp + 0x10]
push eax
call fcn.0040db00
push dword [esp + 0xc]
call sub.SHLWAPI.DLL_PathQuoteSpacesW
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
mov edx, 0x416026
push edx
call fcn.0040dc60
mov edx, dword [esp + 0x14]
push edx
call fcn.0040dc60
mov edx, 0x416026
push edx
call fcn.0040dc60
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dc60
lea eax, [esp + 0xc]
push eax
call fcn.0040db00
lea eax, [esp + 0x14]
lea ebp, [esp + 0x14]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, str.open
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0x14]
push eax
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [esp + 0x50], eax
push 0x19
call fcn.0040552c
lea eax, [esp + 0x54]
push eax
lea ebp, [esp + 0x18]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x401e81
mov ebx, dword [esp + 0x54]
cmp ebx, 0x103
je 0x401e81
jmp 0x401e83
jmp 0x401e54
mov eax, dword [esp + 0x54]
jmp 0x401e8b
push dword [esp + 0x10]
call fcn.0040db90
push dword [esp]
call fcn.0040db90
push dword [esp + 4]
call fcn.0040db90
push dword [esp + 0xc]
call fcn.0040db90
push dword [esp + 8]
call fcn.0040db90
add esp, 0x58
pop ebx
pop ebp
ret 0xc
Function at 0x401ef4
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040dc00
mov eax, 0x416104
mov dword [0x41700c], eax
mov dword [esp], 0
jmp 0x401f15
mov eax, 3
cmp eax, dword [esp]
jl 0x401f83
mov eax, dword [0x41700c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41700c]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405f10
lea eax, [esp + 0xc]
push eax
call fcn.0040db00
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dc60
lea eax, [esp + 0x10]
push eax
call fcn.0040db00
inc dword [esp]
jno 0x401f15
push 0x400
call fcn.004097e0
mov dword [esp + 0x10], eax
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
call fcn.0040a3d2
lea eax, [esp + 0x18]
push eax
call fcn.0040db00
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409800
lea eax, [0x417048]
push eax
call fcn.0040db00
push dword [0x417048]
call fcn.0040a3c4
push dword [0x417048]
call fcn.0040a305
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [0x417048]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409800
lea eax, [0x417060]
push eax
call fcn.0040db00
push dword [0x417060]
call fcn.0040a3c4
push dword [0x417060]
call fcn.0040a305
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [0x417060]
call sub.KERNEL32.dll_GetTempFileNameW
push dword [0x417060]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409800
lea eax, [0x417040]
push eax
call fcn.0040db00
push dword [0x417040]
call fcn.0040a3c4
push dword [esp + 0xc]
push dword [0x417040]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
call fcn.004097c0
jmp 0x4020c9
push dword [esp + 0xc]
call fcn.0040db90
push dword [esp + 0x14]
call fcn.0040db90
push dword [esp + 8]
call fcn.0040db90
add esp, 0x18
pop ebx
ret
Function at 0x40259b
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4025a1
call fcn.0040dc00
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4160c3
mov dword [0x41700c], eax
mov dword [esp], 0
jmp 0x4025cf
mov eax, 6
cmp eax, dword [esp]
jl 0x40263d
mov eax, dword [0x41700c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41700c]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405f10
lea eax, [esp + 0xc]
push eax
call fcn.0040db00
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dc60
lea eax, [esp + 0x10]
push eax
call fcn.0040db00
inc dword [esp]
jno 0x4025cf
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
call sub.KERNEL32.dll_GetCommandLineW
push eax
call fcn.00409800
lea eax, [esp + 0x14]
push eax
call fcn.0040db00
mov edx, dword [esp + 0x10]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
lea eax, [esp + 0x18]
push eax
call fcn.0040db00
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405d60
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x4026fb
push edx
call fcn.0040dac0
pop edx
push eax
mov edx, 0x416026
push edx
call fcn.0040dc60
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.004060b0
call fcn.00405182
add dword [esp], edx
call fcn.00406000
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040db00
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.00409500
mov edx, dword [esp + 0x20]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x402730
push dword [esp + 0x14]
call fcn.0040db90
push dword [esp + 8]
call fcn.0040db90
push dword [esp + 0x10]
call fcn.0040db90
push dword [esp + 0xc]
call fcn.0040db90
push dword [esp + 0x20]
call fcn.0040db90
add esp, 0x24
pop ebx
ret

Function at 0x402762
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040dc00
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x416ffc], eax
push dword [0x416ffc]
call fcn.004097e0
mov dword [esp + 4], eax
push dword [0x416ffc]
push dword [esp + 8]
push dword [esp + 8]
call fcn.004098c0
push dword [esp]
call sub.KERNEL32.dll_FreeResource
mov eax, dword [esp + 4]
jmp 0x4027bf
add esp, 8
ret 8
Function at 0x402ed5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402edb
call fcn.0040dc00
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402f07
mov eax, 1
jmp 0x402f09
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x403400
Capabilities:
Get common file path

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403406
call fcn.0040dc00
push dword [esp + 0x2c]
call fcn.004051a0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00405060
call fcn.00402ed5
and eax, eax
je 0x403456
call fcn.00405594
mov ebx, eax
cmp ebx, 0x41
je 0x403456
mov eax, 1
jmp 0x403458
xor eax, eax
and eax, eax
je 0x4035c6
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040db00
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetWindowsDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
mov edx, str.sysnative
push edx
call fcn.0040dc60
lea eax, [esp + 0xc]
push eax
call fcn.0040db00
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
mov edx, dword [esp + 4]
push edx
call fcn.0040dc60
lea eax, [esp + 0x10]
push eax
call fcn.0040db00
mov edx, dword [esp + 8]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
mov edx, dword [esp + 4]
push edx
call fcn.0040dc60
mov edx, dword [esp + 8]
push edx
call fcn.0040dc60
lea eax, [esp + 0x14]
push eax
call fcn.0040db00
push dword [esp + 0xc]
push 0
call fcn.0040aa00
and eax, eax
je 0x403547
mov dword [esp + 0x14], 1
push 0
call fcn.0040a610
jmp 0x40354f
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
push 0
call fcn.0040aa00
and eax, eax
je 0x403575
mov dword [esp + 0x18], 1
push 0
call fcn.0040a610
jmp 0x40357d
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x4035c4
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040db00
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
jmp 0x403601
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dac0
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040db00
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040dac0
pop edx
push eax
push edx
call fcn.0040dc60
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x403629
push dword [esp + 0x10]
call fcn.0040db90
push dword [esp]
call fcn.0040db90
push dword [esp + 4]
call fcn.0040db90
push dword [esp + 8]
call fcn.0040db90
push dword [esp + 0xc]
call fcn.0040db90
add esp, 0x1c
pop ebx
ret 8