joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401100
sub esi, ecx
lea eax, [esi + 1]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov edx, ebx
sub edx, edi
mov cl, byte [edi]
lea edi, [edi + 1]
mov byte [edx + edi - 1], cl
test cl, cl
jne 0x401125
xor edi, edi
xor eax, eax
test esi, esi
jle 0x4011ad
cmp esi, 8
jb 0x4011ad
mov ecx, esi
and ecx, 0x80000007
jns 0x40114e
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, esi
xorps xmm3, xmm3
sub edx, ecx
xorps xmm2, xmm2
nop dword [eax + eax]
movd xmm1, dword [eax + ebx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [eax + ebx + 4]
punpcklbw xmm1, xmm0
add eax, 8
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp eax, edx
jl 0x401160
paddd xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd edi, xmm2
xor edx, edx
mov dword [ebp - 4], edx
cmp eax, esi
jge 0x4011f6
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jl 0x4011e9
lea ecx, [esi - 1]
mov dword [ebp - 8], ecx
movzx ecx, byte [eax + ebx]
add edx, ecx
movzx ecx, byte [eax + ebx + 1]
add dword [ebp - 4], ecx
add eax, 2
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 8]
jl 0x4011c5
mov ecx, dword [ebp - 4]
cmp eax, esi
jge 0x4011f1
jmp 0x4011eb
mov ecx, edx
movzx eax, byte [eax + ebx]
add edi, eax
lea eax, [ecx + edx]
add edi, eax
add esi, 0xffffffff
js 0x40122a
lea eax, [esi + 1]
mov dword [ebp - 4], eax
mov cl, byte [ebx + eax - 1]
and edi, 0x7ffffff
movzx eax, cl
cdq
idiv dword [ebp - 4]
imul edi, edi, 0xb
movzx eax, byte [edx + ebx]
xor edi, eax
mov byte [edx + ebx], cl
mov eax, dword [ebp - 4]
dec eax
sub esi, 1
mov dword [ebp - 4], eax
jns 0x401201
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401250
Capabilities:
Get disk information
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x404004]
xor eax, esp
mov dword [esp + 0x198], eax
cmp dword [0x404380], 0
push ebx
push esi
mov ebx, ecx
lea esi, [esp + 0x9c]
push edi
mov dword [esp + 0x14], ebx
je 0x401291
push ebx
push str.GetSignature___s___n
call fcn.00401440
add esp, 8
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0x40
push 0x8000
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__sopen_dispatch]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne edi, ecx
test edi, edi
jns 0x4012d2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00401476
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40132b
mov eax, dword [esp + 0x14]
sub ebx, eax
inc ebx
push ebx
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
cmp ebx, 0x10
jae 0x4013f8
push 0x40
lea eax, [esp + 0x64]
mov byte [esp + ebx + 0x54], 0
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
mov eax, dword [esp + 0x3c]
add esp, 8
sar eax, 0xa
imul ebx, eax, 0x77
imul eax, eax, 0x277
mov ecx, eax
mov dword [esp + 0x10], eax
sub ecx, ebx
mov eax, 0x342da7f3
inc ecx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
shr eax, 0x10
mov word [esp + 0xa0], ax
mov eax, 2
nop dword [eax]
cmp byte [esi], 0
jne 0x401388
mov byte [esi], 0x9d
inc esi
sub eax, 1
jne 0x401380
cmp ebx, dword [esp + 0x10]
jg 0x4013ca
push 0
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
push 1
push esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov al, byte [esi]
add esp, 0xc
test al, al
jne 0x4013bf
mov al, bl
mov byte [esi], al
test al, al
jne 0x4013bf
mov byte [esi], 0x9d
add ebx, dword [esp + 0x14]
inc esi
cmp ebx, dword [esp + 0x10]
jle 0x401394
push edi
mov byte [esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
lea ecx, [esp + 0xa0]
call fcn.004010f0
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401476
mov esp, ebp
pop ebp
ret
call fcn.004015a8
int3
Function at 0x408952
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
call fcn.00408983
xor dword [ebx], edi
add eax, esi
add ebx, 1
cmp ebx, ecx
jne fcn.00408952
sub esi, 0x26985bbe
sub esi, 0x8c2eb672
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433005
Capabilities:
Encode data using xor

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

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

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0xbf41cbb
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4a1b574e
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4037b4
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
push str._tWinMain___n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov ebx, 0x4b8e80
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.004036f8
mov eax, dword [0x4b76b4]
inc eax
mov dword [0x4b76b4], eax
cmp eax, 1
jne 0x4037f7
call fcn.0040404b
mov ecx, eax
call fcn.00434cc1
lea ecx, [esp + 0x10]
call fcn.0040401f
mov ecx, ebx
mov byte [esp + 0xf], 1
mov dword [esp + 0x14], ebx
call fcn.004036f8
xor esi, esi
lea eax, [esp + 0x54]
push esi
push eax
call fcn.0040404b
mov ecx, eax
call fcn.00434c28
push eax
lea ecx, [esp + 0x48]
call fcn.0042f5cb
lea ecx, [esp + 0x54]
call fcn.0042f60f
lea ecx, [esp + 0x14]
call fcn.0040401f
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x34]
call fcn.0042f5cb
lea ecx, [esp + 0x40]
call fcn.0042f60f
lea ecx, [esp + 0x2c]
call fcn.00438d6f
cmp eax, 0x7d1
jl 0x403875
lea ecx, [esp + 0x2c]
call fcn.00438d6f
mov edi, eax
jmp 0x4038e7
push 0x426844
call fcn.00430e0d
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push ecx
lea ecx, [esp + 0x28]
mov dword [0x4b6064], eax
call fcn.00425f2e
lea eax, [esp + 0x1c]
mov byte [0x4b3008], 1
push eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0x8000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [0x4b76e4]
call fcn.00405dc2
mov esi, dword [esp + 0x24]
mov edi, eax
test esi, esi
je 0x4038e7
cmp byte [esp + 0x28], 0
je 0x4038e0
push esi
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push esi
call fcn.0045fac7
pop ecx
lea ecx, [esp + 0x2c]
call fcn.0042f60f
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.004036f8
mov eax, dword [0x4b76b4]
dec eax
mov dword [0x4b76b4], eax
test eax, eax
jg 0x403916
call fcn.0040404b
mov ecx, eax
call fcn.00434ce2
lea ecx, [esp + 0x18]
call fcn.0040401f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404f17
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov esi, ecx
push edi
mov edi, ecx
test ebx, ebx
je 0x40500d
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add esi, eax
mov eax, dword [ebp - 4]
inc edi
cmp edi, ebx
jb 0x404f38
test esi, esi
je 0x40500d
inc esi
lea eax, [esi + esi]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x404f7c
call fcn.00405dad
mov edi, eax
mov dword [ebp - 8], eax
test edi, edi
je 0x40500d
xor eax, eax
xor ecx, ecx
mov word [edi], ax
mov ebx, ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + ebx*4]
mov eax, ecx
mov dword [ebp - 0xc], edx
test esi, esi
je 0x404f9c
cmp esi, 0x7fffffff
jbe 0x404fa1
mov eax, 0x80070057
test eax, eax
js 0x404ffb
xor eax, eax
mov edx, esi
mov ecx, edi
test esi, esi
je 0x404fc9
xor edi, edi
cmp word [ecx], di
je 0x404fbc
add ecx, 2
dec edx
jne 0x404fb1
mov edi, dword [ebp - 8]
test edx, edx
je 0x404fc9
mov ecx, esi
sub ecx, edx
jmp 0x404fd0
mov eax, 0x80070057
xor ecx, ecx
mov edx, dword [ebp - 0xc]
test eax, eax
js 0x404ffb
push 0x7ffffffe
push edx
mov edx, esi
push ecx
sub edx, ecx
lea ecx, [edi + ecx*2]
call fcn.00404ed2
test eax, eax
js 0x404ffb
inc ebx
push 0
pop ecx
cmp ebx, dword [ebp - 0x10]
jb 0x404f85
mov eax, edi
jmp 0x40500f
push str.StringCchCat_error_in_joinStr
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40540a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp word [ecx], di
je 0x405421
add esi, 2
cmp word [esi], di
jne 0x405419
push 0x5c
pop eax
cmp word [esi], ax
je 0x40543a
cmp esi, ecx
jbe 0x405435
sub esi, 2
cmp word [esi], ax
jne 0x405429
cmp word [esi], ax
jne 0x40543d
add esi, 2
cmp word [esi], di
jne 0x405451
push 0x497c20
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
xor eax, eax
jmp 0x4054ca
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
mov dword [ebp - 4], eax
add eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x405478
call fcn.00405dad
mov ebx, eax
test ebx, ebx
je 0x4054c3
mov eax, dword [ebp - 4]
test eax, eax
je 0x405486
cmp eax, 0x7fffffff
jbe 0x40548b
mov edi, 0x80070057
test edi, edi
js 0x4054a3
push 0x7ffffffe
push esi
push ecx
mov edx, eax
mov ecx, ebx
call fcn.00404ed2
mov edi, eax
jmp 0x4054ac
test eax, eax
je 0x4054ac
xor eax, eax
mov word [ebx], ax
test edi, edi
jns 0x4054c7
mov edx, edi
mov ecx, str.StringCchCopy
call fcn.00405191
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
jmp 0x4054c9
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40577a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov esi, eax
cmp word [eax], di
je 0x405796
add esi, 2
cmp word [esi], di
jne 0x40578e
push 0x5c
pop ecx
jmp 0x4057a2
cmp esi, eax
jbe 0x4057a9
sub esi, 2
cmp word [esi], cx
jne 0x40579b
cmp esi, eax
jne 0x4057bd
push str.getDirPathOfFile_invalid_input_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
xor eax, eax
jmp 0x405845
sub esi, eax
sar esi, 1
push ebx
lea eax, [esi*2 + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4057e2
call fcn.00405dad
mov ebx, eax
test ebx, ebx
je 0x40583e
lea eax, [esi + 1]
mov ecx, 0x80070057
test eax, eax
je 0x4057f5
cmp eax, 0x7fffffff
jbe 0x4057f7
mov edi, ecx
test edi, edi
js 0x40581e
cmp esi, 0x7ffffffe
jbe 0x40580c
xor eax, eax
mov edi, ecx
mov word [ebx], ax
jmp 0x40582b
push esi
push dword [ebp - 4]
mov edx, eax
push ecx
mov ecx, ebx
call fcn.00404ed2
mov edi, eax
jmp 0x405827
test eax, eax
je 0x405827
xor eax, eax
mov word [ebx], ax
test edi, edi
jns 0x405842
mov edx, edi
mov ecx, str.StringCchCopyN
call fcn.00405191
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
jmp 0x405844
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40584b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x4b3270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
push esi
push edi
mov ecx, eax
mov dword [ebp - 0x26c], eax
call fcn.0040504b
mov esi, eax
test esi, esi
jne 0x40587c
or eax, 0xffffffff
jmp 0x4058f7
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp edi, 0xffffffff
jne 0x4058a7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
jmp 0x4058f7
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x18], str.Found_suspicious_file__
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x26c]
push 5
pop edx
mov dword [ebp - 0x10], str.__in_directory__
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x497fc4
call fcn.00404f17
mov esi, eax
test esi, esi
je 0x4058ed
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045eff4
mov esp, ebp
pop ebp
ret
Function at 0x405907
Capabilities:
Create directory
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 0x20c
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x405931
call fcn.00405dad
mov esi, eax
test esi, esi
je 0x405a39
push edi
push esi
mov edi, 0x106
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x405947
cmp eax, edi
jbe 0x405962
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov ecx, str.GetTempPath
call fcn.00405191
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor esi, esi
test esi, esi
je 0x405a38
xor edi, edi
jmp 0x405976
push 0x14
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x40596e
push 0x12
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4059a5
call fcn.00405dad
mov edi, eax
test edi, edi
je 0x405a31
push edi
push 4
pop edx
lea ecx, [ebp - 4]
call fcn.0040511c
pop ecx
test eax, eax
je 0x4059cb
mov edx, eax
mov ecx, str.binaryToHexStringW
call fcn.00405191
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor edi, edi
test edi, edi
je 0x405a31
mov edx, edi
mov ecx, esi
call fcn.0040504b
mov ebx, eax
test ebx, ebx
je 0x405a31
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push str.CreateDirectory..._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x405a31
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [ebp - 8]
cmp eax, 0xb7
je 0x405976
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov ecx, str.CreateDirectory
call fcn.00405191
jmp 0x405976
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a41
Capabilities:
Accept command line arguments
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4b3270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x40
mov dword [ebp - 0x18], eax
xor edi, edi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x20], edx
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x14], ebx
call fcn.00462b30
add esp, 0xc
mov dword [ebp - 0x74], 0x44
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
xorps xmm0, xmm0
mov dword [ebp - 0x10], str.CreateProcessW:
push 3
pop edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
movdqu xmmword [ebp - 0x30], xmm0
mov dword [ebp - 8], 0x497ab8
call fcn.00404f17
mov esi, eax
test esi, esi
je 0x405abc
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
call fcn.004056f9
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x405b11
push 3
pop edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], str.___initialPath
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x497dcc
call fcn.00404f17
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push 2
pop edx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call fcn.00404f17
push dword [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x405b19
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x20]
push edi
push edi
push edi
push edi
push edi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 1
je 0x405b45
call esi
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0x14], 0
jne 0x405b62
mov edx, edi
mov ecx, str.CreateProcess
call fcn.00405191
xor al, al
jmp 0x405bbc
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x405b90
call esi
mov edx, eax
mov ecx, 0x498074
call fcn.00405191
mov ebx, dword [ebp - 0x18]
jmp 0x405baf
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x405bb5
call esi
mov edx, eax
mov ecx, 0x49809c
call fcn.00405191
mov dword [ebx], 0x103
push dword [ebp - 0x30]
call edi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045eff4
mov esp, ebp
pop ebp
ret
Function at 0x405bcd
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x405bff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x405c01
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc edi
cmp edi, 0xa
jl 0x405bd4
jmp 0x405c05
xor esi, esi
test esi, esi
je 0x405c15
mov edx, esi
mov ecx, str.DeleteFile
call fcn.00405191
xor al, al
jmp 0x405c17
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x405ca4
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.preLoadDllsFromSystem___n
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
xor esi, esi
push esi
push esi
call ebx
mov edi, eax
test edi, edi
je 0x405da6
add edi, 0x202
lea eax, [edi + edi]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x405cfa
call fcn.00405dad
mov esi, eax
test esi, esi
je 0x405da6
push edi
push esi
call ebx
test eax, eax
je 0x405d9f
push 0x5c
lea ebx, [esi + eax*2]
pop ecx
cmp word [ebx], cx
je 0x405d1d
inc eax
mov word [ebx], cx
xor ecx, ecx
lea ebx, [esi + eax*2]
mov word [ebx], cx
sub edi, eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], eax
jbe 0x405d9f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jl 0x405d93
inc eax
cmp eax, edi
ja 0x405d93
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push 0x497ab8
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
test eax, eax
jne 0x405d93
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7e
jne 0x405d87
push str._Not_found__n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
jmp 0x405d93
mov edx, eax
mov ecx, 0x498224
call fcn.00405191
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 8]
jb 0x405d29
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d8b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b3270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00428106
mov eax, dword [ebp + 8]
lea ecx, [edi + 0xfc]
xor ebx, ebx
mov dword [edi], 0x49b658
mov dword [edi + 0xec], ebx
mov dword [edi + 0xf0], eax
mov dword [edi + 0xf4], 0x7d7
mov word [edi + 0xf8], bx
call fcn.00431a38
lea ecx, [edi + 0x110]
call fcn.00431a38
mov dword [edi + 0x124], ebx
lea ecx, [edi + 0x13c]
push ebx
mov dword [edi + 0x128], ebx
push ebx
mov dword [edi + 0x12c], ebx
mov dword [edi + 0x130], ebx
push ebx
mov dword [edi + 0x134], ebx
push str.DownloaderApp_inetUiSerMutex
mov dword [edi + 0x138], ebx
call fcn.00434ced
lea ecx, [edi + 0x170]
mov word [edi + 0x16c], bx
call fcn.00431a38
lea ecx, [edi + 0x184]
call fcn.00431a38
mov dword [edi + 0x198], ebx
lea esi, [edi + 0x1ac]
mov dword [edi + 0x19c], ebx
mov ecx, esi
push 3
mov dword [edi + 0x1a0], ebx
push 0x49b614
mov dword [edi + 0x1a4], ebx
mov byte [edi + 0x1a8], bl
call fcn.0043adf5
mov dword [esi], 0x49b638
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov esi, eax
push esi
push str.command_line:__s
push ebx
push ebx
push ebx
call fcn.004043b9
add esp, 0x14
lea ecx, [ebp - 0x18]
push esi
call fcn.004319eb
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [edi + 4], eax
lea ecx, [edi + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00431c12
push 0x1c
call fcn.0045facc
mov esi, eax
pop ecx
test esi, esi
je 0x408ec9
call fcn.004846c5
lea ecx, [esi + 8]
mov dword [esi], eax
mov dword [esi + 4], ebx
call fcn.00431a38
jmp 0x408ecb
mov esi, ebx
mov dword [edi + 0x2c], esi
lea ecx, [ebp - 0x2c]
test esi, esi
jne 0x408edc
push 0x498584
jmp 0x408ee1
push 0x498580
call fcn.0042f5ab
lea ecx, [ebp - 0x2c]
call fcn.0042f60f
lea ecx, [ebp - 0x18]
call fcn.00431bf9
mov dword [edi + 0x254], edi
call fcn.0042b659
mov ecx, edi
call fcn.0041194c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045eff4
mov esp, ebp
pop ebp
ret 4