joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a710
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x511494]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x49a723
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x49a764
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x51153c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x49a796
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49a79a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x49a78b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x49a7b8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49a7bc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x49a7ad
xor ecx, ecx
mov eax, 0x5114a4
xor ebx, ebx
mov bl, byte [ecx + 0x51154c]
cmp byte [esp + ebx + 0x14], 0
je 0x49a7e7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x511564]
cmp byte [esp + ebx + 0x14], 0
je 0x49a7fe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x49a7ce
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x49a757
lea edx, [esp + 0x84]
push edx
call fcn.0049a840
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4b1d8b
Capabilities:
Get graphical window text

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

Function at 0x4b3587
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b35c9
call fcn.004b98b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b35c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b35c0
xor eax, eax
jmp 0x4b35d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b35d7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b9de1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b9e0f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b9e2d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b9d47
jmp 0x4b9e2d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b9e2d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b9d47
test edi, edi
mov eax, edi
jne 0x4b9e17
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4018eb
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 5
lea esi, [ebx + 0x18]
call sub.WSOCK32.dll_htons
push dword [esp + 0x14]
mov word [esi], ax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov eax, dword [0x409020]
mov edi, 0x409020
test eax, eax
jl 0x401928
cmp eax, dword [esp + 0x14]
je 0x401928
mov eax, dword [edi + 8]
add edi, 8
jmp 0x401916
cmp dword [edi], 0
jge 0x401943
mov eax, dword [esp + 0x14]
add eax, 0xffffff9c
push eax
call fcn.00402740
mov dword [edi + 4], eax
and word [esi + 2], 0
pop ecx
push dword [edi + 4]
lea eax, [esi + 4]
push eax
call fcn.00402650
pop ecx
pop ecx
push dword [edi + 4]
call fcn.004025d0
mov edi, eax
pop ecx
push 0
and byte [edi + esi + 4], 0
add edi, 5
push edi
push esi
push dword [ebx + 4]
call sub.WSOCK32.dll_send
sub eax, edi
pop edi
neg eax
pop esi
pop ebx
sbb eax, eax
ret

Function at 0x401d6e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
movzx eax, word [ebp + 0xc]
sub eax, 0x3eb
je 0x401de6
dec eax
je 0x401d9d
dec eax
dec eax
jne 0x401e06
push 0
push 3
push 0x40c6e0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_WinHelpA]
jmp 0x401e06
push 0
push 0x401ef3
push 0x6b
push dword [ebp + 8]
push 0xfffffffffffffffa
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call fcn.00401af8
add esp, 0x14
lea eax, [ebp - 0x100]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x100]
push eax
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x401e06
push 0
push 0x401aa0
push 0x67
push dword [ebp + 8]
push 0xfffffffffffffffa
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call fcn.00401af8
add esp, 0x14
xor eax, eax
leave
ret
Function at 0x4020fe
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4021c8
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0x4095d0
push ebx
push ebx
push str.BaseDirectory
mov dword [ebp - 4], 0x100
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4021c8
push 4
lea eax, [ebp - 4]
pop edi
push eax
push 0x4096e0
push ebx
push ebx
push str.TftpPort
mov dword [ebp - 4], edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4021c8
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x4096d4
push ebx
push ebx
push str.Timeout
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4021c8
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x4096d8
push ebx
push ebx
push str.MaxRetransmit
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4021c8
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x4096dc
push ebx
push ebx
push str.SecurityLevel
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4021c8
push 1
pop esi
jmp 0x4021ca
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x4021e2
push 0x4095d0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4021e9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
mov esi, 0x4095d0
neg edi
sbb edi, edi
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.BaseDirectory
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4022a4
push 4
push 0x4096e0
push 4
push ebx
push str.TftpPort
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4022a4
push 4
push 0x4096d4
push 4
push ebx
push str.Timeout
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4022a4
push 4
push 0x4096d8
push 4
push ebx
push str.MaxRetransmit
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4022a4
push 4
push 0x4096dc
push 4
push ebx
push str.SecurityLevel
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4022a4
push 1
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
and eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x402ab0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408330
push 0x404568
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 [0x40c358], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40c354], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40c350], ecx
shr eax, 0x10
mov dword [0x40c34c], eax
call fcn.00402d90
test eax, eax
jne 0x402b1a
push 0x1c
call fcn.00402c50
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404270
call fcn.00404260
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40c8f4], eax
call fcn.00403e30
mov dword [0x40c328], eax
test eax, eax
je 0x402b4d
mov eax, dword [0x40c8f4]
test eax, eax
jne 0x402b57
push 0xffffffffffffffff
call fcn.00403790
add esp, 4
call fcn.00403b80
call fcn.00403a90
call fcn.00403760
mov esi, dword [0x40c8f4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402c36
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x402b9e
test al, al
je 0x402b9e
and eax, 0xff
push eax
call fcn.00403a30
add esp, 4
test eax, eax
je 0x402b78
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402b78
cmp byte [esi], 0x22
jne 0x402ba7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x402bb7
cmp al, 0x20
ja 0x402bb7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402ba7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402bd8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402bdd
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.00403790
jmp 0x402c1b
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 0x402ba7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402c36

Function at 0x4037d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40c388]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4037ef
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 [0x40c384], 1
mov byte [0x40c380], bl
jne 0x403849
mov ecx, dword [0x40c8e8]
test ecx, ecx
je 0x403837
mov esi, dword [0x40c8e4]
sub esi, 4
cmp esi, ecx
jb 0x403837
mov eax, dword [esi]
test eax, eax
je 0x403830
call eax
mov ecx, dword [0x40c8e8]
sub esi, 4
cmp esi, ecx
jae 0x403822
push 0x409014
push 0x409010
call fcn.00403880
add esp, 8
push 0x40901c
push 0x409018
call fcn.00403880
add esp, 8
test ebx, ebx
jne 0x403870
push ebp
mov dword [0x40c388], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x403e30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40c498]
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 0x403e72
call edi
mov esi, eax
test esi, esi
je 0x403e5c
mov eax, 1
jmp 0x403e6d
call ebp
mov ebx, eax
test ebx, ebx
je 0x403f7f
mov eax, 2
mov dword [0x40c498], eax
cmp eax, 1
jne 0x403f12
test esi, esi
jne 0x403e8b
call edi
mov esi, eax
test esi, esi
je 0x403f7f
cmp word [esi], 0
mov eax, esi
je 0x403ea5
add eax, 2
cmp word [eax], 0
jne 0x403e93
add eax, 2
cmp word [eax], 0
jne 0x403e93
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 0x403f04
push edi
call fcn.00405640
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403f04
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 0x403ef6
push ebx
call fcn.00402580
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 0x403f7f
test ebx, ebx
jne 0x403f23
call ebp
mov ebx, eax
test ebx, ebx
je 0x403f7f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x403f3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403f2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403f2b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405640
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403f5d
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 0x404680
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40bc98
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4046a4
add eax, 8
inc ebp
cmp eax, 0x40bd28
jb 0x404695
cmp ecx, dword [ebp*8 + 0x40bc98]
jne 0x40484b
mov eax, dword [0x40c330]
cmp eax, 1
je 0x40480d
test eax, eax
jne 0x4046d0
cmp dword [0x4097f4], 1
je 0x40480d
cmp ecx, 0xfc
je 0x40484b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40470b
mov ecx, 5
mov esi, 0x40894c
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 0x404754
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 0x408948
add ebx, ecx
push ebx
call fcn.004057a0
add esp, 0xc
mov ecx, 6
mov esi, 0x40892c
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, 0x408928
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x408900
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 + 0x40bc9c]
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.00405710
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40c7e0]
test eax, eax
je 0x40481e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404828
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40bc9c]
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 0x405340
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4054fe
push 0x3d
push edi
call fcn.00405fb0
mov esi, eax
add esp, 8
test esi, esi
je 0x4054fe
cmp edi, esi
je 0x4054fe
mov dl, byte [esi + 1]
mov ecx, dword [0x40c36c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x40c368]
cmp eax, ecx
jne 0x405397
push eax
call fcn.004055d0
add esp, 4
mov dword [0x40c368], eax
test eax, eax
jne 0x405412
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4053be
mov eax, dword [0x40c370]
test eax, eax
je 0x4053be
call fcn.004036e0
test eax, eax
je 0x40540d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4053ca
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00405640
add esp, 4
mov dword [0x40c368], eax
test eax, eax
je 0x4054fe
mov dword [eax], 0
mov eax, dword [0x40c370]
test eax, eax
jne 0x40540d
push 4
call fcn.00405640
add esp, 4
mov dword [0x40c370], eax
test eax, eax
je 0x4054fe
mov dword [eax], 0
mov eax, dword [0x40c368]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00405550
mov esi, eax
add esp, 8
test esi, esi
jl 0x40550f
cmp dword [ebx], 0
je 0x40550f
test ebp, ebp
je 0x405507
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00402580
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x405469
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x405458
lea eax, [esi*4]
push eax
push ebx
call fcn.00405e10
add esp, 8
test eax, eax
je 0x405483
mov dword [0x40c368], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4054f6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00405640
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4054f6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00402580
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x405487
test ebp, ebp
jne 0x4054f6
test esi, esi
jge 0x405519
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00405e10
add esp, 8
test eax, eax
je 0x4054fe
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x40c368], eax
jmp 0x405487
Function at 0x4068a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4068d9
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x4068d9
and eax, 0xff
push eax
call fcn.00406e90
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x406d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x406d91
push ebx
call fcn.00406e50
add esp, 4
test eax, eax
jne 0x406d5f
mov dword [0x40c344], 0xf
mov dword [0x40c340], 0xd
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x406da1
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x406e37
inc eax
cmp eax, 0x104
ja 0x406e37
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x406df0
cmp eax, ecx
jg 0x406dcd
mov eax, ecx
push eax
call fcn.00405640
mov edx, eax
add esp, 4
test edx, edx
jne 0x406e0a
mov dword [0x40c340], 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x406e0a
mov dword [0x40c340], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x406e50
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x406e5e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x406e8d
cmp eax, 1
je 0x406e8d
mov eax, 1
ret
xor eax, eax
ret
Function at 0x465415
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x28], 0
je 0x46543e
push 0x18b
push 0x10137810
call fcn.004b08a1
test eax, eax
je 0x46543e
int3
xor ecx, ecx
test ecx, ecx
jne 0x465421
push 0x1c
push 0
lea edx, [ebp - 0x1c]
push edx
call fcn.0040ce61
add esp, 0xc
call fcn.004c42f6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0
push 0
push 1
push 0
call dword [0x10145578]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [0x10145578]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0xc], 0
je 0x465496
cmp dword [ebp - 8], 0
jne 0x4654cf
push 0x10137890
push 0x101378cc
call fcn.00432506
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x4654b8
mov edx, dword [ebp - 0xc]
push edx
call dword [0x101453e0]
cmp dword [ebp - 8], 0
je 0x4654c8
mov eax, dword [ebp - 8]
push eax
call dword [0x101453e0]
xor eax, eax
jmp 0x465604
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
or edx, 4
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x10061220
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00414921
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x28], 0
jne 0x46550c
xor eax, eax
jmp 0x465604
mov ecx, dword [ebp - 0x20]
call fcn.004b911d
cmp eax, 0xffffffff
jne 0x46552d
push 0x1a5
push 0x10137810
call fcn.004b08a1
test eax, eax
je 0x46552d
int3
xor eax, eax
test eax, eax
jne 0x46550c
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x101453dc]
test eax, eax
je 0x465557
push 0x1a6
push 0x10137810
call fcn.004b08a1
test eax, eax
je 0x465557
int3
xor edx, edx
test edx, edx
jne 0x465533
mov eax, dword [ebp - 0xc]
push eax
call dword [0x101453e0]
mov ecx, dword [ebp + 8]
and ecx, 4
test ecx, ecx
je 0x46559d
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x10145598]
cmp eax, 0xffffffff
jne 0x465597
push 0x1ab
push 0x10137810
call fcn.004b08a1
test eax, eax
je 0x465597
int3
xor ecx, ecx
test ecx, ecx
jne 0x465571
cmp dword [ebp - 4], 0
je 0x4655f5
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x101453dc]
test eax, eax
je 0x4655ca
push 0x1b0
push 0x10137810
call fcn.004b08a1
test eax, eax
je 0x4655ca
int3
xor ecx, ecx
test ecx, ecx
jne 0x4655a3
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x101453e0]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
push edx
call dword [0x101453e0]
xor eax, eax
jmp 0x465604
mov eax, dword [ebp - 8]
push eax
call dword [0x1014557c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc