joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d640
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
xor ebp, ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.kernel32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x1000d76d
push esi
push 2
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x20]
mov ebx, eax
push ebx
push esi
lea eax, [esp + 0x2c]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000d75f
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x10024324
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000d75f
mov eax, dword [esp + 0x18]
mov ebp, 1
mov ecx, dword [eax + 0x10]
mov dx, word [eax + 0x10]
mov eax, dword [eax + 0x14]
mov word [esp + 0x12], dx
mov edx, dword [esp + 0x12c]
shr ecx, 0x10
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov word [esp + 0x14], ax
and ecx, 0xffff
mov eax, dword [esp + 0x12]
mov dword [edx], ecx
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x14]
and eax, 0xffff
and edx, 0xffff
mov dword [ecx], eax
mov eax, dword [esp + 0x134]
mov dword [eax], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc

Function at 0x1000d7c0
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 0x10057fa0
jmp 0x1000d7f0
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 1
mov dword [esi], 0x1001f4f4
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi + 4], eax
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x1000d860
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 1
push 0x23
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx - 1], 0x5c
je 0x1000d8b1
mov edi, 0x10024324
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100528f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
ret

Function at 0x1000d8f0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 1
push 0x2b
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx - 1], 0x5c
je 0x1000d941
mov edi, 0x10024324
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Microsoft_SharedTextConv_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x1000f060
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001e158
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebx
call fcn.1000f530
add esp, 4
test al, al
jne 0x1000f1f0
push ebx
call fcn.1000f4d0
add esp, 4
test al, al
jne 0x1000f0ab
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1000f0b7
mov eax, 0x1001f2c4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000f1f0
mov al, byte [esp + 0x28]
test al, al
je 0x1000f256
mov al, byte [ebx]
push esi
push edi
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], al
call fcn.100036b0
mov ecx, dword [0x1001f2c8]
push ecx
push 0
push ebx
lea ecx, [esp + 0x18]
call fcn.10004ba0
push 0x10052a90
mov dword [esp + 0x28], 0
call fcn.100125b7
mov edx, dword [0x1001f2c8]
mov ecx, dword [esp + 0x18]
mov esi, eax
sub edx, ecx
add esp, 4
cmp edx, esi
ja 0x1000f124
call fcn.10011d8b
test esi, esi
jbe 0x1000f163
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
lea edi, [eax + esi]
push edi
call fcn.10001f70
test al, al
je 0x1000f163
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push 0x10052a90
lea eax, [ecx + edx*2]
push eax
call fcn.100018f0
add esp, 0xc
lea ecx, [esp + 0xc]
push edi
call fcn.10004e00
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop esi
mov ecx, 0x1001f2c4
je 0x1000f174
mov ecx, eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1000f180
mov eax, 0x1001f2c4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1000f1bd
mov eax, dword [esp + 8]
test eax, eax
jne 0x1000f199
mov eax, 0x1001f2c4
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1000f220
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x1000f1f0
mov al, byte [ecx - 1]
test al, al
je 0x1000f202
cmp al, 0xff
je 0x1000f202
jmp 0x1000f1eb
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1000f1c9
mov eax, 0x1001f2c4
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1000f220
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x1000f1f0
mov al, byte [ecx - 1]
test al, al
je 0x1000f202
cmp al, 0xff
je 0x1000f202
dec al
mov byte [ecx - 1], al
mov al, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
add ecx, 0xfffffffe
push ecx
call fcn.10011d80
add esp, 4
mov al, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x1000f256
mov al, byte [ecx - 1]
test al, al
je 0x1000f24a
cmp al, 0xff
je 0x1000f24a
dec al
pop ebx
mov byte [ecx - 1], al
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
add ecx, 0xfffffffe
push ecx
call fcn.10011d80
add esp, 4
mov ecx, dword [esp + 0x14]
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x1000f270
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001e178
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x1000f299
mov eax, 0x1001f2c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1000f3c5
mov al, byte [esp + 0x28]
test al, al
je 0x1000f423
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000f423
mov al, byte [ebp]
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.10001ba0
mov ecx, dword [0x1001f2cc]
push ecx
push 0
push ebp
lea ecx, [esp + 0x1c]
call fcn.100034b0
mov edi, str..tmp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x1001f2cc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
mov esi, ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, esi
ja 0x1000f319
call fcn.10011d8b
test esi, esi
jbe 0x1000f35e
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [eax + esi]
push ebx
call fcn.10001e50
test al, al
je 0x1000f35e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str..tmp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.10001e30
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
test eax, eax
mov ecx, 0x1001f2c0
je 0x1000f370
mov ecx, eax
mov eax, dword [ebp + 4]
test eax, eax
jne 0x1000f37c
mov eax, 0x1001f2c0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1000f392
mov eax, dword [esp + 8]
test eax, eax
jne 0x1000f39e
jmp 0x1000f399
mov eax, dword [ebp + 4]
test eax, eax
jne 0x1000f39e
mov eax, 0x1001f2c0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [esp + 8]
test eax, eax
je 0x1000f3f3
test ecx, ecx
je 0x1000f3c5
mov al, byte [ecx - 1]
test al, al
je 0x1000f3d7
cmp al, 0xff
je 0x1000f3d7
dec al
mov byte [ecx - 1], al
mov al, 1
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec ecx
push ecx
call fcn.10011d80
add esp, 4
mov al, 1
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
test ecx, ecx
je 0x1000f423
mov al, byte [ecx - 1]
test al, al
je 0x1000f419
cmp al, 0xff
je 0x1000f419
dec al
pop ebp
mov byte [ecx - 1], al
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec ecx
push ecx
call fcn.10011d80
add esp, 4
mov ecx, dword [esp + 0x14]
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x1000f530
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x24
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
pop edi
mov eax, dword [eax + 4]
test eax, eax
jne 0x1000f55a
mov eax, 0x1001f2c4
lea ecx, [esp]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1000f572
xor al, al
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000f588
cmp eax, 3
je 0x1000f588
xor eax, eax
add esp, 0x24
ret
mov eax, 1
add esp, 0x24
ret

Function at 0x1000f5a0
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001e1b8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push edi
mov edi, dword [esp + 0x34]
push edi
call fcn.1000f440
add esp, 4
test al, al
jne 0x1000f5da
pop edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x38]
push ebx
push esi
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.10011950
add esp, 8
mov eax, dword [eax + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov esi, 0x1001f2c4
je 0x1000f602
mov esi, eax
lea edx, [esp + 0xc]
push edi
push edx
call fcn.10011950
mov eax, dword [eax + 4]
add esp, 8
cmp eax, ebx
jne 0x1000f61c
mov eax, 0x1001f2c4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x10]
test eax, eax
setne byte [esp + 0x3c]
cmp ecx, ebx
je 0x1000f651
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000f645
cmp al, 0xff
je 0x1000f645
dec al
mov byte [ecx - 1], al
jmp 0x1000f651
add ecx, 0xfffffffe
push ecx
call fcn.10011d80
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x1000f683
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000f677
cmp al, 0xff
je 0x1000f677
dec al
mov byte [ecx - 1], al
jmp 0x1000f683
add ecx, 0xfffffffe
push ecx
call fcn.10011d80
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x3c]
pop esi
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x1000f970
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001e1fb
push eax
mov al, byte [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x220
neg al
sbb eax, eax
push ebx
and al, 0xf9
push 1
add eax, 0x23
xor ebx, ebx
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000fb30
lea ecx, [esp + 0x18]
push 0x105
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x1000fb30
lea eax, [esp + 0x18]
push eax
call fcn.100125b7
add esp, 4
cmp eax, ebx
jbe 0x1000f9fa
cmp word [esp + eax*2 + 0x16], 0x5c
je 0x1000f9fa
lea ecx, [esp + 0x18]
push 0x10024354
push ecx
call fcn.10012e41
add esp, 8
lea edx, [esp + 0x18]
push 0x10052aa4
push edx
call fcn.10012e41
mov eax, dword [esp + 0x244]
add esp, 8
cmp eax, ebx
je 0x1000fa25
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10012e41
add esp, 8
mov cl, byte [esp + 7]
push esi
mov byte [esp + 0xc], cl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x230], ebx
push edx
call fcn.100125b7
add esp, 4
mov esi, eax
lea ecx, [esp + 0xc]
push 1
push esi
call fcn.10001f70
test al, al
je 0x1000fa8b
mov eax, dword [esp + 0x10]
cmp esi, ebx
lea ecx, [esp + 0x1c]
jbe 0x1000fa7f
push edi
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x1000fa6f
pop edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [esp + 0xc]
push ecx
call fcn.1000ec90
add esp, 4
test al, al
pop esi
je 0x1000fb0a
mov edx, dword [0x1001f2c8]
mov ecx, dword [esp + 0x234]
push edx
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.10004ba0
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x1000faf2
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000fae6
cmp al, 0xff
je 0x1000fae6
dec al
pop ebx
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
add esp, 0x22c
ret
add ecx, 0xfffffffe
push ecx
call fcn.10011d80
add esp, 4
mov al, 1
pop ebx
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
add esp, 0x22c
ret
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x1000fb30
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000fb24
cmp al, 0xff
je 0x1000fb24
dec al
mov byte [ecx - 1], al
jmp 0x1000fb30
add ecx, 0xfffffffe
push ecx
call fcn.10011d80
add esp, 4
mov ecx, dword [esp + 0x224]
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x1000fb50
Capabilities:
Get common file path

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x108
neg al
sbb eax, eax
push ebp
and al, 0xf9
push 1
add eax, 0x23
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1000fb82
xor al, al
pop ebp
add esp, 0x108
ret
lea edx, [esp + 4]
push 0x105
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
jne 0x1000fba5
xor al, al
pop ebp
add esp, 0x108
ret
push ebx
push esi
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1000fbed
cmp byte [esp + ecx + 0xf], 0x5c
je 0x1000fbed
mov edi, 0x10024324
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Intel_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x1000fc33
call fcn.10011d8b
mov ebp, dword [esp + 0x11c]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x1000fc62
mov al, byte [ecx - 1]
test al, al
je 0x1000fc62
cmp al, 0xff
je 0x1000fc62
cmp ebx, edx
jne 0x1000fc86
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
jmp 0x1000fcaf
cmp ebx, edx
jne 0x1000fc71
push 1
mov ecx, ebp
call fcn.10001ba0
jmp 0x1000fcaf
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x1000fc7d
cmp eax, ebx
jae 0x1000fc8e
push 1
mov ecx, ebp
call fcn.10001ba0
push ebx
mov ecx, ebp
call fcn.100020a0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
mov al, byte [esp + 0x124]
pop edi
pop esi
pop ebx
test al, al
je 0x1000fcce
push ebp
call fcn.1000e980
add esp, 4
pop ebp
add esp, 0x108
ret
mov al, 1
pop ebp
add esp, 0x108
ret
Function at 0x1000fdd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x5c]
mov eax, dword [esi + 8]
test eax, eax
jne 0x1000fde6
xor al, al
pop esi
add esp, 0x54
ret
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dl, byte [esp + 0x64]
mov eax, dword [esi + 4]
neg dl
sbb edx, edx
mov dword [esp + 0x44], 1
and edx, 5
pop edi
test eax, eax
mov word [esp + 0x44], dx
jne 0x1000fe3c
mov eax, 0x1001f2c4
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
pop esi
add esp, 0x54
ret
Function at 0x10010b50
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x100115b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push ebx
push eax
push 0x202
mov bl, 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100115d7
xor al, al
pop ebx
add esp, 0x190
ret
push 0x10052ac8
call sub.WS2_32.dll_WSCUnInstallNameSpace
cmp eax, 0xffffffff
jne 0x100115e8
xor bl, bl
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, bl
pop ebx
add esp, 0x190
ret

Function at 0x10011750
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 8]
push eax
push 0x10052afc
push ecx
call fcn.10012d4b
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add esp, 0xc
add esi, 4
lea ecx, [esp + 8]
push esi
push edx
push eax
push ecx
push str.INDEX
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
pop edi
pop esi
add esp, 0x20
ret 0xc
Function at 0x42ae60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x42ae82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ae89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ae78
mov eax, 1
add ebx, ebx
jne 0x42ae9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ae90
jne 0x42aeac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ae90
xor ecx, ecx
sub eax, 3
jb 0x42aec0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42af32
mov ebp, eax
add ebx, ebx
jne 0x42aecb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42aed8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42aefc
inc ecx
add ebx, ebx
jne 0x42aee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42aedd
jne 0x42aef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42aedd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42af1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42af0d
jmp 0x42ae7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42af1c
add edi, ecx
jmp 0x42ae7e
pop esi
mov edi, esi
mov ecx, 0x99a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42af3a
cmp byte [edi], 0xb
jne 0x42af3a
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 eax, ebx
loop 0x42af3f
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42afae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a584]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a638]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42af6c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a63c]
or eax, eax
je 0x42afa8
mov dword [ebx], eax
add ebx, 4
jmp 0x42af89
call dword [esi + 0x2a640]
popal
jmp 0x40ff0c
Function at 0x408218
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40826a
test eax, edx
je 0x40826d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40822d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408253
add ecx, 4
js 0x408243
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408250
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408279
test edx, edx
jne 0x408220
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b479
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404904
jmp 0x40b482
mov eax, ebx
mov edx, esi
call fcn.00404868
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b48c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b4ae
movzx eax, byte [esp]
jmp 0x40b4b0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bb40
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b9b8
mov eax, dword [0x45bdfc]
cmp byte [eax], 0
je 0x40bbbc
mov eax, dword [0x45bc28]
call fcn.004031c8
call fcn.00402fac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408bc0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bc04
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bbf2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45bbd4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45e7f4]
call fcn.0040596c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret