joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13041ea0
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
push 0
call fcn.12f4bf30
mov ebp, dword [esp + 0x14]
mov edi, 0x400
cmp edi, 0xa00000
jae 0x13041f3f
add edi, edi
push edi
call fcn.12f5bf8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x13041f3f
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov esi, eax
test esi, esi
jbe 0x13041ee9
lea eax, [edi - 2]
cmp esi, eax
jb 0x13041ef8
push ebx
call fcn.12f5bf80
add esp, 4
test esi, esi
je 0x13041f3f
jmp 0x13041eba
mov byte [esi + ebx], 0
mov al, byte [ebx]
test al, al
mov ebp, 1
mov esi, ebx
je 0x13041f2f
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.12f4c3d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x13041f09
push ebx
call fcn.12f5bf80
add esp, 4
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 0x13041f50
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0
call fcn.12f4bf30
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x13041f6e
push 0xffffffffffffffff
push 0
call fcn.12f4bf30
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, 0x400
cmp edi, 0xa00000
jae 0x13042039
add edi, edi
push edi
call fcn.12f5bf8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x13042039
mov eax, dword [esp + 0x14]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
test esi, esi
jbe 0x13041fb7
lea ecx, [edi - 2]
cmp esi, ecx
jb 0x13041fc6
push ebx
call fcn.12f5bf80
add esp, 4
test esi, esi
je 0x13042039
jmp 0x13041f7b
mov byte [esi + ebx], 0
mov al, byte [ebx]
test al, al
mov ebp, 1
mov esi, ebx
je 0x13042029
push 0x3d
push esi
call fcn.12f5f7e2
mov edi, eax
add esp, 8
test edi, edi
je 0x13042011
mov ecx, dword [esp + 0x1c]
mov byte [edi], 0
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.12f4c3d0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1304200e
mov edx, dword [ecx + 4]
lea eax, [edi + 1]
push eax
push edx
call fcn.12f4c3d0
mov byte [edi], 0x3d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x13041fd7
push ebx
call fcn.12f5bf80
add esp, 4
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 0x130448f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x1304490e
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.12f5bf8b
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x1304494d
xor ebx, ebx
jmp 0x1304496a
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x13044966
or ebx, 0xffffffff
jmp 0x1304496a
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x130449bd
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x130449a2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x130449b9
mov ecx, dword [esp + 0x10]
push ecx
call fcn.12f5bf80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x130449e2
test ebx, ebx
je 0x13044ab6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x13044ab6
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.12f5bf8b
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x13044a16
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x13044a55
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x13044a55
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x13044a4f
or esi, 0xffffffff
jmp 0x13044a57
mov esi, dword [esp + 0x28]
jmp 0x13044a57
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x13044a7f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x13044a12
push eax
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.12f5bf80
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x13044ad0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x13044af3
or ebx, eax
jmp 0x13044af5
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x13044b0f
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.13044e10
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x13044b37
mov dword [esp + 0x20], eax
push 0x8000
call fcn.12f5bf8b
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x13044b81
or eax, 0xffffffff
jmp 0x13044bbd
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x13044bbd
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x13044bb9
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x13044bc8
cmp dword [esp + 0x10], edi
jne 0x13044bc8
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x13044bdb
jmp 0x13044b51
push ebx
call fcn.12f5bf80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.12f5bf80
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x13044c10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x130745eb
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x13044db4
push ebx
call fcn.12f5c44d
add esp, 4
test eax, eax
je 0x13044db4
push ebx
lea ecx, [esp + 0x18]
call fcn.12f41740
mov esi, dword [esp + 0xc4]
mov dword [esp + 0xb8], ebp
cmp esi, ebp
je 0x13044c81
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x13044da0
neg esi
sbb esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
and esi, 0xc0000000
add esi, 0xc0000000
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x13044d54
mov eax, dword [esp + 0x18]
test eax, eax
je 0x13044cb7
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1318f560]
cmp eax, 0xffffffff
jne 0x13044cf2
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 2
sete al
mov dword [0x1318f560], eax
test eax, eax
je 0x13044d0b
push 0
push 0x80
push 4
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
jmp 0x13044d39
push ebx
lea ecx, [esp + 0x14]
call fcn.12f41740
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.12f41ea0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x13044c9e
cmp edi, 0xffffffff
je 0x13044dea
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x13044d6c
or ebp, eax
jmp 0x13044d6e
mov ebp, eax
push 2
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x13044d80
or ebx, eax
jmp 0x13044d82
mov ebx, eax
push 0
push 0
push ebp
push edi
call esi
test ebx, ebx
jne 0x13044dea
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x13044dd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0xb8], 0xffffffff
call fcn.12f41ea0
or eax, 0xffffffff
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
lea eax, [esp + 0x10]
push 2
push eax
push 0
push edi
mov dword [esp + 0x20], 0xfeff
call fcn.130448f0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0xb8], 0xffffffff
call fcn.12f41ea0
mov eax, edi
jmp 0x13044db7
Function at 0x13049480
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13074950
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.12f4cc10
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.12f4cc10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x131cb4d0]
test eax, eax
je 0x13049538
cmp ebp, eax
jne 0x13049538
mov eax, dword [0x131cb4d4]
test eax, eax
je 0x13049538
cmp ebx, eax
jb 0x13049538
add eax, 0x493e0
cmp eax, ebx
jb 0x13049538
mov ebp, dword [0x131cb4d8]
push 1
inc ebp
push 0x131cb3f0
lea ecx, [esp + 0x18]
mov dword [0x131cb4d8], ebp
call fcn.12f560a0
push 0x131cb420
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.12f4cdf0
push 0x131cb410
mov ecx, edi
call fcn.12f4cdf0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x130495ae
push edi
push esi
mov dword [0x131cb4d8], 0
call fcn.130498b0
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x131cb3f0
call fcn.12f560a0
push 0xffffffffffffffff
push 0
mov ecx, 0x131cb420
mov dword [esp + 0x38], 1
mov dword [0x131cb4d0], ebp
mov dword [0x131cb4d4], ebx
call fcn.12f4cc10
push esi
mov ecx, 0x131cb420
call fcn.12f4cdf0
push 0xffffffffffffffff
push 0
mov ecx, 0x131cb410
call fcn.12f4cc10
push edi
mov ecx, 0x131cb410
call fcn.12f4cdf0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.12f56100
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x130495d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x13074976
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.12f4bf30
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.12f4bf30
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x1304970a
mov cl, byte [0x131096e2]
mov dx, word [0x131096e0]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.12f41570
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.12f4c4c0
mov edx, dword [0x1307d258]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.12f42100
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.12f4c4c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.12f41ea0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.12f41ea0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x1304962b
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x13049740
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x13074996
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.12f4bf30
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.12f4bf30
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x1304987a
mov cl, byte [0x131096e2]
mov dx, word [0x131096e0]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.12f41570
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.12f4c4c0
mov edx, dword [0x1307d258]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.12f42100
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.12f4c4c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.12f41ea0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.12f41ea0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x1304979b
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x130498b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x130749b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.12f4cc10
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.12f4cc10
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x130499e9
mov edx, dword [0x130e0f10]
mov cx, word [0x130e0f14]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.12f46a80
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.12f4d1b0
mov edx, dword [0x1307d25c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.12f474a0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.12f4d1b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.12f47220
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.12f47220
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x1304990b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x13051780
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [0x131cb550]
xor eax, eax
sub esp, 0x400
cmp ecx, eax
je 0x130517ca
mov ecx, dword [esp + 0x404]
mov byte [esp], al
mov byte [esp + 0x3ff], al
lea eax, [esp + 0x408]
push eax
push ecx
lea edx, [esp + 8]
push 0x3ff
push edx
call fcn.12f5d5d0
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret
Function at 0x4075d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x4075ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4075f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4075e0
mov eax, 1
add ebx, ebx
jne 0x407603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4075f8
jne 0x407614
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4075f8
xor ecx, ecx
sub eax, 3
jb 0x407628
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40769a
mov ebp, eax
add ebx, ebx
jne 0x407633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407640
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407664
inc ecx
add ebx, ebx
jne 0x407650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407645
jne 0x407661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407645
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x407684
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407675
jmp 0x4075e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x407684
add edi, ecx
jmp 0x4075e6
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4076a2
cmp byte [edi], 0
jne 0x4076a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4076a7
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407716
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x71c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4076d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7230]
or eax, eax
je 0x407710
mov dword [ebx], eax
add ebx, 4
jmp 0x4076f1
call dword [esi + 0x722c]
mov ebp, dword [esi + 0x7234]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40774a
sub esp, 0xffffff80
jmp 0x401020
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
mov dword [0x4041d0], eax
call fcn.00401290
mov eax, dword [0x4041d0]
push 5
push eax
call fcn.00401120
add esp, 0xc
test eax, eax
jne 0x401032
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x4041d0]
push esi
push edi
push 0x68
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
mov esi, eax
call edi
test eax, eax
je 0x4010a0
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x40108d
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
jne 0x40106a
pop ebp
pop ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401500
Capabilities:
Create thread

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, dword [esp + 0x11c]
push 0x40ed38
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401522
push esi
jmp 0x401527
push 0x40ed38
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40e898
call ebx
push edi
mov edi, 0x404068
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.00401600
add esp, 8
test eax, eax
pop edi
jne 0x401591
mov dword [0x40ed30], eax
mov eax, dword [0x40461c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
push str.z_connect
push 0x4041f4
mov dword [0x4041f0], 0x41c
call ebx
mov ecx, dword [esp + 0x114]
push ecx
push 0x4043f7
call ebx
mov edx, dword [esp + 0x118]
push edx
push 0x4044f8
call ebx
push 0x404068
push 0x4042f5
call ebx
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x4019b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x404620], eax
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret