joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c9528d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_ldap_set_dbg_flags___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.wldap32.dll
mov dword [ebp - 0x40], str.ldap_set_dbg_flags
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x6c952930
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_ldap_set_dbg_routine___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.wldap32.dll
mov dword [ebp - 0x40], str.ldap_set_dbg_routine
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4
Function at 0x6c954630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp + 0xc]
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x6c957860
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_vfprintf]
call sym._abort
lea esi, [esi]
Function at 0x402050
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40209b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402094
test esi, esi
je 0x402094
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402070
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402280
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4022d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4023a4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40230e
cmp eax, 4
jne 0x402330
test esi, esi
je 0x402322
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x402314
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40236f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402361
cmp ecx, 0x40
je 0x402322
cmp ecx, 4
je 0x402322
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402280
lea esi, [esi]
Function at 0x1cf3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01cf31a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1cf307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1cf306a
add dl, dl
jne 0x1cf3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1cf30dc
xor eax, eax
add dl, dl
jne 0x1cf3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1cf317d
add dl, dl
jne 0x1cf30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1cf30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1cf30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1cf30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1cf30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1cf3075
mov eax, 1
add dl, dl
jne 0x1cf30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1cf30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1cf30e1
sub eax, ebx
mov ebx, 1
jne 0x1cf3128
mov ecx, 1
add dl, dl
jne 0x1cf310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1cf3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1cf3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1cf3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1cf313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1cf314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1cf3136
cmp eax, 0x7d00
jae 0x1cf316d
cmp eax, 0x500
jb 0x1cf3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1cf3075
cmp eax, 0x7f
ja 0x1cf3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1cf3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1cf319e
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 0x1cf3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401c39
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx]
push esi
mov esi, dword [eax + 8]
push edi
test esi, esi
je 0x401c61
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x401c65
xor eax, eax
jmp 0x401c7c
lea edi, [eax + eax]
mov eax, edi
call fcn.00421730
mov eax, esp
push 3
push edi
push esi
mov esi, eax
call fcn.00401184
push str.javascript:__
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401cb9
mov ecx, dword [ebx]
call fcn.00401e28
mov eax, dword [0x43a8c0]
test eax, eax
je 0x401cab
push eax
push 0xfffffffffffffffc
push dword [0x43a8c4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp + 8]
push 0
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416782
leave
ret 4

Function at 0x401cce
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x428e0c
call fcn.0042437a
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
test edi, edi
je 0x401cf3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x401cf7
xor edi, edi
jmp 0x401d10
lea esi, [eax + eax]
mov eax, esi
call fcn.00421730
mov eax, esp
push 3
push esi
push edi
mov esi, eax
call fcn.00401184
mov edi, eax
mov eax, dword [ebx + 0x2c]
cmp dword [ebp + 8], eax
jne 0x401de6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.about:blank
push edi
call esi
test eax, eax
je 0x401de6
push str.javascript:
push edi
call esi
test eax, eax
je 0x401de6
xor edi, edi
cmp dword [ebx + 0x14], edi
jne 0x401dd9
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x48]
cmp eax, edi
jl 0x401db5
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x44]
mov esi, dword [ebp - 0x18]
cmp esi, edi
je 0x401d8e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x401d92
xor eax, eax
jmp 0x401dab
lea edi, [eax + eax]
mov eax, edi
call fcn.00421730
mov eax, esp
push 3
push edi
push esi
mov esi, eax
call fcn.00401184
xor edi, edi
push eax
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
push edi
push ebx
push 0x4022c6
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x44], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x401dd9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebx + 0x14]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.00401ac9
xor eax, eax
lea esp, [ebp - 0x28]
call fcn.004243fd
ret 8
Function at 0x402370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x408], eax
xor eax, eax
mov dword [ebp + eax*4 - 0x404], eax
inc eax
cmp eax, 0x100
jl 0x402397
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov ecx, esi
and ecx, 0x8000000f
lea eax, [ebp + esi*4 - 0x404]
mov edx, dword [eax]
jns 0x4023c5
dec ecx
or ecx, 0xfffffff0
inc ecx
mov ebx, dword [ebp - 0x408]
movsx ecx, byte [ecx + ebx]
add ecx, edx
add edi, ecx
and edi, 0xff
lea ecx, [ebp + edi*4 - 0x404]
mov ebx, dword [ecx]
inc esi
mov dword [eax], ebx
mov dword [ecx], edx
cmp esi, 0x100
jl 0x4023ad
xor edi, edi
xor esi, esi
mov dword [ebp - 0x408], edi
cmp dword [ebp + 0xc], edi
jle 0x40246b
inc esi
and esi, 0x800000ff
jns 0x40240f
dec esi
or esi, 0xffffff00
inc esi
lea eax, [ebp + esi*4 - 0x404]
mov ecx, dword [eax]
add edi, ecx
and edi, 0x800000ff
jns 0x40242a
dec edi
or edi, 0xffffff00
inc edi
lea edx, [ebp + edi*4 - 0x404]
mov ebx, dword [edx]
mov dword [eax], ebx
mov ebx, dword [ebp - 0x40c]
mov dword [edx], ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x408]
add eax, ecx
and eax, 0x800000ff
jns 0x402455
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax*4 - 0x404]
xor byte [ebx + edx], al
inc edx
mov dword [ebp - 0x408], edx
cmp edx, dword [ebp + 0xc]
jl 0x4023fe
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416782
leave
ret

Function at 0x40247a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
jbe 0x402494
push esi
movzx esi, byte [ebp + 8]
sub ecx, eax
mov dl, byte [eax]
xor byte [ecx + eax], dl
inc eax
dec esi
jne 0x40248a
pop esi
pop ebp
ret

Function at 0x402496
Capabilities:
Encode data using xor

Disassembly:
push 0x10
pop edx
sub ecx, eax
push esi
mov esi, dword [eax]
xor dword [ecx + eax], esi
mov esi, dword [eax + 4]
xor dword [ecx + eax + 4], esi
add eax, 8
dec edx
jne 0x40249c
pop esi
ret
Function at 0x40275b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov cl, byte [edi + 0xc8]
cmp cl, 0xff
je 0x402869
cmp byte [edi + 0xc9], 0
jne 0x402869
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov bl, al
shrd eax, esi, 3
and bl, 7
shr esi, 3
mov byte [ebp - 1], bl
mov dword [ebp + 0xc], eax
test cl, cl
je 0x4027ff
or eax, esi
je 0x4027ff
mov bl, 0x80
sub bl, cl
movzx eax, bl
cdq
mov byte [ebp - 5], bl
cmp esi, edx
ja 0x4027bd
jb 0x4027b7
cmp dword [ebp + 0xc], eax
jae 0x4027bd
mov bl, byte [ebp + 0xc]
mov byte [ebp - 5], bl
push dword [ebp - 5]
mov eax, dword [ebp + 8]
movzx ecx, cl
add ecx, edi
call fcn.0040247a
pop ecx
movzx ecx, bl
mov dword [ebp + 8], eax
mov eax, ecx
cdq
sub dword [ebp + 0xc], eax
movzx eax, byte [edi + 0xc8]
sbb esi, edx
add ecx, eax
mov byte [edi + 0xc8], cl
cmp cl, 0x80
jne 0x4027fc
call fcn.0040255a
mov byte [edi + 0xc8], 0
mov bl, byte [ebp - 1]
test esi, esi
je 0x402822
mov eax, dword [ebp + 8]
mov ecx, edi
call fcn.00402496
mov dword [ebp + 8], eax
call fcn.0040255a
add dword [ebp + 0xc], 0xffffff80
adc esi, 0xffffffff
test esi, esi
ja 0x402803
jb 0x40282b
cmp dword [ebp + 0xc], 0x80
jae 0x402803
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x402848
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0040247a
pop ecx
mov cl, byte [ebp + 0xc]
mov byte [edi + 0xc8], cl
test bl, bl
je 0x402865
movzx ecx, byte [edi + 0xc8]
mov byte [edi + 0xc9], bl
mov al, byte [eax]
add edi, ecx
mov cl, 8
sub cl, bl
shr al, cl
xor byte [edi], al
xor eax, eax
jmp 0x40286c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a82
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 0x103
push edi
lea eax, [ebp - 0x11b]
push ebx
push eax
mov byte [ebp - 0x11c], bl
call fcn.0041b1d0
push edi
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call fcn.0041b1d0
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [esi + 0x4c]
push eax
push str._sscreen1.html
lea eax, [ebp - 0x11c]
push 0x104
push eax
call ebx
lea eax, [esi + 0x4c]
push eax
push str._sres.zip
lea eax, [ebp - 0x324]
push 0x104
push eax
call ebx
push edi
lea eax, [ebp - 0x21f]
push 0
push eax
mov byte [ebp - 0x220], 0
call fcn.0041b1d0
add esp, 0x44
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and dword [ebp - 0x580], 0
lea eax, [ebp - 0x324]
push eax
call fcn.004166c3
push 0xffffffffffffffff
lea ecx, [ebp - 0x450]
mov edi, eax
call fcn.004166cc
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp - 0x450], ebx
jle 0x403bab
push ebx
lea ecx, [ebp - 0x57c]
mov eax, edi
call fcn.004166cc
lea eax, [ebp - 0x578]
push eax
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x220]
push 0x42ea24
push eax
call fcn.00416973
lea eax, [ebp - 0x220]
push eax
mov ecx, ebx
mov eax, edi
call fcn.00416735
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp ebx, dword [ebp - 0x450]
jl 0x403b5f
mov ebx, edi
call fcn.0041673e
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
inc dword [ebp - 0x580]
lea eax, [ebp - 0x11c]
push eax
call edi
test eax, eax
jne 0x403be1
cmp dword [ebp - 0x580], 9
jg 0x403be1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403b38
lea eax, [ebp - 0x11c]
push eax
call edi
test eax, eax
je 0x403cc9
lea eax, [ebp - 0x11c]
push 0x42ea2c
push eax
call fcn.0041717a
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x580], edi
test edi, edi
je 0x403c5e
push 2
push 0
push edi
call fcn.004176ae
push edi
call fcn.004175bf
push edi
mov ebx, eax
call fcn.00417000
lea eax, [ebx + 1]
push eax
call fcn.00416f6c
lea ecx, [ebx + 1]
push ecx
push 0
push eax
mov dword [esi + 0xef19c], eax
call fcn.0041b1d0
push edi
push 1
push ebx
push dword [esi + 0xef19c]
call fcn.004173db
push edi
call fcn.00417922
add esp, 0x38
jmp 0x403c64
mov ebx, dword [ebp - 0x580]
xor eax, eax
mov byte [ebp - 0x18], 0
push 0x42ea3c
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x42ea48
push 0x42ea30
stosd dword es:[edi], eax
push 0x42ea4c
push str.ic1s
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.5478
lea eax, [ebp - 0x18]
push eax
call edi
push eax
call edi
push eax
call edi
push eax
call edi
push eax
call edi
push eax
call edi
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [esi + 0xef19c]
call fcn.00402370
mov edi, dword [esi + 0xef19c]
add esp, 0xc
push esi
call fcn.0040618c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00416782
leave
ret
Function at 0x404111
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
push edi
je 0x404138
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40413c
xor eax, eax
jmp 0x404153
lea edi, [eax + eax]
mov eax, edi
call fcn.00421730
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.00401184
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x404170
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404170
inc esi
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0xb
pop eax
mov word [ebx], ax
mov word [ebx + 8], si
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416782
leave
ret 4

Function at 0x404196
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x428404
call fcn.0042437a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov esi, ecx
call fcn.0041b1d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 8
pop eax
mov word [edi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x404206
push 0x8007000e
call fcn.004011b7
and dword [ebp - 4], 0
lea esi, [ebp - 0x21c]
call fcn.00402a14
mov dword [edi + 8], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
call fcn.004243fd
ret
Function at 0x404230
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
push 0x120
mov eax, 0x4284f3
call fcn.0042437a
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x404335
lea esi, [eax + 0x4c]
push 0x42e64c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404300
push 0x103
push eax
mov byte [ebp - 0x128], al
lea eax, [ebp - 0x127]
push eax
call fcn.0041b1d0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x404335
mov byte [ebp - 0x24], 0
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x24]
call fcn.004040e0
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
lea eax, [ebp - 0x128]
push eax
call edi
push 0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x404335
push 5
push 0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x42ea90
lea eax, [ebp - 0x128]
push eax
call edi
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 8
pop eax
push esi
lea esi, [ebp - 0x12c]
mov word [ebx], ax
call fcn.00402a2c
and dword [ebp - 4], 0
call fcn.00402a14
mov dword [ebx + 8], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x12c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
call fcn.004243fd
ret 4
Function at 0x40433f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
lea edi, [ebp - 0x220]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
pop ebx
stosd dword es:[edi], eax
push ebx
xor edi, edi
lea eax, [ebp - 0x264]
push edi
push eax
call fcn.0041b1d0
mov eax, dword [esi + 0x61c]
add esp, 0xc
mov dword [ebp - 0x264], ebx
cmp eax, edi
jbe 0x40439f
xor ecx, ecx
mov dword [ebp - 0x238], 1
mov word [ebp - 0x234], cx
cmp eax, edi
jne 0x4043f9
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0041b1d0
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x5c
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x20c]
push eax
jmp 0x404408
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x40445d
push 0xffffffffffffffff
lea eax, [esi + 0x20c]
push eax
mov ebx, 0x8bf
push ebx
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
lea eax, [esi + 0x414]
push eax
push ebx
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x404504
push 7
push 0x42ea94
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x8bf
test eax, eax
je 0x40448c
push 1
lea eax, [esi + 0x414]
push eax
push ebx
push dword [esi + 0x208]
call edi
push 0x64
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4044a8
push 0x10166
jmp 0x4044f4
or dword [ebp - 0x210], 0xffffffff
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 7
push 0x42ea94
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x4044ee
cmp dword [ebp - 0x210], eax
sete al
push eax
lea eax, [esi + 0x414]
push eax
push ebx
push dword [esi + 0x208]
call edi
push dword [ebp - 0x210]
lea eax, [esi + 0x20c]
push eax
push ebx
push dword [esi + 0x208]
call edi
push dword [ebp - 0x220]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x21c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00416782
leave
ret
Function at 0x40452b
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x828], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x830], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov ebx, ecx
mov edi, edx
call fcn.0041b1d0
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0041b1d0
xor eax, eax
push esi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0041b1d0
push dword [ebp - 0x828]
lea eax, [ebp - 0x20c]
push edi
push str._s__s
lea edi, [esi + 2]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push edi
push eax
call esi
push dword [ebp - 0x82c]
lea eax, [ebp - 0x414]
push 0x42eab0
push edi
push eax
call esi
add esp, 0x48
push dword [ebp - 0x830]
lea eax, [ebp - 0x61c]
push 0x42eab0
push edi
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea edi, [ebx + 0x150]
push edi
call esi
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x404618
mov eax, dword [ebx]
mov dword [ebx + 0x358], eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebx + 0x35c]
push eax
mov byte [ebx + 0xb84], 1
call esi
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x76c], eax
lea eax, [ebp - 0x61c]
push eax
add ebx, 0x564
push ebx
call esi
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x40469e
movzx eax, word [edi]
cmp eax, 0x5c
je 0x404662
cmp eax, 0x2f
jne 0x404695
push 0x104
lea eax, [ebp - 0x824]
push eax
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x404695
push edi
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x824]
push eax
push edi
call esi
push edi
call fcn.0040433f
pop ecx
jmp 0x4046ae
push eax
push eax
push edi
push fcn.0040433f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00416782
leave
ret 0x14