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

Disassembly:
cmp ecx, dword [0x48d744]
jne 0x44ab6c
repz ret
jmp fcn.004548ea

Function at 0x45cbaf
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 0x45cbd6
call fcn.0044bac7
mov dword [eax], esi
call fcn.0044bab4
push 0x16
pop esi
mov dword [eax], esi
call fcn.0045596e
mov eax, esi
jmp 0x45cc2b
test dword [ebp + 0xc], 0xfffffff9
jne 0x45cbbc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45cc03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044bada
pop ecx
call fcn.0044bab4
mov eax, dword [eax]
jmp 0x45cc2b
test al, 0x10
jne 0x45cc29
test al, 1
je 0x45cc29
test byte [ebp + 0xc], 2
je 0x45cc29
call fcn.0044bac7
mov dword [eax], 5
call fcn.0044bab4
mov dword [eax], 0xd
jmp 0x45cbfa
xor eax, eax
pop esi
pop ebp
ret
Function at 0x45f524
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48d744]
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.004540c4
and dword [ebp - 0x14], 0
cmp dword [0x48fd90], 0
mov dword [ebp - 0x18], eax
jne 0x45f5d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45f67f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45f67f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48fd90], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48fd94], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48fd98], eax
call edi
push eax
call esi
mov dword [0x48fda0], eax
test eax, eax
je 0x45f5d7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48fd9c], eax
mov eax, dword [0x48fd9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45f630
cmp dword [0x48fda0], ecx
je 0x45f630
push eax
call esi
push dword [0x48fda0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45f630
test ebx, ebx
je 0x45f630
call edi
test eax, eax
je 0x45f627
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45f627
test byte [ebp - 8], 1
jne 0x45f630
or dword [ebp + 0x10], 0x200000
jmp 0x45f663
mov eax, dword [0x48fd94]
cmp eax, dword [ebp - 0x18]
je 0x45f663
push eax
call esi
test eax, eax
je 0x45f663
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45f663
mov eax, dword [0x48fd98]
cmp eax, dword [ebp - 0x18]
je 0x45f663
push eax
call esi
test eax, eax
je 0x45f663
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48fd90]
call esi
test eax, eax
je 0x45f67f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45f681
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ab62
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x20ff008], 0x8088405
inc edx
mov dword [ebx + 0x20ff008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x20e354a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x20e3551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x20e48af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x210154c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x210154c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x2100378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x20e48b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x405ef7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1274], 0
push esi
jne 0x405f2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f08
mov dword [ecx*4 + 0x7a1270], eax
inc ecx
cmp ecx, 0x100
jl 0x405f03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1270]
xor eax, esi
inc ecx
dec edx
jne 0x405f41
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0xb636e0d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x44541e95
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x4dc4ae
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword [esi]
mov al, byte [0x4652e2a9]
mov ebp, 0xe4d626f6
cmc
movsb byte es:[edi], byte [esi]
or dword [eax + 0x7ff5d4be], 0xffffffb3
xor dword [ecx - 0xc], eax
dec ebx
add dh, byte [ecx - 0x67]
jne fcn.004dc4ae
push esi
fild qword [ebx]
sbb ebp, esp
mov dl, 0x9f
salc
insb byte es:[edi], dx
loope 0x4dc4d5
invalid
jle 0x4dc4db
invalid
adc eax, 0x326515a8
and ax, 0x78fc
push eax
pushfd
jmp 0x99b7ee98

Function at 0x54787e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc032df01
cmpsd dword [esi], dword es:[edi]
in al, 0x63
in al, dx
add bh, byte [eax]
and edi, dword [ecx + 0x1b447361]
cdq
mov ecx, 0xe47e0ab3
cdq
push ss
adc byte [edi - 0x397515ec], bh
ja 0x54787d
push 0xffffffffffffffc5
adc bl, bl
inc ecx
mov byte [eax - 0x445da651], 0x99
sar dword [eax - 0x7c], 0xbd
jno 0x54789c
mov eax, 0xc9d55a2f
daa
movsb byte es:[edi], byte [esi]
sbb bh, ch
enter 0x17db, 0x70
mov edx, 0xdda020bb
sal dword [ecx - 0x454e7fa6], cl
int 0x67
or edi, dword [eax]
sbb eax, dword [esi - 0x7bd353a]
inc edx
clc
invalid
ja 0x5478d2
push ebx
adc al, 0xc
add edx, 0x127a5be6
fmul qword [ebx + esi*8 - 0x3f]
mov dh, 1
wait
aas
pop es
pushal
je 0x547874
cwde
jns 0x547821
pushfd
pop ebx
ret
adc bl, byte [ebx]
ror byte [ebx + 0x845bc5a], 1
and bh, cl
sal byte [0x3bb4d550], cl
xor ebx, dword [ebx]
out 0x94, eax
mov esi, 0x5b9a3b88
in eax, dx
adc byte [ebx + 0x28c59bfa], cl
arpl si, bx
clc
or dword [edi + edi*8], esi
loopne 0x5478a3
or byte [eax], ah
iretd
in eax, dx
cmp esi, dword [edx + 0x2b]
mov edi, 0x70b830eb
push esi
imul ebx, ebp, 0xa7448d13
inc esp
cmpsd dword [esi], dword es:[edi]
inc ecx
dec eax
or eax, 0x1d5ac0ef
push 0xfffffffffffffffd
aad 0xb0
int3
Function at 0x401024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x422740]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40105d
cmp word [0x422742], bx
je 0x40104b
call eax
mov dword [0x422740], eax
push eax
call fcn.00402f87
push eax
call fcn.00408f12
pop ecx
jmp 0x4010f0
push 0x27
call fcn.00402f87
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x4010c1
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40108a
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010e4
push ebx
push 3
call fcn.00402f87
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010f1
lea eax, [ebp - 0x904]
push eax
call fcn.00408f12
pop ecx
call fcn.00404f69
push 0xa
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x40121c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00414115
lea ecx, [ebp - 0x18]
call fcn.00414115
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
test byte [ebp + 0xc], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
je 0x40126e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x40127b
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x40128d
or dword [ebp - 0x50], 0x100
mov eax, dword [0x422760]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004026de
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00414531
cmp dword [ebp - 8], edi
jne 0x4012d8
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40131f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40130d
cmp esi, edi
jne 0x401301
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x401d4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.00401ae1
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00414531
push 0x5c
mov ecx, edi
call fcn.0040119e
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401c4f
push edi
push edi
mov dword [0x422744], esi
mov dword [0x42274c], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [0x422748], eax
je 0x401dc0
cmp dword [0x4227b0], 2
je 0x401db2
call fcn.00408e80
mov eax, dword [0x422748]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x422748]
mov ecx, dword [0x42274c]
cmp ecx, edi
mov dword [0x422878], edi
je 0x401e06
cmp ecx, 1
je 0x401dfa
cmp ecx, 2
je 0x401df6
cmp ecx, 3
je 0x401df2
cmp ecx, 0x67
jle 0x401ded
cmp ecx, 0x6b
jle 0x401e6f
push ecx
push 0x14
jmp 0x401e40
push 0x12
jmp 0x401dfc
push 0x13
jmp 0x401dfc
push 0x11
push edi
call fcn.00408ff6
pop ecx
pop ecx
jmp 0x401e6f
cmp dword [0x422880], edi
mov dword [ebp + 8], edi
jne 0x401e6f
cmp eax, edi
je 0x401e2d
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x401e2d
cmp dword [ebp + 8], edi
jne 0x401e2d
xor eax, eax
jmp 0x401e74
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x401e43
push dword [ebp + 8]
push 0x21
push edi
jmp 0x401e67
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x401e59
cmp dword [0x4227b4], 0xffffffff
je 0x401e6f
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408ff6
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x40274d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x40278e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x402778
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40278e
test al, 0x10
jne 0x40278e
push esi
jmp 0x40276e
xor eax, eax
inc eax
pop esi
ret
Function at 0x402bcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
movzx ecx, word [0x422764]
mov esi, dword [sym.imp.KERNEL32.DLL_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
test ebx, ebx
mov edi, 0x409
jne 0x402c14
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x402c3e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x402c27
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x402c3e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x402ca8
cmp dword [0x422774], 0
jne 0x402ca6
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x422778]
mov dword [0x422774], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x422764]
push edi
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x402c9c
push str.SetThreadPreferredUILanguages
push dword [0x422778]
call esi
mov ebx, eax
test ebx, ebx
je 0x402ca6
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f87
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x4220b8], ebx
je 0x402fba
mov eax, 0x4220b8
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x402fba
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x4220b8]
cmp dword [eax], ebx
jne 0x402fa3
shl esi, 4
cmp dword [esi + 0x4220b8], ebx
jne 0x402fcf
mov eax, 0x41d64c
jmp 0x403141
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40307f
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x403076
call edi
test eax, eax
jne 0x403076
mov eax, dword [esi + 0x4220c4]
test eax, eax
je 0x40306b
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x403068
push dword [esi + 0x4220c4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x4220c4], edi
jmp 0x40307e
push edi
jmp 0x403079
mov eax, dword [ebp - 8]
mov dword [esi + 0x4220c4], eax
jmp 0x40307f
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [esi + 0x4220c4]
test eax, eax
jne 0x403140
mov ebx, dword [esi + 0x4220bc]
lea edi, [esi + 0x4220c0]
cmp dword [edi], eax
je 0x4030b5
call fcn.00402f31
cmp eax, dword [0x41e5f0]
jne 0x4030b5
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x422084], 0xffffffff
pop ecx
mov dword [esi + 0x4220c4], eax
jne 0x403120
and dword [0x422084], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x422764]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x403120
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x422084], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x4220c4]
push edi
push ebx
push 0
push dword [0x422084]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x4220c4]
pop edi
pop esi
pop ebx
leave
ret