joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ccc50
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1012ecc8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100ccc90
cmp byte [ebx], 0xa
jne 0x100ccc90
or byte [eax + edi + 0x28], 4
jmp 0x100ccc95
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100ccd93
mov al, byte [edx]
cmp al, 0x1a
je 0x100ccd75
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100cccc4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100ccce9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100cccf3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100ccca6
jmp 0x100ccd93
push 0
lea eax, [ebp - 0xc]
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 0x100ccd70
cmp dword [ebp - 0xc], 0
je 0x100ccd70
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1012ecc8]
test byte [eax + edi + 0x28], 0x48
je 0x100ccd4a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ccd35
mov byte [esi], dl
jmp 0x100ccd46
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1012ecc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100ccd93
cmp byte [ebp - 1], 0xa
jne 0x100ccd59
cmp esi, ebx
jne 0x100ccd59
mov byte [esi], 0xa
jmp 0x100ccd92
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100ccbf2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100ccd93
mov byte [esi], 0xd
jmp 0x100ccd92
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1012ecc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ccd8f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ccd93
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ccd9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1012ecc8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100ccddf
cmp word [esi], dx
jne 0x100ccddf
or byte [edi + eax + 0x28], 4
jmp 0x100ccde4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100ccf37
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100ccf17
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100cce26
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100cce5c
cmp eax, edx
jae 0x100cce68
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100ccdfe
jmp 0x100ccf37
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ccf13
cmp dword [ebp - 0x14], 0
je 0x100ccf13
mov eax, dword [ebx*4 + 0x1012ecc8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100cceeb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100cceb4
mov word [esi], cx
jmp 0x100ccee7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1012ecc8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1012ecc8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1012ecc8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100ccf37
pop ebx
cmp word [ebp - 4], bx
jne 0x100ccefc
cmp esi, dword [ebp + 0xc]
jne 0x100ccefc
mov word [esi], bx
jmp 0x100ccf34
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100ccbf2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100ccf37
push 0xd
jmp 0x100ccf30
mov ecx, dword [ebx*4 + 0x1012ecc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ccf2e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ccf37
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100cdab1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100eba10
push 0x100eba08
push str.FlsAlloc
push 0x1e
call fcn.100cd89e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cdae5
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e62c0]
call esi
jmp 0x100cdaeb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100cdb2f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100eba20
push 0x100eba18
push str.FlsGetValue
push 0x20
call fcn.100cd89e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cdb66
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e62c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100d231c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100d23b9
push ebx
push esi
call fcn.100d22e5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100d0b2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d2366
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d23b8
push edi
push eax
call fcn.100c8faa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d2386
call fcn.100c8f70
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d23b7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d0b2c
add esp, 0x20
test eax, eax
jne 0x100d23a5
push edi
call fcn.100c8f70
jmp 0x100d23ad
push ebx
call fcn.100c8f70
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100d23bc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d23cd
pop esi
ret
push ebx
push edi
push esi
call fcn.100d22e5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100c8faa
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d23f5
push ebx
push esi
push edi
call fcn.100b24b0
add esp, 0xc
push 0
call fcn.100c8f70
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d27b9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d240a
Function at 0x100d8c41
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100d8bbd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100d8db9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100d8db9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100d8d68
jg 0x100d8c9a
test eax, eax
je 0x100d8d5e
push 1
push 0x1000
call fcn.100cb650
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100d8cc0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100d8d55
push 0x8000
push ebx
call fcn.100d8aee
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100d8cec
jg 0x100d8ce7
cmp ecx, 0x1000
jb 0x100d8cec
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100cc7ab
add esp, 0x10
cmp eax, 0xffffffff
je 0x100d8d31
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100d8ce7
jl 0x100d8d18
test ecx, ecx
jne 0x100d8cd9
push dword [ebp - 0xc]
push ebx
call fcn.100d8aee
push esi
call fcn.100c8f70
add esp, 0xc
xor edi, edi
jmp 0x100d8dca
cmp byte [edi + 0x24], 0
je 0x100d8d48
cmp dword [edi + 0x20], 5
jne 0x100d8d48
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100d8d53
mov edi, dword [edi + 0x18]
jmp 0x100d8d55
xor edi, edi
push esi
call fcn.100c8f70
pop ecx
jmp 0x100d8dca
test ecx, ecx
jg 0x100d8d2a
jl 0x100d8d68
test eax, eax
jae 0x100d8d2a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ccbf2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100d8d8b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100d8d2a
jmp 0x100d8dc2
push ebx
call fcn.100d68da
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100d8d2a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100d8dca
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100d8dc7
mov edi, dword [edi + 0x18]
jmp 0x100d8dca
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100ccbf2
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10050da2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8abc0ab
stosd dword es:[edi], eax
shr byte [ebx - 0x541f5428], 1
call 0x8b0fe5e
stosd dword es:[edi], eax
add byte [eax + ecx + 0x18ac10ac], ch
lodsb al, byte [esi]
and byte [eax + ebp + 0x38ac30ac], ch
lodsb al, byte [esi]
inc eax
lodsb al, byte [esi]
dec eax
lodsb al, byte [esi]
push eax
lodsb al, byte [esi]
pop eax
lodsb al, byte [esi]
pushal
lodsb al, byte [esi]
push 0x78ac70ac
lodsb al, byte [esi]
sub byte [eax + ecx*4 - 0x67536f54], 0xac
mov al, byte [0xb0aca8ac]
lodsb al, byte [esi]
mov eax, 0xc8acc0ac
lodsb al, byte [esi]
shr byte [eax + ebx*8 - 0x17531f54], 1
lodsb al, byte [esi]
invalid
Function at 0x401ec8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x401ee8
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x401ef1
cmp byte [ebx], 0
jne 0x401ef5
xor eax, eax
jmp 0x401f74
xor esi, esi
jmp 0x401f36
inc ebx
xor ecx, ecx
mov cl, al
cmp ecx, 0x3d
jne 0x401f1d
cmp dword [ebp - 4], 0
je 0x401f1d
test esi, esi
jne 0x401f1d
cmp dword [ebp + 8], 0
je 0x401f19
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x401f36
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x401f2b
cmp ecx, 0xa
jne 0x401f33
cmp ecx, 0xd
jne 0x401f3c
inc ebx
jmp 0x401f3c
mov byte [edx], al
inc edx
mov al, byte [ebx]
test al, al
jne 0x401ef9
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x401f72
mov edx, dword [ebp - 4]
test esi, esi
mov byte [edx], 0
je 0x401f72
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040c44c
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401f7c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xfffff7c0
mov esi, eax
mov al, byte [0x41336c]
test al, al
mov byte [esp], dl
je 0x401fb3
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x401fa7
mov edx, 0x4121dd
mov eax, esi
call fcn.0040c520
mov edx, 0x41336c
mov eax, esi
call fcn.0040c520
lea eax, [esp + 4]
mov ecx, 0x3c
xor edx, edx
call fcn.0040c34c
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x5c0
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x401fe1
lea edx, [esi + 1]
jmp 0x401fe3
mov edx, esi
mov dword [esp + 0x14], edx
xor eax, eax
jmp 0x402036
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40200d
jmp 0x402006
xor edx, edx
mov dl, byte [esi + eax]
cmp edx, 0x22
jne 0x402006
mov byte [esi + eax], 0x20
jmp 0x40200d
inc eax
cmp byte [esi + eax], 0
jne 0x401ff6
xor edx, edx
mov dl, byte [esi + eax]
cmp edx, 0x20
je 0x402022
xor ecx, ecx
mov cl, byte [esi + eax + 1]
cmp ecx, 0x2f
jne 0x402035
cmp edx, 0x20
jne 0x40202b
mov byte [esi + eax], 0
lea eax, [eax + esi + 1]
mov dword [esp + 0x18], eax
jmp 0x40203d
inc eax
mov dl, byte [esi + eax]
test dl, dl
jne 0x401feb
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x14]
call fcn.0040c3cc
cmp eax, 4
jle 0x402070
mov edx, str..inf
add eax, dword [esp + 0x14]
add eax, 0xfffffffc
call fcn.0040c4d4
test eax, eax
jne 0x402070
mov dword [esp + 0x10], str.Install
xor edx, edx
mov eax, dword [esp + 0x14]
call fcn.0040552c
mov ebx, eax
test bl, bl
je 0x402096
lea edx, [esp + 0x40]
mov eax, dword [esp + 0x14]
call fcn.004055cc
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], ecx
cmp byte [esp], 0
je 0x4020d7
test bl, bl
jne 0x4020d7
lea eax, [esp + 0x440]
mov edx, dword [esp + 0x14]
call fcn.0040c44c
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040c520
lea eax, [esp + 0x440]
xor edx, edx
call fcn.0040552c
test al, al
je 0x402165
lea ecx, [esp + 4]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40210b
and dword [esp + 8], 0xfffffbff
mov dword [esp + 0x14], esi
lea edx, [esp + 4]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402165
cmp byte [0x412041], 0
jne 0x40211e
cmp byte [esp], 0
je 0x402129
push 0xffffffffffffffff
push dword [esp + 0x40]
call sub.KERNEL32.DLL_WaitForSingleObject
push dword [esp + 0x3c]
call sub.KERNEL32.DLL_CloseHandle
cmp byte [0x412041], 0
je 0x40214d
cmp byte [esp], 0
jne 0x40214d
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402165
cmp byte [esp], 0
je 0x40215a
mov edx, 0xc8
jmp 0x40215f
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop esi
pop ebx
ret
Function at 0x40216e
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040c3cc
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040c4a0
test eax, eax
jne 0x402205
push 0x4121f1
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040c3cc
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040c34c
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x402380
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x4024c4
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x41268c
push 1
push 0
push 0x41269c
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402592
push edi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push esi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402527
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402539
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0xc]
push eax
push 0x4126ac
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x402589
push 0x104
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea edx, [ebp - 0x214]
push edx
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jl 0x402580
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4025a4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x403390
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, 0x412308
push ebx
push esi
mov esi, 0x41336c
call fcn.0040c578
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x4033ca
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4033ca
lea eax, [ebx + 1]
mov edx, 0x22
call fcn.0040c3dc
mov ebx, eax
test ebx, ebx
je 0x40341f
mov edx, 0x412109
mov eax, ebx
call fcn.0040c420
mov ebx, eax
test eax, eax
je 0x4033e9
mov eax, esi
mov edx, ebx
call fcn.0040c44c
xor eax, eax
jmp 0x403419
xor edx, edx
mov dl, byte [esi + eax]
cmp edx, 0x2d
je 0x4033fc
cmp edx, 0x2f
jne 0x403418
xor edx, edx
mov dl, byte [esi + eax + 1]
cmp edx, 0x73
je 0x40340c
cmp edx, 0x53
jne 0x403418
mov dword [0x41204c], 1
jmp 0x40341f
inc eax
cmp byte [esi + eax], 0
jne 0x4033ed
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x413ee8], ebx
mov dword [0x413ee4], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x41376c], eax
mov word [ebp - 0x1c], 8
lea eax, [ebp - 8]
call fcn.004047cc
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 0x14
push 0x400
push 0x412f6c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov edx, 0x412f6c
mov eax, 0x413eec
call fcn.00403e80
call fcn.0040100c
cmp dword [0x412048], 0
jle 0x403490
mov eax, dword [0x412044]
call fcn.0040c2d0
push dword [0x41376c]
call sub.GDI32.DLL_DeleteObject
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404884
mov word [ebp - 0x1c], 0
cmp dword [0x413ed8], 0
jne 0x4034d2
cmp dword [0x4126c4], 0
je 0x4034d2
mov eax, 0x413ed8
mov edx, 0xff
call fcn.0040737c
mov dword [0x4126c4], 2
push dword [0x413ed8]
call sub.KERNEL32.DLL_ExitProcess
mov ecx, dword [ebp - 0x2c]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404434
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00404630
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x4044cb
cmp byte [ebp + 8], 0
jne 0x4044cb
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call main
cmp byte [ebp + 8], 0
jne 0x404509
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.004042b8
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x404617
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x404568
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.004042b8
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x404607
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x404590
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call main
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x404627
inc esi
test edi, edi
je 0x404627
cmp esi, 0x200
jl 0x404527
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4