joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e470
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x1001e4fb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1001e4f2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.ServiceName
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001e500
cmp dword [esp + 0x10], 1
jne 0x1001e500
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret

Function at 0x1001e550
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x18
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001e5c4
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001e5c2
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.1001e530
add esp, 8
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x1001e6b0
Capabilities:
Check if file exists
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
lea ecx, [esp + 0x14]
push 0x200
xor ebx, ebx
push ecx
push ebp
mov byte [esp + 0x1f], 0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x1001e75f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1001e755
mov eax, dword [0x1005ff54]
mov cl, byte [0x1005ff58]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [str.Device_]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x14], edx
sub edi, ecx
lea edx, [esp + 0x14]
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 + 0x14]
and ecx, 3
push eax
push ebp
push 1
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x1001e80a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x1001e847
mov ecx, dword [0x1005ff48]
mov edi, ebp
mov dword [esp + 0x214], ecx
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x1005ff4c]
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + 0x218], dl
sub edi, ecx
lea edx, [esp + 0x214]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 3
push eax
mov ecx, edx
push 1
push eax
and ecx, 3
lea eax, [esp + 0x22c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001e814
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x424]
mov eax, dword [esp + 0x420]
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x42c]
push 4
push ecx
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001e801
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001e81c
mov byte [esp + 0x13], 1
jmp 0x1001e75f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
je 0x1001e847
lea edx, [esp + 0x14]
push edx
push ebp
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x1001e847
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x10024dc0
Capabilities:
Hash data using sha1

Disassembly:
mov edx, dword [esp + 4]
push edi
xor eax, eax
mov ecx, 0x10
lea edi, [edx + 0x1c]
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
rep stosd dword es:[edi], eax
pop edi
ret 4
Function at 0x10026920
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x10026943
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.10026610
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.10026660
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.10026700
lea eax, [esp + 0x18]
push eax
call fcn.1000a170
cmp ax, 0x10
jae 0x10026983
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
push ecx
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x10064414
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x100269fa
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.100268f0
cmp ax, 0x10
jae 0x100269c4
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x100269e6
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x100269e6
lea ecx, [esp + 0xa]
push esi
push ecx
call fcn.1000a280
test al, al
jne 0x100269fa
jmp 0x100269f5
lea edx, [esp + 8]
push esi
push edx
call fcn.1000a1e0
test al, al
jne 0x100269fa
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x10026a15
cmp ax, 0xffff
je 0x10026a15
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 8

Function at 0x10026a20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
push ebx
mov bx, word [esp + 0x4c]
push esi
mov esi, dword [esp + 0x54]
cmp bx, 4
mov word [esi], 0
jbe 0x10026a43
pop esi
xor al, al
pop ebx
add esp, 0x44
ret 8
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.10026610
lea ecx, [esp + 0x28]
push 0x10
push ecx
call fcn.10026660
lea edx, [esp + 8]
push 0x10
push edx
call fcn.10026700
lea eax, [esp + 8]
push eax
call fcn.1000a170
cmp ax, 0x10
jae 0x10026a83
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 8], bl
lea ecx, [esp + 0x18]
lea edx, [esp + 0x38]
push ecx
push 0x14
push edx
lea eax, [esp + 0x14]
push 0x10064414
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10026af5
lea edx, [esp + 0x38]
push 0x2c
push edx
call fcn.100268f0
cmp ax, 0x10
jae 0x10026af5
and eax, 0xffff
mov cl, byte [esp + eax + 0x39]
and cl, 0xdf
cmp cl, 0x54
jne 0x10026af5
cmp byte [esp + eax + 0x3a], 0x3a
jne 0x10026af5
lea edx, [esp + eax + 0x3b]
push esi
push edx
call fcn.1000a1e0
test al, al
je 0x10026af0
mov ax, word [esi]
cmp ax, 1
jl 0x10026af0
cmp ax, 7
jle 0x10026af5
mov word [esi], 0
xor eax, eax
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x44
ret 8
Function at 0x10026b10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.10026610
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.10026660
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.100267c0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.10026780
lea ecx, [esp + 4]
lea edx, [esp + 0x34]
push ecx
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x10064414
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x10026b80
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.1000a020
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x50
ret 8

Function at 0x10026b90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.10026610
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.10026660
lea edx, [esp + 0x10]
push 0x10
push edx
call fcn.10026740
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
mov ecx, dword [esp + 0x34]
test eax, eax
setne dl
mov word [ecx], ax
mov al, dl
add esp, 0x30
ret 4

Function at 0x10026bf0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.1000a190
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.10026610
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.10026660
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.100266b0
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.10026810
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.100268a0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.10026860
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x10064414
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10026cde
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.1000a020
test al, al
je 0x10026c9f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push ecx
push edx
call fcn.1000a020
test al, al
je 0x10026cc6
xor eax, eax
mov word [esi], 3
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.1000a020
test al, al
je 0x10026cde
mov word [esi], 1
xor eax, eax
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
Function at 0x10028360
Capabilities:
Hash data with md5

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

Function at 0x10028ef0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x154]
cmp esi, 0x40
jle 0x10028f46
lea eax, [esp + 0xec]
push eax
call fcn.10028360
mov ecx, dword [esp + 0x154]
push esi
lea edx, [esp + 0xf4]
push ecx
push edx
call fcn.10028390
lea eax, [esp + 0xfc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.10028440
add esp, 0x18
lea edx, [esp + 4]
mov esi, 0x10
jmp 0x10028f4d
mov edx, dword [esp + 0x150]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x18]
test esi, esi
rep stosd dword es:[edi], eax
jle 0x10028f8a
mov edi, edx
lea edx, [esp + 0x18]
sub edi, edx
lea ecx, [esp + eax + 0x18]
inc eax
cmp eax, esi
mov dl, byte [edi + ecx]
mov byte [esp + eax + 0xaf], dl
mov byte [ecx], dl
jl 0x10028f75
xor eax, eax
pop edi
mov dl, byte [esp + eax + 0xac]
mov cl, byte [esp + eax + 0x14]
xor dl, 0x36
xor cl, 0x5c
mov byte [esp + eax + 0xac], dl
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x40
jl 0x10028f8d
lea eax, [esp + 0x54]
push eax
call fcn.10028360
lea ecx, [esp + 0xb0]
push 0x40
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.10028390
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x158]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call fcn.10028390
mov esi, dword [esp + 0x174]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.10028440
lea ecx, [esp + 0x78]
push ecx
call fcn.10028360
lea edx, [esp + 0x3c]
push 0x40
lea eax, [esp + 0x80]
push edx
push eax
call fcn.10028390
push 0x10
lea ecx, [esp + 0x8c]
push esi
push ecx
call fcn.10028390
add esp, 0x40
lea edx, [esp + 0x54]
push edx
push esi
call fcn.10028440
add esp, 8
pop esi
add esp, 0x140
ret
Function at 0x10029230
Capabilities:
Check os version

Disassembly:
sub esp, 0xa8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x100292c2
cmp dword [esp + 0x18], 5
jne 0x100292c2
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x100292c2
mov al, 0x5c
mov cl, 0x6c
mov byte [esp], al
mov byte [esp + 1], al
mov byte [esp + 3], al
mov byte [esp + 0xa], al
mov dl, 0x62
mov al, 0x6e
mov byte [esp + 2], 0x2e
mov byte [esp + 4], 0x47
mov byte [esp + 5], cl
mov byte [esp + 6], 0x6f
mov byte [esp + 7], dl
mov byte [esp + 8], 0x61
mov byte [esp + 9], cl
mov byte [esp + 0xb], 0x53
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x74
mov byte [esp + 0xe], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], 0x55
mov byte [esp + 0x11], 0x73
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], 0
jmp 0x10029302
mov al, 0x5c
mov byte [esp + 2], 0x2e
mov byte [esp], al
mov byte [esp + 1], al
mov byte [esp + 3], al
mov al, 0x6e
mov byte [esp + 4], 0x53
mov byte [esp + 5], al
mov byte [esp + 6], 0x74
mov byte [esp + 7], al
mov byte [esp + 8], 0x6c
mov byte [esp + 9], 0x55
mov byte [esp + 0xa], 0x73
mov byte [esp + 0xb], 0x62
mov byte [esp + 0xc], 0
push esi
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x18]
push 0xc0000000
push ecx
call fcn.100278e0
cmp eax, 0xffffffff
mov esi, dword [esp + 0xb0]
mov dword [esi], eax
jne 0x10029365
call fcn.100281f0
cmp eax, 2
jb 0x1002934a
cmp eax, 3
ja 0x1002934a
mov ax, 0x20c
pop esi
add esp, 0xa8
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10029357
push eax
call fcn.10027d80
mov ax, 0x20b
pop esi
add esp, 0xa8
ret 8
mov ax, 0x200
pop esi
add esp, 0xa8
ret 8
Function at 0x10037920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100609d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
lea edx, [ebp - 0x104]
push esi
mov ebx, ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10037942
lea eax, [ebp - 0x104]
push 0x1004a28c
push eax
call fcn.10039340
lea ecx, [ebp - 0x104]
push 0x100469ac
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10037988
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d0d0
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push esi
push 2
lea edx, [ebp - 0x110]
push 1
push edx
mov dword [ebp - 0x110], 0x1cba
call edi
push esi
push 2
lea eax, [ebp - 0x110]
push 1
push eax
mov dword [ebp - 0x110], 1
call edi
mov ecx, dword [ebx*4 + 0x10066230]
add esp, 0x20
xor eax, eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
movsx edx, ax
cmp dword [ecx + edx*8], 0
jl 0x100379e6
inc dword [ebp - 0x10c]
inc eax
mov edx, 0xc8
mov dword [ebp - 0x108], eax
cmp ax, dx
jl 0x100379d7
push esi
push 2
lea eax, [ebp - 0x10c]
push 1
push eax
call edi
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x108], eax
mov edx, dword [ebx*4 + 0x10066230]
movsx ecx, ax
cmp dword [edx + ecx*8], 0
jl 0x10037a50
push esi
push 2
lea eax, [ebp - 0x108]
push 1
push eax
call edi
movsx ecx, word [ebp - 0x108]
mov edx, dword [ebx*4 + 0x10066230]
push esi
push 8
lea eax, [edx + ecx*8]
push 1
push eax
call edi
mov eax, dword [ebp - 0x108]
add esp, 0x20
inc eax
mov ecx, 0xc8
mov dword [ebp - 0x108], eax
cmp ax, cx
jl 0x10037a10
mov ecx, dword [ebx*4 + 0x100661a0]
xor eax, eax
lea ebx, [ebx*4 + 0x100661a0]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x108], eax
lea ecx, [ecx]
movsx edx, ax
cmp dword [ecx + edx*4], 0
je 0x10037a8f
inc dword [ebp - 0x114]
inc eax
mov edx, 0xdac
mov dword [ebp - 0x108], eax
cmp ax, dx
jl 0x10037a80
push esi
push 2
lea eax, [ebp - 0x114]
push 1
push eax
call edi
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x108], eax
lea esp, [esp]
mov edx, dword [ebx]
movsx ecx, ax
cmp dword [edx + ecx*4], 0
lea ecx, [edx + ecx*4]
je 0x10037b25
mov eax, dword [ecx]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10037ad3
sub eax, edx
push esi
inc eax
push 2
movzx eax, ax
lea ecx, [ebp - 0x108]
push 1
push ecx
mov dword [ebp - 0x118], eax
call edi
push esi
push 2
lea edx, [ebp - 0x118]
push 1
push edx
call edi
movsx eax, word [ebp - 0x118]
movsx ecx, word [ebp - 0x108]
mov edx, dword [ebx]
push esi
push 1
push eax
mov eax, dword [edx + ecx*4]
push eax
call edi
mov eax, dword [ebp - 0x108]
add esp, 0x30
inc eax
mov ecx, 0xdac
mov dword [ebp - 0x108], eax
cmp ax, cx
jl 0x10037ac0
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1003d0d0
mov esp, ebp
pop ebp
ret
Function at 0x10037b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100609d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
lea edx, [ebp - 0x104]
mov dword [ebp - 0x21c], eax
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10037b90
lea ecx, [ebp - 0x104]
push 0x1004a28c
push ecx
call fcn.10039340
lea edx, [ebp - 0x104]
push edx
call fcn.10039320
add esp, 0xc
test eax, eax
jne 0x10037bcf
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d0d0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
push eax
mov eax, esi
call fcn.100378e0
add esp, 4
test eax, eax
jne 0x10037bbe
lea ecx, [ebp - 0x104]
push 0x10046760
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10037bbe
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fread]
push esi
push 2
lea edx, [ebp - 0x20c]
push 1
push edx
call edi
mov eax, 0x1cba
add esp, 0x10
cmp word [ebp - 0x20c], ax
jne 0x10037d41
push esi
push 2
lea ecx, [ebp - 0x20c]
push 1
push ecx
call edi
add esp, 0x10
cmp word [ebp - 0x20c], 1
jg 0x10037d41
push ebx
push esi
push 2
lea edx, [ebp - 0x214]
push 1
push edx
call edi
xor eax, eax
add esp, 0x10
xor ebx, ebx
cmp ax, word [ebp - 0x214]
jge 0x10037ca1
push esi
push 2
lea ecx, [ebp - 0x208]
push 1
push ecx
call edi
movsx edx, word [ebp - 0x208]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax*4 + 0x10066230]
push esi
push 8
lea edx, [ecx + edx*8]
push 1
push edx
call edi
inc ebx
add esp, 0x20
cmp bx, word [ebp - 0x214]
jl 0x10037c67
push esi
push 2
lea eax, [ebp - 0x210]
push 1
push eax
call edi
xor ecx, ecx
add esp, 0x10
xor ebx, ebx
cmp cx, word [ebp - 0x210]
jge 0x10037d21
nop
push esi
push 2
lea edx, [ebp - 0x208]
push 1
push edx
call edi
push esi
push 2
lea eax, [ebp - 0x218]
push 1
push eax
call edi
movsx ecx, word [ebp - 0x218]
push esi
push 1
push ecx
lea edx, [ebp - 0x204]
push edx
call edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
movsx ecx, word [ebp - 0x208]
mov edx, dword [ebp - 0x21c]
mov edx, dword [edx*4 + 0x100661a0]
inc ebx
add esp, 0x34
mov dword [edx + ecx*4], eax
cmp bx, word [ebp - 0x210]
jl 0x10037cc0
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d0d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1003d0d0
mov esp, ebp
pop ebp
ret
Function at 0x10039a10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10039a3e
push 0xa
push eax
push eax
call fcn.10038620
push eax
call fcn.10002cd0
add esp, 0x10
mov ebx, dword [sym.imp.MSVCR100.dll_fopen]
push 0x10046760
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x10039a71
push edi
push 0xb
push eax
push eax
call fcn.10038620
add esp, 0xc
push eax
call fcn.10038910
push esi
call fcn.10002cd0
add esp, 0xc
mov edi, dword [ebp + 8]
push 0x100469ac
push edi
call ebx
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10039aa1
push edi
push 0xb
push eax
push eax
call fcn.10038620
add esp, 0xc
push eax
call fcn.10038910
push ebx
call fcn.10002cd0
add esp, 0xc
mov edi, dword [sym.imp.MSVCR100.dll_feof]
push esi
call edi
add esp, 4
test eax, eax
jne 0x10039ae6
push esi
push 1
lea ecx, [ebp - 1]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
push esi
call edi
add esp, 0x14
test eax, eax
jne 0x10039adc
push ebx
push 1
lea edx, [ebp - 1]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
push esi
call edi
add esp, 4
test eax, eax
je 0x10039ab1
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fclose]
call esi
push ebx
call esi
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10039bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100609d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x1c
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x10039c46
mov eax, dword [str.AplitopMDT_d]
push 7
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov edx, edi
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10039c12
lea edx, [ebp - 0x108]
push edx
push edi
call fcn.10039560
push ebx
push edi
call fcn.10039560
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d0d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.1003d0d0
mov esp, ebp
pop ebp
ret
Function at 0x1003a1e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100609d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea esi, [ebp - 0x108]
mov edi, ecx
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x1003a204
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003a211
sub eax, edx
lea esi, [ebp + eax - 0x108]
mov eax, dword [str.AplitopMDT_d]
push 7
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.10039560
lea ecx, [ebp - 0x108]
push edi
push ecx
call fcn.10039560
add esp, 0x1c
cmp byte [esi], 0
je 0x1003a294
mov edi, dword [sym.imp.MSVCR100.dll__mkdir]
cmp byte [esi], 0x5c
jne 0x1003a28e
lea edx, [ebp - 0x108]
push edx
mov byte [esi], 0
call fcn.1003a100
add esp, 4
test eax, eax
jne 0x1003a28b
lea eax, [ebp - 0x108]
push eax
call edi
add esp, 4
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x1003a264
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003d0d0
mov esp, ebp
pop ebp
ret