joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1034b8e0
Capabilities:
Packed with generic packer

Disassembly:
lea esp, [esp - 4]
mov dword [esp], ebp
mov ebp, esp
sub esp, 0x7c
lea esp, [esp - 4]
mov dword [esp], esi
mov esi, ecx
jmp fcn.105d085e

Function at 0x1034e530
Capabilities:
Packed with generic packer

Disassembly:
lea esp, [esp - 4]
mov dword [esp], ebp
mov ebp, esp
lea esp, [esp - 4]
mov dword [esp], ecx
lea esp, [esp - 4]
mov dword [esp], ecx
mov dword [ebp - 8], ecx
jmp fcn.105d0890

Function at 0x10350a50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov byte [ebp - 1], 0x30
jne 0x10350a6a
call fcn.10350a1c
mov byte [ebp - 1], al
push 0x63
pop ebx
mov esi, ebx
cmp bl, byte [ebp - 1]
je 0x10350a96
push esi
lea eax, [ebp + 8]
push str._c:_
push eax
call fcn.103a11ec
add esp, 0xc
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x10350a96
inc edi
inc bl
inc esi
cmp bl, 0x7a
jle 0x10350a6f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10350f1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
lea eax, [ebp - 0x70]
push eax
call fcn.103af3e6
push dword [ebp + 0xc]
lea eax, [ebp - 0x70]
push dword [ebp + 8]
push eax
call fcn.103afd4d
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.103afe00
push edi
push 0
push dword [ebp + 0x10]
call fcn.103a1db0
mov ecx, dword [ebp + 0x10]
and dword [ebp - 4], 0
add esp, 0x24
push ebx
neg ecx
push esi
test edi, edi
jle 0x10350f81
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], edi
lea eax, [ecx + esi]
cdq
push 0x10
pop ebx
idiv ebx
mov al, byte [ebp + edx - 0x18]
xor byte [esi], al
inc esi
dec dword [ebp - 8]
jne 0x10350f6c
add dword [ebp - 4], edi
add ecx, edi
cmp dword [ebp - 4], 0x10
jl 0x10350f62
pop esi
pop ebx
leave
ret
Function at 0x1037e340
Capabilities:
Packed with generic packer

Disassembly:
lea esp, [esp - 4]
mov dword [esp], ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 0x231
xor dword [esp], 0x31d
sub esp, dword [esp]
lea esp, [esp - 4]
mov dword [esp], edi
mov dword [ebp - 0x130], ecx
mov dword [ebp - 4], 0x28ce7f40
jmp fcn.105d0854
Function at 0x10383f10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push esi
push edi
add edx, eax
xor edi, edi
cmp eax, edx
mov esi, eax
jae 0x10383f38
movzx eax, byte [esi]
mov eax, dword [eax*4 + 0x104833f0]
xor eax, edi
inc esi
cmp esi, edx
lea edi, [eax + eax*2]
jb 0x10383f24
mov eax, dword [ecx + 0x28]
dec eax
and eax, edi
pop edi
pop esi
ret 8

Function at 0x103843bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x808], ebx
push edi
je 0x10384419
cmp dword [esi + 0x804], ebx
jbe 0x10384419
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10384419
push ebx
lea eax, [ebp + 8]
push eax
push dword [esi + 0x804]
push dword [esi + 0x808]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1038440e
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x1038441b
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10384426
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
push edi
lea eax, [ebp - 0x400]
push eax
push 0x400
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x400]
push eax
call fcn.103530e0
cmp dword [ebp + 8], 0
pop ecx
je 0x1038445d
push dword [ebp + 8]
jmp 0x10384461
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push str._s_s
push eax
call fcn.103a11ec
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
lea edi, [esi + 0x404]
push edi
call fcn.103a1e10
pop ecx
pop ecx
lea eax, [ebp - 0x800]
push eax
mov ecx, esi
call fcn.103843bb
neg al
sbb eax, eax
and eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x103a0f54
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x103a1044
mov eax, 0x94
call fcn.1039fcd0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x103a10b9
mov ecx, dword [esi + 0x10]
mov dword [0x1048fca4], ecx
mov eax, dword [esi + 4]
mov dword [0x1048fcb0], eax
mov edx, dword [esi + 8]
mov dword [0x1048fcb4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1048fca8], esi
je 0x103a0fbf
or esi, 0x8000
mov dword [0x1048fca8], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1048fcac], eax
call fcn.103a68d3
test eax, eax
pop ecx
je 0x103a10b9
call fcn.103a5f7b
test eax, eax
jne 0x103a0fec
call fcn.103a6924
jmp 0x103a10b9
call fcn.103a8875
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10491744], eax
call fcn.103a8753
mov dword [0x1048fbbc], eax
call fcn.103a74e1
test eax, eax
jl 0x103a103d
call fcn.103a86b1
test eax, eax
jl 0x103a1038
call fcn.103a847e
test eax, eax
jl 0x103a1038
push 0
call fcn.103a452b
test eax, eax
pop ecx
jne 0x103a1038
inc dword [0x1048fbb8]
jmp 0x103a10ca
call fcn.103a76df
call fcn.103a5d64
jmp 0x103a0fe2
test eax, eax
jne 0x103a1074
cmp dword [0x1048fbb8], eax
jle 0x103a10b9
dec dword [0x1048fbb8]
cmp dword [0x1048fce0], eax
jne 0x103a1063
call fcn.103a4669
call fcn.103a76df
call fcn.103a5d64
call fcn.103a6924
jmp 0x103a10ca
cmp eax, 2
jne 0x103a10bd
push 0x8c
push 1
call fcn.103a41ab
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x103a10b9
push esi
push dword [0x104861ec]
call dword [0x1048fcf4]
test eax, eax
push esi
je 0x103a10b3
call fcn.103a5d81
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x103a10ca
call fcn.103a264e
pop ecx
xor eax, eax
jmp 0x103a10cd
cmp eax, 3
jne 0x103a10ca
push 0
call fcn.103a5f4c
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x103a0f57
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x103a1044
mov eax, 0x94
call fcn.1039fcd0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x103a10b9
mov ecx, dword [esi + 0x10]
mov dword [0x1048fca4], ecx
mov eax, dword [esi + 4]
mov dword [0x1048fcb0], eax
mov edx, dword [esi + 8]
mov dword [0x1048fcb4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1048fca8], esi
je 0x103a0fbf
or esi, 0x8000
mov dword [0x1048fca8], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1048fcac], eax
call fcn.103a68d3
test eax, eax
pop ecx
je 0x103a10b9
call fcn.103a5f7b
test eax, eax
jne 0x103a0fec
call fcn.103a6924
jmp 0x103a10b9
call fcn.103a8875
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10491744], eax
call fcn.103a8753
mov dword [0x1048fbbc], eax
call fcn.103a74e1
test eax, eax
jl 0x103a103d
call fcn.103a86b1
test eax, eax
jl 0x103a1038
call fcn.103a847e
test eax, eax
jl 0x103a1038
push 0
call fcn.103a452b
test eax, eax
pop ecx
jne 0x103a1038
inc dword [0x1048fbb8]
jmp 0x103a10ca
call fcn.103a76df
call fcn.103a5d64
jmp 0x103a0fe2
test eax, eax
jne 0x103a1074
cmp dword [0x1048fbb8], eax
jle 0x103a10b9
dec dword [0x1048fbb8]
cmp dword [0x1048fce0], eax
jne 0x103a1063
call fcn.103a4669
call fcn.103a76df
call fcn.103a5d64
call fcn.103a6924
jmp 0x103a10ca
cmp eax, 2
jne 0x103a10bd
push 0x8c
push 1
call fcn.103a41ab
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x103a10b9
push esi
push dword [0x104861ec]
call dword [0x1048fcf4]
test eax, eax
push esi
je 0x103a10b3
call fcn.103a5d81
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x103a10ca
call fcn.103a264e
pop ecx
xor eax, eax
jmp 0x103a10cd
cmp eax, 3
jne 0x103a10ca
push 0
call fcn.103a5f4c
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x103a4595
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10424508
call fcn.103a535c
push 8
call fcn.103a6888
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1048fce4], esi
jne 0x103a45c9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1048fce0], esi
mov al, byte [ebp + 0x10]
mov byte [0x1048fcdc], al
cmp dword [ebp + 0xc], edi
jne 0x103a4613
cmp dword [0x1049072c], edi
je 0x103a4603
mov eax, dword [0x10490728]
sub eax, 4
mov dword [0x10490728], eax
cmp eax, dword [0x1049072c]
jb 0x103a4603
mov eax, dword [eax]
cmp eax, edi
je 0x103a45e4
call eax
jmp 0x103a45e4
push 0x1042e37c
mov eax, 0x1042e370
call fcn.103a4513
pop ecx
push 0x1042e388
mov eax, 0x1042e380
call fcn.103a4513
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x103a4644
cmp dword [ebp + 0x10], edi
jne 0x103a4652
mov dword [0x1048fce4], esi
push dword [ebp + 8]
call fcn.103a44d1
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x103a4651
push 8
call fcn.103a67d3
pop ecx
ret
call fcn.103a5397
ret
Function at 0x103a78e8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x10485d90]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x103a7924
xor eax, eax
jmp 0x103a7a8e
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10490600]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x103a7962
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.103ac750
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x103a79fc
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x103a7a5f
jmp 0x103a7986
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x103a79c1
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x103a79b2
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x103a7992
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x103a7a20
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x103a7a29
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x103a7984
jmp 0x103a7a29
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x103a7a20
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x103a7a29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x103a7a89
cmp dword [ebp - 0x68], eax
je 0x103a7a5c
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x103a7a51
call fcn.103a0bd4
mov dword [eax], 9
call fcn.103a0bdd
mov dword [eax], esi
jmp 0x103a7a84
push dword [ebp - 0x68]
call fcn.103a0be6
pop ecx
jmp 0x103a7a84
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x103a7a71
cmp byte [edi], 0x1a
jne 0x103a7a71
xor eax, eax
jmp 0x103a7a8c
call fcn.103a0bd4
mov dword [eax], 0x1c
call fcn.103a0bdd
and dword [eax], 0
or eax, 0xffffffff
jmp 0x103a7a8c
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.1039fd3e
add ebp, 0x3a4
leave
ret
Function at 0x103a8a7c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10485d90]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10486578]
je 0x103a8ab3
inc eax
cmp eax, 0x13
jb 0x103a8aa4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10486578]
jne 0x103a8bd6
mov eax, dword [0x1048fbc4]
cmp eax, 1
je 0x103a8bb1
cmp eax, edx
jne 0x103a8ae3
cmp dword [0x1048fbc8], 1
je 0x103a8bb1
cmp ecx, 0xfc
je 0x103a8bd6
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x103a8b19
lea eax, [ebp - 0x7c]
push 0x104245cc
push eax
call fcn.103a1e10
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.103a1f10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x103a8b4d
mov eax, edi
push eax
call fcn.103a1f10
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10422c94
push edi
call fcn.103a1940
add esp, 0x10
push edi
call fcn.103a1f10
push dword [esi + 0x1048657c]
mov ebx, eax
call fcn.103a1f10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1039fcd0
mov ebx, esp
push 0x10424e48
push ebx
call fcn.103a1e10
push edi
push ebx
call fcn.103a1e20
push 0x104245c8
push ebx
call fcn.103a1e20
push dword [esi + 0x1048657c]
push ebx
call fcn.103a1e20
push 0x12010
push 0x10424594
push ebx
call fcn.103ab739
add esp, 0x2c
jmp 0x103a8bd6
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x1048657c]
push dword [esi]
call fcn.103a1f10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.1039fd3e
add ebp, 0x90
leave
ret
Function at 0x103a9756
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x103a992c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10490600]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x103a992c
test cl, 0x48
je 0x103a97c1
cmp byte [eax + 5], 0xa
je 0x103a97c1
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x103a9813
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x103a97fb
call fcn.103a0bd4
mov dword [eax], 9
call fcn.103a0bdd
mov dword [eax], esi
jmp 0x103a980b
cmp eax, 0x6d
je 0x103a992c
push eax
call fcn.103a0be6
pop ecx
or eax, 0xffffffff
jmp 0x103a992e
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x103a9927
test eax, eax
je 0x103a983a
cmp byte [ebx], 0xa
jne 0x103a983a
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x103a9843
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x103a9921
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x103a9911
cmp al, 0xd
je 0x103a9875
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x103a9903
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x103a988f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x103a988a
add dword [ebp + 0x10], 2
jmp 0x103a98e3
mov dword [ebp + 0x10], eax
jmp 0x103a98ff
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x103a98b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x103a98ff
cmp dword [ebp - 0xc], 0
je 0x103a98ff
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x103a98d8
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x103a98e3
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x103a9902
cmp ebx, dword [ebp + 0xc]
jne 0x103a98e8
cmp byte [ebp - 1], 0xa
jne 0x103a98e8
mov byte [ebx], 0xa
jmp 0x103a9902
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.103ac750
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x103a9903
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x103a9859
jmp 0x103a9921
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x103a9921
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x103a992e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103ab46d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1039fcd0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x103ab508
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1048fca4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x103ab508
cmp eax, 1
je 0x103ab529
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x103ab508
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x103ab4d5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x103ab504
xor eax, eax
inc eax
jmp 0x103ab548
cmp edi, eax
jae 0x103ab50c
xor eax, eax
jmp 0x103ab548
cmp eax, esi
jae 0x103ab513
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1048fca4]
jmp 0x103ab52c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x103ab739
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10490048], ebx
push esi
push edi
jne 0x103ab7b9
push 0x1042581c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x103ab7f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10422404
push edi
call esi
test eax, eax
mov dword [0x10490048], eax
je 0x103ab7f4
push 0x1042580c
push edi
call esi
push 0x104257f8
push edi
mov dword [0x1049004c], eax
call esi
cmp dword [0x1048fca4], 2
mov dword [0x10490050], eax
jne 0x103ab7b9
push 0x104257dc
push edi
call esi
test eax, eax
mov dword [0x10490058], eax
je 0x103ab7b9
push 0x104257c4
push edi
call esi
mov dword [0x10490054], eax
mov eax, dword [0x10490054]
test eax, eax
je 0x103ab7fe
call eax
test eax, eax
je 0x103ab7e5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10490058]
test eax, eax
je 0x103ab7e5
test byte [ebp - 8], 1
jne 0x103ab7fe
cmp dword [0x1048fcb0], 4
jb 0x103ab7f8
or byte [ebp + 0x12], 0x20
jmp 0x103ab81d
xor eax, eax
jmp 0x103ab82d
or byte [ebp + 0x12], 4
jmp 0x103ab81d
mov eax, dword [0x1049004c]
test eax, eax
je 0x103ab81d
call eax
mov ebx, eax
test ebx, ebx
je 0x103ab81d
mov eax, dword [0x10490050]
test eax, eax
je 0x103ab81d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10490048]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103ad8ae
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x103ad8c7
or eax, 0xffffffff
jmp 0x103ad928
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x103ad924
push 0x3d
push esi
call fcn.103aef75
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x103ad924
cmp esi, eax
je 0x103ad924
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x1048fcc4]
sete cl
cmp eax, dword [0x1048fcc8]
mov dword [ebp - 4], ecx
jne 0x103ad90a
mov edi, eax
call fcn.103ad84d
mov dword [0x1048fcc4], eax
cmp eax, ebx
jne 0x103ad963
cmp dword [ebp + 0xc], ebx
je 0x103ad92c
cmp dword [0x1048fccc], ebx
je 0x103ad92c
call fcn.103a9498
test eax, eax
je 0x103ad963
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x103ad935
xor eax, eax
jmp 0x103ad927
push 4
call fcn.103a040d
cmp eax, ebx
pop ecx
mov dword [0x1048fcc4], eax
je 0x103ad924
mov dword [eax], ebx
cmp dword [0x1048fccc], ebx
jne 0x103ad963
push 4
call fcn.103a040d
cmp eax, ebx
pop ecx
mov dword [0x1048fccc], eax
je 0x103ad924
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x1048fcc4]
sub edi, esi
push esi
call fcn.103ad800
mov edi, eax
test edi, edi
pop ecx
jl 0x103ad9ca
cmp dword [ebx], 0
je 0x103ad9ca
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.103a264e
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x103ad9aa
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x103ada0b
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x103ad9a1
mov eax, edi
shl eax, 2
push eax
push dword [0x1048fcc4]
call fcn.103a26bf
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x103ada0b
jmp 0x103ada06
cmp dword [ebp - 4], 0
jne 0x103ada72
test edi, edi
jge 0x103ad9da
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x1048fcc4]
call fcn.103a26bf
test eax, eax
pop ecx
pop ecx
je 0x103ad924
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x1048fcc4], eax
cmp dword [ebp + 0xc], 0
je 0x103ada5d
push esi
call fcn.103a1f10
inc eax
inc eax
push eax
call fcn.103a040d
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x103ada5d
push esi
push edi
call fcn.103a1e10
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x103ada56
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.103a264e
pop ecx
cmp dword [ebp - 4], 0
je 0x103ada6a
push esi
call fcn.103a264e
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x103ad927
push esi
call fcn.103a264e
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x103ad931