joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100039b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x1012c428
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jc]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012c428], cl
inc eax
cmp eax, 0x100
jl 0x100039d0
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x1012c428
push 0
mov ecx, 0x10121080
call fcn.100072f0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10126fd0], ecx
mov dword [ebp - 8], 0
jbe 0x10003bb5
mov edi, dword [0x10121028]
lea eax, [esi + 0xa]
mov esi, dword [0x10121024]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x10003afd
cmp esi, eax
ja 0x10003afd
mov ecx, eax
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x1012102c]
jne 0x10003ad6
mov ecx, edi
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x38e38e2
ja 0x10003bc6
mov edx, dword [0x1012102c]
sub edx, esi
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10003ad6
mov edx, eax
shr edx, 1
mov esi, 0x38e38e3
sub esi, edx
cmp esi, eax
jae 0x10003ab7
xor eax, eax
jmp 0x10003ab9
add eax, edx
cmp eax, ecx
jae 0x10003abf
mov eax, ecx
push eax
mov ecx, 0x10121024
call fcn.10004cb0
mov edi, dword [0x10121028]
mov esi, dword [0x10121024]
lea edx, [ebx + ebx*8]
lea eax, [esi + edx*8]
test edi, edi
je 0x10003af5
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x10121028]
mov esi, dword [0x10121024]
mov eax, dword [ebp - 4]
jmp 0x10003b90
mov ebx, dword [0x1012102c]
cmp edi, ebx
jne 0x10003b77
mov ecx, edi
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x38e38e2
ja 0x10003bc6
mov edx, ebx
sub edx, esi
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10003b74
mov edx, eax
shr edx, 1
mov esi, 0x38e38e3
sub esi, edx
cmp esi, eax
jae 0x10003b55
xor eax, eax
jmp 0x10003b57
add eax, edx
cmp eax, ecx
jae 0x10003b5d
mov eax, ecx
push eax
mov ecx, 0x10121024
call fcn.10004cb0
mov edi, dword [0x10121028]
mov esi, dword [0x10121024]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10003b90
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x10121028]
mov esi, dword [0x10121024]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x48
mov dword [0x10121028], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x48
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x10003a38
pop edi
pop esi
mov dword [0x10126fbc], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10003be0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x1012c428
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x1001fa60]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012c428], cl
inc eax
cmp eax, 0x100
jl 0x10003c00
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x1012c428
push 0
mov ecx, 0x10121080
call fcn.100072f0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10126fd4], ecx
mov dword [ebp - 8], 0
jbe 0x10003dd9
mov ebx, dword [0x10121038]
lea ecx, [esi + 0xa]
mov esi, dword [0x10121034]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x10003d18
cmp esi, ecx
ja 0x10003d18
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x1012103c]
jne 0x10003d04
mov ecx, ebx
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf83e0e
ja 0x10003dea
mov edx, dword [0x1012103c]
sub edx, esi
mov eax, 0x3e0f83e1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10003d04
mov edx, eax
shr edx, 1
mov esi, 0xf83e0f
sub esi, edx
cmp esi, eax
jae 0x10003ce5
xor eax, eax
jmp 0x10003ce7
add eax, edx
cmp eax, ecx
jae 0x10003ced
mov eax, ecx
push eax
mov ecx, 0x10121034
call fcn.10004da0
mov ebx, dword [0x10121038]
mov esi, dword [0x10121034]
imul edi, edi, 0x108
add edi, esi
test ebx, ebx
je 0x10003dab
mov esi, edi
jmp 0x10003d96
mov edi, dword [0x1012103c]
cmp ebx, edi
jne 0x10003d8f
mov ecx, ebx
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf83e0e
ja 0x10003dea
mov edx, edi
sub edx, esi
mov eax, 0x3e0f83e1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10003d8f
mov edx, eax
shr edx, 1
mov esi, 0xf83e0f
sub esi, edx
cmp esi, eax
jae 0x10003d70
xor eax, eax
jmp 0x10003d72
add eax, edx
cmp eax, ecx
jae 0x10003d78
mov eax, ecx
push eax
mov ecx, 0x10121034
call fcn.10004da0
mov ebx, dword [0x10121038]
mov esi, dword [0x10121034]
test ebx, ebx
je 0x10003dab
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [0x10121038]
mov esi, dword [0x10121034]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x108
mov dword [0x10121038], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x108
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x10003c68
pop edi
pop esi
mov dword [0x10126fc0], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10003e10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x1012c428
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_j_]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012c428], cl
inc eax
cmp eax, 0x100
jl 0x10003e30
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x1012c428
push 0
mov ecx, 0x10121080
call fcn.100072f0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10126fd8], ecx
mov dword [ebp - 8], 0
jbe 0x1000400a
mov ebx, dword [0x10121048]
lea ecx, [esi + 0xa]
mov esi, dword [0x10121044]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x10003f48
cmp esi, ecx
ja 0x10003f48
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x1012104c]
jne 0x10003f34
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x1000401b
mov edx, dword [0x1012104c]
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10003f34
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10003f15
xor eax, eax
jmp 0x10003f17
add eax, edx
cmp eax, ecx
jae 0x10003f1d
mov eax, ecx
push eax
mov ecx, 0x10121044
call fcn.10004e90
mov ebx, dword [0x10121048]
mov esi, dword [0x10121044]
imul edi, edi, 0x105
add edi, esi
test ebx, ebx
je 0x10003fdc
mov esi, edi
jmp 0x10003fc6
mov edi, dword [0x1012104c]
cmp ebx, edi
jne 0x10003fbf
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x1000401b
mov edx, edi
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10003fbf
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10003fa0
xor eax, eax
jmp 0x10003fa2
add eax, edx
cmp eax, ecx
jae 0x10003fa8
mov eax, ecx
push eax
mov ecx, 0x10121044
call fcn.10004e90
mov ebx, dword [0x10121048]
mov esi, dword [0x10121044]
test ebx, ebx
je 0x10003fdc
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [0x10121048]
mov esi, dword [0x10121044]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x105
mov dword [0x10121048], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x105
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x10003e98
pop edi
pop esi
mov dword [0x10126fc4], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10004030
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x1012c428
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jv]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012c428], cl
inc eax
cmp eax, 0x100
jl 0x10004050
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x1012c428
push 0
mov ecx, 0x10121080
call fcn.100072f0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10126fdc], ecx
mov dword [ebp - 8], 0
jbe 0x1000423a
mov edi, dword [0x10121058]
lea eax, [esi + 0xa]
mov esi, dword [0x10121054]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x10004181
cmp esi, eax
ja 0x10004181
mov ecx, eax
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x1012105c]
jne 0x10004156
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x1000424b
mov edx, dword [0x1012105c]
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10004156
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10004137
xor eax, eax
jmp 0x10004139
add eax, edx
cmp eax, ecx
jae 0x1000413f
mov eax, ecx
push eax
mov ecx, 0x10121054
call fcn.10004f80
mov edi, dword [0x10121058]
mov esi, dword [0x10121054]
mov eax, ebx
shl eax, 6
add eax, esi
add eax, ebx
test edi, edi
je 0x10004179
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x10121058]
mov esi, dword [0x10121054]
mov eax, dword [ebp - 4]
jmp 0x10004215
mov ebx, dword [0x1012105c]
cmp edi, ebx
jne 0x100041fb
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x1000424b
mov edx, ebx
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x100041f8
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x100041d9
xor eax, eax
jmp 0x100041db
add eax, edx
cmp eax, ecx
jae 0x100041e1
mov eax, ecx
push eax
mov ecx, 0x10121054
call fcn.10004f80
mov edi, dword [0x10121058]
mov esi, dword [0x10121054]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10004215
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x10121058]
mov esi, dword [0x10121054]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x41
mov dword [0x10121058], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x41
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x100040b8
pop edi
pop esi
mov dword [0x10126fc8], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10004440
Capabilities:
Encode data using xor

Disassembly:
push ecx
push 0x100
push 0
push 0x1012c428
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10004460
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012c428], cl
inc eax
cmp eax, 0x100
jl 0x10004460
movzx edx, byte [esi + 4]
push edx
push 0x1012c428
push 0
mov ecx, 0x10121080
call fcn.100072f0
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xb
ja case.default.0x1000449c
jmp dword [eax*4 + 0x10004518]
mov ecx, 0xe
jmp 0x100044fa
mov ecx, 0xf
jmp 0x100044fa
mov ecx, 0x10
jmp 0x100044fa
mov ecx, 0x11
jmp 0x100044fa
mov ecx, 0x12
jmp 0x100044fa
mov ecx, 0x13
jmp 0x100044fa
mov ecx, 0x14
jmp 0x100044fa
mov ecx, 0x16
jmp 0x100044fa
mov ecx, 0x18
jmp 0x100044fa
mov ecx, 0x19
jmp 0x100044fa
push 0x7d0
mov ecx, 0x64
jmp 0x100044ff
mov ecx, 0x15
push 0x1388
call fcn.10007a50
push eax
push 2
mov eax, 0x10126428
call fcn.1000f810
add esp, 0xc
pop ecx
ret

Function at 0x10004820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x10126ffc], 1
push edi
je 0x100048d4
mov ecx, dword [0x10121024]
mov dword [0x10126fb8], ebx
mov dword [0x10126fbc], ebx
mov dword [0x10126fc0], ebx
mov dword [0x10126fc4], ebx
mov dword [0x10126fc8], ebx
mov dword [0x10126fcc], ebx
mov dword [0x10126fd0], ebx
mov dword [0x10126fd4], ebx
mov dword [0x10126fd8], ebx
mov dword [0x10126fdc], ebx
mov dword [0x10126fe0], ebx
cmp ecx, dword [0x10121028]
je 0x10004898
mov dword [0x10121028], ecx
mov ecx, dword [0x10121034]
cmp ecx, dword [0x10121038]
je 0x100048ac
mov dword [0x10121038], ecx
mov ecx, dword [0x10121044]
cmp ecx, dword [0x10121048]
je 0x100048c0
mov dword [0x10121048], ecx
mov ecx, dword [0x10121054]
cmp ecx, dword [0x10121058]
je 0x100048d4
mov dword [0x10121058], ecx
mov word [ebp - 0x3c], 0x38c1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x100048ee
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x101261b4]
mov edx, dword [str.PREMIUM]
mov byte [ebp - 0x3a], al
mov eax, dword [0x10126ffc]
mov dword [ebp - 0x38], eax
mov eax, dword [0x100169b0]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.1000fac0
push 0x100
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x28]
push 0x1012c428
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x1001fd60]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012c428], cl
inc eax
cmp eax, 0x100
jl 0x10004940
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
push ecx
push edx
push 0x1012c428
push ebx
mov ecx, 0x10121080
call fcn.100072f0
movzx ecx, byte [ebp - 0x3b]
add esp, 0x18
lea edx, [ebp - 0x3c]
call fcn.10001940
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012a74
mov esp, ebp
pop ebp
ret
Function at 0x100069f0
Capabilities:
Check mutex on windows

Disassembly:
push edi
xor edi, edi
mov eax, 1
cmp dword [0x10121004], edi
jle 0x10006a5a
push ebx
xor ebx, ebx
push esi
mov eax, dword [0x10121008]
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x10006a13
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10006a49
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add ebx, 0x1c
cmp edi, dword [0x10121004]
jl 0x10006a04
pop esi
pop ebx
mov eax, 1
pop edi
ret
inc edi
mov dword [0x1012101c], esi
pop esi
mov dword [0x10121018], edi
xor eax, eax
pop ebx
pop edi
ret
Function at 0x10006dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x10121024]
mov dword [ebp - 0x48], eax
xor al, al
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x25], al
cmp edi, dword [0x10121028]
je 0x10006ede
mov ebx, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0x44], ecx
cmp byte [edi], 0
jne 0x10006eaf
test al, al
jne 0x10006e35
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x2c]
call fcn.10006f40
test al, al
je 0x10006ede
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 0x25], 1
mov esi, dword [edi + 4]
mov eax, dword [ebx + 0x34]
mov edx, esi
sub edx, eax
push edx
push eax
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x10006eac
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
push 0
sub ecx, dword [ebx + 0x34]
push 0
add ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10006eac
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006eac
mov edx, dword [ebp - 0x44]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
cmp ecx, 4
jb 0x10006ef3
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10006eac
sub ecx, 4
add eax, 4
jmp 0x10006e98
mov al, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x10121028]
jne 0x10006e03
test al, al
je 0x10006ede
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a74
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x34]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x40]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.10012a74
mov esp, ebp
pop ebp
ret 4
Function at 0x10006f40
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push closesocket
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006f93
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10006fa6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a74
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x10006fdd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a74
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1000701b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10007014
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10007014
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x1000703b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a74
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.10012a74
mov esp, ebp
pop ebp
ret 8
Function at 0x100071d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10121298]
push ebx
push esi
push edi
test eax, eax
js 0x100072dd
cmp eax, 1
jge 0x100072dd
mov esi, eax
imul esi, esi, 0x214
add esi, 0x10121084
push str.Logs
inc eax
lea ebx, [esi + 4]
push 0x100
mov dword [0x10121298], eax
push ebx
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x100072dd
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push ebx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.log
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x100072b8
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a74
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100072dd
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012a74
mov esp, ebp
pop ebp
ret