joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494760
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x57449c]
xor edx, edx
cmp eax, edx
jne 0x494786
xor eax, eax
mov byte [eax + 0x57439c], al
inc eax
cmp eax, 0x100
jl 0x49476e
mov dword [0x57449c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x57439c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x494817
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4947ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4947b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x494820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x494873
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49485a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49b210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca45e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0049bb30
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x502024
call fcn.004ba4ec
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x49b2a3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ba4ec
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49b29c
push 0
mov ecx, eax
call fcn.004923a0
mov dword [esi + 0xc], eax
jmp 0x49b2a5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49b2a5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4bcb79
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bcbb1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bac06
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004babde
jmp 0x4bcbbd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4be267
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4be2a9
call fcn.004c4174
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4be2a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4be2a0
xor eax, eax
jmp 0x4be2b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004be2b7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c46a4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c46d2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c46f0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c460a
jmp 0x4c46f0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c46f0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c460a
test edi, edi
mov eax, edi
jne 0x4c46da
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6732772e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3ce95b43
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x417ba0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417bc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417bc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417bb8
mov eax, 1
add ebx, ebx
jne 0x417bdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417bd0
jne 0x417bec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bd0
xor ecx, ecx
sub eax, 3
jb 0x417c00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417c72
mov ebp, eax
add ebx, ebx
jne 0x417c0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417c18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417c3c
inc ecx
add ebx, ebx
jne 0x417c28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417c1d
jne 0x417c39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417c1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417c5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417c4d
jmp 0x417bbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417c5c
add edi, ecx
jmp 0x417bbe
pop esi
mov edi, esi
mov ecx, 0xf5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417c7a
cmp byte [edi], 5
jne 0x417c7a
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 0x417c7f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417cf7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417cac
mov ecx, edi
jns 0x417cdb
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 + 0x1784c]
or eax, eax
je 0x417cf1
mov dword [ebx], eax
add ebx, 4
jmp 0x417cc9
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x417d2b
sub esp, 0xffffff80
jmp 0x4076d1
Function at 0x4096c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x42c420], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x42c41c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x42c420], eax
cmp ecx, 0x26f
jl 0x4096d0
mov dword [0x415900], 0x270
ret

Function at 0x409710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x42b010]
cmp eax, dword [0x415420]
je 0x409728
mov dword [0x415900], 0x271
cmp dword [0x415900], 0x270
jl 0x409847
cmp dword [0x415900], 0x271
jne 0x40975f
mov eax, dword [0x42b010]
call fcn.004096c0
mov eax, dword [0x42b010]
not eax
mov dword [0x42b010], eax
mov dword [0x415420], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x42c424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x42c420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x42ca54]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x415910]
xor edx, eax
mov dword [ebx*4 + 0x42c420], edx
cmp ebx, 0xe2
jl 0x409768
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x42c424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x42c420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x42c094]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x415910]
xor edx, eax
mov dword [ebx*4 + 0x42c420], edx
cmp ebx, 0x26e
jl 0x4097bc
mov eax, dword [0x42cddc]
and eax, 0x80000000
mov edx, dword [0x42c420]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x42ca50]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x415910]
xor eax, edx
mov dword [0x42cddc], eax
mov dword [0x415900], 0
mov eax, dword [0x415900]
mov eax, dword [eax*4 + 0x42c420]
add dword [0x415900], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x40b2d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x415180]
cmp ax, 0xcb
je 0x40b3cc
cmp ax, 0xcc
je 0x40b3cc
mov edx, dword [0x42d030]
test edx, edx
je 0x40b302
mov eax, dword [0x42ced0]
call edx
mov ebx, eax
jmp 0x40b307
mov ebx, 0x42ced4
cmp word [0x42cec0], 0
jle 0x40b32a
mov eax, 0x42cea0
call fcn.0040b540
mov eax, ebx
call fcn.0040aeb0
mov eax, ebx
call fcn.0040af20
mov edi, dword [ebx]
jmp 0x40b34a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40b345
mov edx, edi
mov eax, ebx
call fcn.0040a380
jmp 0x40b348
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40b330
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x42cec0], 0
jle 0x40b3cc
mov edx, 0x42cde0
mov eax, ebx
call fcn.0040a4b0
mov edi, eax
test edi, edi
je 0x40b39f
mov eax, dword [0x42ce74]
mov dword [edi + 0xc], eax
cmp dword [0x42ce74], 0
je 0x40b394
mov eax, dword [0x42ce74]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x42ce74], eax
sub word [0x42cec0], 1
cmp word [0x42cec0], 0
sete bl
mov eax, 0x42cea0
call fcn.0040b550
test bl, bl
je 0x40b3cc
mov eax, 0x42cea0
call fcn.0040b530
pop edi
pop esi
pop ebx
ret
Function at 0x40e8f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], 0x80
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x40
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40ea75
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40ea69
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40e9cc
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40ea69
mov eax, ebx
and eax, 0x20000000
je 0x40e9de
mov dword [ebp - 0x68], 1
jmp 0x40e9e5
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40e9f7
mov dword [ebp - 0x64], 1
jmp 0x40e9fe
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40ea10
mov dword [ebp - 0x60], 1
jmp 0x40ea17
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40ea29
mov dword [ebp - 0x5c], 1
jmp 0x40ea30
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40ea56
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 4]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40e974
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ec5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00410d16
lea ecx, [ebp - 0x18]
call fcn.00410d16
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00415100
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 0x401f17
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x401f24
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x401f36
or dword [ebp - 0x50], 0x100
mov eax, dword [0x4241e8]
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.00403187
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004111b8
cmp dword [ebp - 8], edi
jne 0x401f81
push dword [ebp - 0x18]
call fcn.00414ea0
push dword [ebp - 0xc]
call fcn.00414ea0
xor eax, eax
inc eax
jmp 0x401fc8
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 0x401fb6
cmp esi, edi
jne 0x401faa
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 fcn.00414ea0
push dword [ebp - 0xc]
call fcn.00414ea0
mov eax, edi
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x402820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.00402407
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40266e
push edi
push edi
mov dword [0x4241dc], esi
mov dword [0x4241e4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4241e0], eax
cmp eax, edi
je 0x40287b
cmp dword [0x42422c], 2
je 0x40286d
call fcn.0040960e
mov eax, dword [0x4241e0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4241e0]
mov ecx, dword [0x4241e4]
mov dword [0x424384], edi
cmp ecx, edi
je 0x4028c1
cmp ecx, 1
je 0x4028b5
cmp ecx, 2
je 0x4028b1
cmp ecx, 3
je 0x4028ad
cmp ecx, 0x67
jle 0x4028a8
cmp ecx, 0x6b
jle 0x40292a
push ecx
push 0x14
jmp 0x4028fb
push 0x12
jmp 0x4028b7
push 0x13
jmp 0x4028b7
push 0x11
push edi
call fcn.0040988e
pop ecx
pop ecx
jmp 0x40292a
mov dword [ebp + 8], edi
cmp dword [0x42438c], edi
jne 0x40292a
cmp eax, edi
je 0x4028e8
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4028e8
cmp dword [ebp + 8], edi
jne 0x4028e8
xor eax, eax
jmp 0x40292f
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x4028fe
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402922
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x402914
cmp dword [0x424230], 0xffffffff
je 0x40292a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.0040988e
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40323c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x403227
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40323f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40323c
test al, 0x10
jne 0x40323c
push esi
jmp 0x40321d
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x403a52
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 [0x4230c0], ebx
je 0x403a85
mov eax, 0x4230c0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x403a85
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x4230c0]
cmp dword [eax], ebx
jne 0x403a6e
shl esi, 4
cmp dword [esi + 0x4230c0], ebx
jne 0x403a9a
mov eax, 0x41d940
jmp 0x403c0d
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 0x403b4a
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 fcn.00414f24
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 0x403b41
call edi
test eax, eax
jne 0x403b41
mov eax, dword [esi + 0x4230cc]
test eax, eax
je 0x403b36
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403b33
push dword [esi + 0x4230cc]
call fcn.00414ea0
mov dword [esi + 0x4230cc], edi
jmp 0x403b49
push edi
jmp 0x403b44
mov eax, dword [ebp - 8]
mov dword [esi + 0x4230cc], eax
jmp 0x403b4a
push dword [ebp - 8]
call fcn.00414ea0
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4230cc]
test eax, eax
jne 0x403c0c
mov ebx, dword [esi + 0x4230c4]
cmp dword [esi + 0x4230c8], eax
je 0x403b82
call fcn.004039f7
cmp eax, dword [0x41e878]
jne 0x403b82
mov ebx, dword [esi + 0x4230c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414f24
cmp dword [0x423088], 0xffffffff
pop ecx
mov dword [esi + 0x4230cc], eax
jne 0x403bec
and dword [0x423088], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x4241ec]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403bec
lea eax, [ebp - 0xa4]
push eax
call fcn.004150de
pop ecx
mov dword [0x423088], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x4230cc]
push edi
push ebx
push 0
push dword [0x423088]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4230cc]
pop edi
pop esi
pop ebx
leave
ret