joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1302c5b0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x1302c610
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret
Function at 0x1302dd50
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x1302ddf0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret
Function at 0x13034d40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13073220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x14], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x13034d9a
push 0x1318e924
call fcn.1303f210
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x6400000
jbe 0x13034da9
push 0x1318e908
jmp 0x13034d7d
lea eax, [esi + 1]
mov dword [ebp + 8], edi
push eax
mov dword [ebp - 4], edi
call fcn.12f5c05b
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push esi
push edi
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp + 8]
je 0x13034dec
push edi
call fcn.12f5c050
add esp, 4
push 0x1318e8f8
jmp 0x13034d7d
mov ecx, dword [ebp - 0x14]
push 1
push edi
call fcn.13034e20
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x13037b60
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1307364f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, ecx
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
add esi, 2
call fcn.12f55740
mov eax, dword [edi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x34], 1
call fcn.1303a340
push 0x131912a8
lea ecx, [esp + 0x38]
call fcn.12f46b50
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov byte [esp + 0x28], 2
mov edi, eax
jle 0x13037c18
test esi, esi
je 0x13037be5
push str._r_n_r_n
lea ecx, [esp + 0x38]
call fcn.12f47f40
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov ecx, dword [edx + esi*4]
call fcn.1303dbd0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.12f47fa0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.12f472f0
inc esi
cmp esi, edi
jl 0x13037bd3
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.12f468f0
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.12f472f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.12f55750
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x130389e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x13073848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.12f55740
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.1303a340
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp edi, eax
jge 0x13038aa5
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.1303cea0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x13038a4b
push 0x1318ec94
jmp 0x13038a9d
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0xc], 0
call fcn.1303ef10
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x13038acb
mov eax, dword [esp + 8]
push eax
call fcn.12f5c050
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1318ec84
call fcn.1303f210
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.12f55750
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [esp + 8]
push ecx
call fcn.12f5c050
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.12f55750
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x1303b730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x13073d2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
call fcn.13033bb0
test eax, eax
jne 0x1303b85f
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.13033bb0
test eax, eax
jne 0x1303b85f
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.13033ff0
push 0x1318efd4
push 0x13111488
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.12f49230
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.13033ff0
mov esi, eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push 0x13111488
push eax
mov byte [esp + 0x34], 2
call fcn.12f47c40
push 0x1318efdc
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 3
call fcn.12f47a60
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x34], 4
call fcn.12f47890
mov esi, dword [esp + 0x30]
push 0x13176340
push eax
push esi
mov byte [esp + 0x34], 5
call fcn.12f47a60
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x28], 4
call fcn.12f472f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.12f472f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.12f472f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.12f472f0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.12f472f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.13033ff0
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x1303d400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x13073efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1307d24c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1307d24c]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x1307d24c]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.13033980
mov eax, dword [0x1307d24c]
mov dword [esi + 0x20], eax
mov ecx, dword [0x1307d24c]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1307d24c]
mov dword [esi + 0x28], edx
mov eax, dword [0x1307d24c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1307d24c]
mov dword [esi + 0x30], ecx
mov edx, dword [0x1307d24c]
mov dword [esi + 0x34], edx
push 0x131912a8
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.12f47570
push 0x131912a8
mov ecx, edi
call fcn.12f47570
push 0x131912a8
mov ecx, ebx
call fcn.12f47570
mov ecx, ebp
call fcn.13033b70
push 0x131912a8
lea ecx, [esi + 0x20]
call fcn.12f47570
push 0x131912a8
lea ecx, [esi + 0x24]
call fcn.12f47570
push 0x131912a8
lea ecx, [esi + 0x28]
call fcn.12f47570
push 0x131912a8
lea ecx, [esi + 0x2c]
call fcn.12f47570
push 0x131912a8
lea ecx, [esi + 0x30]
call fcn.12f47570
push 0x131912a8
lea ecx, [esi + 0x34]
call fcn.12f47570
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1303d920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x13074121
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x13089cac
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x1303d96b
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x1303d966
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x1303d956
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.1303a840
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x1303d98d
push edi
call fcn.12f5c050
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x13089ca8
call fcn.12f472f0
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.12f472f0
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.12f472f0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.12f472f0
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.12f472f0
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.12f472f0
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.12f472f0
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.13033a30
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.12f472f0
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.12f472f0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.12f472f0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1303da80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov eax, 5
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], str.attachment
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.multipart_mixed
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.multipart_related
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x1318eb04
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], str.multipart_digest
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 9
mov dword [esp + 0x58], 0x1318ea64
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], str.text_html
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], str.message_rfc822
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x20]
mov esi, dword [edi - 4]
cmp esi, ebx
je 0x1303db57
mov eax, dword [ebp + 0x24]
push esi
mov dword [esp + 0x18], eax
call fcn.12f5c51d
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call fcn.12f5e383
add esp, 0x10
test eax, eax
jne 0x1303db79
mov esi, dword [edi]
cmp esi, ebx
je 0x1303db9f
mov ebp, dword [ebp + 8]
push esi
call fcn.12f5c51d
push eax
push esi
push ebp
call fcn.12f5e383
add esp, 0x10
test eax, eax
je 0x1303db9f
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add edi, 0xc
inc eax
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x1303db30
mov eax, dword [ebp + 0x30]
cmp dword [eax - 8], ebx
je 0x1303dbb2
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
lea edx, [eax + eax*2]
pop ebx
mov eax, dword [esp + edx*4 + 0x14]
add esp, 0x6c
ret
lea ecx, [ebp + 0x10]
call fcn.13033bb0
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
pop ebp
add eax, 5
pop ebx
add esp, 0x6c
ret
Function at 0x1303efe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x130743d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1303f055
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1303f055
cmp ecx, eax
ja 0x1303f055
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.12f5c05b
mov edx, dword [ebp + 8]
mov ecx, edi
add esp, 4
mov dword [edx], eax
mov byte [eax + edi], 0
mov edi, dword [edx]
mov esi, dword [esi + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1303f1e8
mov ecx, esi
call fcn.1303da80
cmp eax, 3
je 0x1303f1b0
cmp eax, 4
je 0x1303f1b0
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.1303cea0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x1303f0a5
push 0x1318e8d8
call fcn.1303f210
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1303f0de
push 0x1318ebe8
call fcn.1303f210
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.12f5c05b
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x14]
je 0x1303f148
push 0x1318e8f8
call fcn.1303f210
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.12f5c050
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call fcn.1303bd40
add esp, 0x10
test eax, eax
jne 0x1303f190
push 0x1318ecf4
call fcn.1303f210
push esi
call fcn.12f5c050
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.12f5c050
add esp, 4
jmp 0x1303f1e8
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.1303dbd0
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.1303bb50
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.12f472f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x13041d20
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x108
test edx, edx
push ebx
push ebp
push edi
je 0x13041e4a
mov ebp, dword [esp + 0x11c]
test ebp, ebp
je 0x13041e4a
mov ebx, dword [esp + 0x120]
test ebx, ebx
je 0x13041e4a
cmp byte [edx], 0
je 0x13041e4a
cmp byte [ebp], 0
je 0x13041e4a
cmp byte [ebx], 0
je 0x13041e4a
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x13041e4a
cmp eax, 0x103
jae 0x13041dc8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x128]
call fcn.12f421d0
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
push esi
mov dword [esp + 0x10], 0
mov esi, 0x400
cmp esi, 0xa00000
jae 0x13041e3b
add esi, esi
push esi
call fcn.12f5c05b
mov edi, eax
add esp, 4
test edi, edi
je 0x13041e3b
mov edx, dword [esp + 0x11c]
push edx
push esi
push edi
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x13041e0e
lea ecx, [esi - 1]
cmp eax, ecx
jb 0x13041e19
push edi
call fcn.12f5c050
add esp, 4
jmp 0x13041dd6
mov ecx, dword [esp + 0x128]
push edi
mov dword [esp + 0x14], 1
mov byte [edi + eax], 0
call fcn.12f421d0
push edi
call fcn.12f5c050
add esp, 4
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret

Function at 0x13041f70
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
push 0
call fcn.12f4c000
mov ebp, dword [esp + 0x14]
mov edi, 0x400
cmp edi, 0xa00000
jae 0x1304200f
add edi, edi
push edi
call fcn.12f5c05b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1304200f
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov esi, eax
test esi, esi
jbe 0x13041fb9
lea eax, [edi - 2]
cmp esi, eax
jb 0x13041fc8
push ebx
call fcn.12f5c050
add esp, 4
test esi, esi
je 0x1304200f
jmp 0x13041f8a
mov byte [esi + ebx], 0
mov al, byte [ebx]
test al, al
mov ebp, 1
mov esi, ebx
je 0x13041fff
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.12f4c4a0
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 0x13041fd9
push ebx
call fcn.12f5c050
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 0x13042020
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0
call fcn.12f4c000
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1304203e
push 0xffffffffffffffff
push 0
call fcn.12f4c000
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, 0x400
cmp edi, 0xa00000
jae 0x13042109
add edi, edi
push edi
call fcn.12f5c05b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x13042109
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 0x13042087
lea ecx, [edi - 2]
cmp esi, ecx
jb 0x13042096
push ebx
call fcn.12f5c050
add esp, 4
test esi, esi
je 0x13042109
jmp 0x1304204b
mov byte [esi + ebx], 0
mov al, byte [ebx]
test al, al
mov ebp, 1
mov esi, ebx
je 0x130420f9
push 0x3d
push esi
call fcn.12f5f8b2
mov edi, eax
add esp, 8
test edi, edi
je 0x130420e1
mov ecx, dword [esp + 0x1c]
mov byte [edi], 0
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.12f4c4a0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x130420de
mov edx, dword [ecx + 4]
lea eax, [edi + 1]
push eax
push edx
call fcn.12f4c4a0
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 0x130420a7
push ebx
call fcn.12f5c050
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 0x130449c0
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 0x130449de
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.12f5c05b
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 0x13044a1d
xor ebx, ebx
jmp 0x13044a3a
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 0x13044a36
or ebx, 0xffffffff
jmp 0x13044a3a
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 0x13044a8d
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 0x13044a72
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x13044a89
mov ecx, dword [esp + 0x10]
push ecx
call fcn.12f5c050
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 0x13044ab2
test ebx, ebx
je 0x13044b86
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 0x13044b86
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.12f5c05b
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 0x13044ae6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x13044b25
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x13044b25
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 0x13044b1f
or esi, 0xffffffff
jmp 0x13044b27
mov esi, dword [esp + 0x28]
jmp 0x13044b27
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 0x13044b4f
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 0x13044ae2
push eax
call fcn.12f5c050
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.12f5c050
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret