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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101baf44], 0
mov dword [0x101baf48], 0
mov dword [0x101baf54], 0
mov dword [0x101baf3c], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
jne 0x1019fc1a
mov eax, dword [ebp - 0x28]
mov dword [0x101baf3c], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x101baf3c]
add eax, 0xe82
mov dword [ebp - 0x28], eax
jmp 0x1019fbfb
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
add ecx, 1
mov edi, edx
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101baf44], edx
mov dword [0x101baf3c], 0x3264
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101baf48], edx
mov ecx, dword [0x101baf40]
add ecx, 0xfffff82b
mov dword [0x101baf40], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101baf4c], cl
mov dword [0x101baf3c], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101baf40], 0x112a
mov cl, byte [0x101baf4c]
mov edx, dword [0x101baf48]
mov byte [ebx + edx], cl
mov edx, dword [0x101baf44]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101baf48]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101baf40], 0x55d
and ecx, 0xff
mov dword [0x101baf54], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x101baf3c], 0x65f
mov dword [0x101baf40], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], edi
je 0x1019fc0b
mov eax, dword [0x101baf48]
mov ecx, dword [0x101baf44]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], eax
jmp 0x1019fc1a
Function at 0x1019fd36
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101baf3c]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101baf40], esi
add edx, 0xffffe928
mov dword [0x101baf3c], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1019f462
lea ecx, [0x1019f1e1]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x28], 0x15ee00
mov edx, dword [0x101baf28]
mov dword [esp + 0x78], edx
mov edx, dword [0x101baf2c]
mov dword [esp + 0x2c], edx
mov edx, dword [0x101baf30]
mov dword [esp + 0x20], edx
mov edx, dword [0x101baf34]
mov dword [esp + 0x6c], edx
mov dword [0x101baf3c], 0x5bd
mov edx, dword [0x101baf38]
mov dword [esp + 0x64], edx
mov dword [0x101baf40], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1019fe2f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x24], edx
mov dword [0x101baf3c], 0xe1c
call fcn.1019ef62
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x1019fe54
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1019fe1d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1019fde3
jmp 0x1019fe1d
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1019f748
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
jmp 0x1019fe13
Function at 0x1019a66c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101a5cb8]
jne 0x1019a676
repz ret
jmp fcn.1019c0db

Function at 0x1019d22f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1019a6ed
and dword [ebp - 4], 0
cmp dword [0x101a7bf8], 0
mov ebx, eax
jne 0x1019d2e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1019d391
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1019d391
push eax
call fcn.1019a67b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101a7bf8], eax
call esi
push eax
call fcn.1019a67b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101a7bfc], eax
call esi
push eax
call fcn.1019a67b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101a7c00], eax
call esi
push eax
call fcn.1019a67b
pop ecx
mov dword [0x101a7c08], eax
test eax, eax
je 0x1019d2e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1019a67b
pop ecx
mov dword [0x101a7c04], eax
mov eax, dword [0x101a7c04]
cmp eax, ebx
je 0x1019d338
cmp dword [0x101a7c08], ebx
je 0x1019d338
push eax
call fcn.1019a6f6
push dword [0x101a7c08]
mov esi, eax
call fcn.1019a6f6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1019d338
test edi, edi
je 0x1019d338
call esi
test eax, eax
je 0x1019d32f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1019d32f
test byte [ebp - 0xc], 1
jne 0x1019d338
or dword [ebp + 0x10], 0x200000
jmp 0x1019d371
mov eax, dword [0x101a7bfc]
cmp eax, ebx
je 0x1019d371
push eax
call fcn.1019a6f6
pop ecx
test eax, eax
je 0x1019d371
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1019d371
mov eax, dword [0x101a7c00]
cmp eax, ebx
je 0x1019d371
push eax
call fcn.1019a6f6
pop ecx
test eax, eax
je 0x1019d371
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101a7bf8]
call fcn.1019a6f6
pop ecx
test eax, eax
je 0x1019d391
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1019d393
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1019edb4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x101a5738], 0x1dce
mov dword [ebp - 0x10], eax
call fcn.1019fcbd
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1019edfa
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101a5734], 0x18ed
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1019ef1f
jmp 0x1019ee88
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x3d], bh
mov byte [ebp - 0x3e], cl
je 0x1019eec3
mov eax, dword [ebp - 0x3c]
add eax, 1
mov cl, byte [ebp - 0x3d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x3e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x34], eax
jne 0x1019ee35
jmp 0x1019eec3
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [0x101a5738], 0x1dce
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
jmp 0x1019ee35
mov al, byte [ebp - 0x3e]
test al, 1
jne 0x1019eef2
jmp 0x1019eecc
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x30], eax
jb 0x1019ee9a
jmp 0x1019ef1f
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax]
mov dword [0x101a5734], 0x1941
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101a5738], 0x92b
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019f23e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x1019f2a4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1019f31a
jmp 0x1019f348
mov eax, dword [ebp - 0x1c]
mov dword [0x101a5738], 0x258e
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x1019f2d3
jmp 0x1019f348
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x1019f283
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
jl 0x1019f2a4
jmp 0x1019f283
mov dword [0x101a5734], 0x636
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1019f348
mov dword [0x101a5734], 0x3d46
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1019f348
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1019f26b
jmp 0x1019f348
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1019f348
mov eax, 0x18d0
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
je 0x1019f357
mov eax, 0x1088
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x1019f357
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [0x101a5734], ecx
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x1019f520
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101a5740], 0
mov byte [0x101a5744], 0
mov edi, dword [0x101a5734]
add edi, 0xfffff8e9
mov dword [0x101a5738], edi
mov dword [0x101a573c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1019f580
xor eax, eax
mov dword [0x101a573c], 0
mov dword [ebp - 0x20], eax
jmp 0x1019f5bc
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x101a5734], 0x7c1
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101a5738], 0x17ea
mov eax, dword [0x101a573c]
add eax, 1
mov dword [0x101a573c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1019f580
jmp 0x1019f56f
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101a5748], 0
mov edi, dword [0x101a5740]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101a5748], esi
mov dword [0x101a5734], 0xa1b
mov eax, esi
cdq
idiv ecx
mov dword [0x101a5740], edx
mov dword [0x101a5738], 0xd32
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101a5744], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101a5744]
mov esi, dword [0x101a5740]
mov byte [ebx + esi], cl
mov esi, dword [0x101a573c]
add esi, 1
mov dword [0x101a573c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1019f5bc
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019f9f9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101a5738], 0x1e49
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x1019fa25
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101a12cc]
mov dh, byte [eax + 0x101a129d]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1019fa25
lea eax, [ebp - 0x24]
mov dword [0x101a5738], 0x1a22
mov ecx, dword [0x101a5734]
add ecx, 0xffffefe3
mov dword [0x101a5734], ecx
mov dword [ebp - 0x34], eax
call fcn.1019ef2a
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1019eb2c
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1019fa1d
mov dword [0x101a5734], 0x2091
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1019f374
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101a5734], 0x1f7a
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x3c], ecx
mov dword [0x101a5738], 0x8aa
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x50], ecx
add ecx, 0x138f
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1019fb2e
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1019fe47
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101a573c], 0
mov dword [0x101a5740], 0
mov dword [0x101a574c], 0
mov dword [0x101a5734], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x1019ffd7
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov edi, eax
add edi, 1
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101a573c], edx
mov dword [0x101a5734], 0x3264
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101a5740], edx
mov ecx, dword [0x101a5738]
add ecx, 0xfffff82b
mov dword [0x101a5738], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101a5744], cl
mov dword [0x101a5734], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101a5738], 0x112a
mov cl, byte [0x101a5744]
mov edx, dword [0x101a5740]
mov byte [ebx + edx], cl
mov edx, dword [0x101a573c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101a5740]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101a5738], 0x55d
and ecx, 0xff
mov dword [0x101a574c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101a5734], 0x65f
mov dword [0x101a5738], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], edi
je 0x1019ffca
mov eax, dword [0x101a573c]
mov ecx, dword [0x101a5740]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
jmp 0x1019feb2
mov eax, dword [0x101a5734]
add eax, 0xe82
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x101a5734], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019ffe7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101a5734]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101a5738], esi
add edx, 0xffffe928
mov dword [0x101a5734], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1019f72f
lea ecx, [0x1019f4b9]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], 0x147200
mov edx, dword [0x101a5720]
mov dword [esp + 0x64], edx
mov edx, dword [0x101a5724]
mov dword [esp + 0x24], edx
mov edx, dword [0x101a5728]
mov dword [esp + 0x50], edx
mov edx, dword [0x101a572c]
mov dword [esp + 0x7c], edx
mov dword [0x101a5734], 0x5bd
mov edx, dword [0x101a5730]
mov dword [esp + 0x38], edx
mov dword [0x101a5738], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101a00e3
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1019f9f9
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x101a0094
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x101a0106
jmp 0x101a00f2
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
je 0x101a00cd
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101a00e3
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x74], edx
mov dword [0x101a5734], 0xe1c
call fcn.1019f23e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x101a009e
jmp 0x101a0094
Function at 0x401030
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [str.ATESWM0_r]
mov dx, word [0x411294]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [0x411290]
mov dword [esp + 0x18], eax
mov al, byte [0x411296]
mov dword [esp + 0x1c], ecx
mov ecx, dword [str.ATESWM0_1_r]
mov word [esp + 0x20], dx
mov edx, dword [0x411280]
mov byte [esp + 0x22], al
mov eax, dword [0x411284]
mov dword [esp + 0x24], ecx
mov cl, byte [0x411288]
xor ebp, ebp
xor esi, esi
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], cl
jne 0x4010ab
lea edx, [esp + 0x18]
mov dword [esp + 0x10], edx
lea ebx, [ebp + 0xb]
jmp 0x4010b8
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
mov ebx, 0xd
mov byte [edi + 0x124], 0
test ebx, ebx
jle 0x401138
mov eax, ebx
sub eax, esi
mov ecx, eax
and ecx, 0x80000007
mov dword [esp + 0x14], 0
jns 0x4010de
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x4010e1
dec eax
mov ecx, dword [edi]
push 0
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40112e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_n_error__WriteFile_failed:__d_r_n
call fcn.00401760
mov edx, dword [edi]
add esp, 8
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp ebp, 1
jge 0x401161
push 0x64
inc ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401134
add esi, dword [esp + 0x14]
xor ebp, ebp
cmp esi, ebx
jl 0x4010c3
mov ecx, dword [esp + 0x10]
push ecx
push str._r_n_txd___s_r_n
call fcn.00401760
add esp, 8
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004031ba
add esp, 0x28
ret 4
mov eax, dword [esp + 0x10]
push eax
push str._r_n_error__write_failed:___s__r_n
call fcn.00401760
mov ecx, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.004031ba
add esp, 0x28
ret 4
Function at 0x401610
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x401650
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [esp + 0xc], 0x64
jmp 0x4016bd
cmp eax, 0x80
jl 0x40165c
mov eax, 0x80
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edi, [esi + 0x90]
push edi
push edx
call ebp
test eax, eax
je 0x4016d8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4016bd
mov dword [esi + 0x118], eax
push edi
mov byte [edi + eax], 0
push str._r_n_rxd___s_r_n
mov dword [esi + 0x110], 0
call fcn.00401760
mov eax, dword [esi + 0x118]
add esp, 8
push eax
push edi
lea ecx, [esi + 0x11c]
push ecx
mov ecx, esi
call fcn.004015d0
cmp byte [esi + 0x124], 0
jne 0x4016e1
cmp dword [esp + 0xc], 0xbb8
jl 0x401626
push str._r_n_error__AT_timeout_r_n
call fcn.00401760
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x18
ret
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x18
ret

Function at 0x401760
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x204
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x200], eax
mov ecx, dword [esp + 0x208]
lea eax, [esp + 0x20c]
push eax
push ecx
lea edx, [esp + 8]
push 0x1ff
push edx
call fcn.0040350c
add esp, 0x10
test eax, eax
jge 0x4017a5
mov dword [esp + 0x1fc], 0x2e2e2e
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004031ba
add esp, 0x204
ret

Function at 0x4017d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x400], eax
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push eax
push ecx
lea edx, [esp + 8]
push 0x1ff
push edx
call fcn.004035fd
add esp, 0x10
test eax, eax
jge 0x401827
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x411318]
mov word [esp + eax + 0x3f8], cx
add eax, 2
test cx, cx
jne 0x401810
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004031ba
add esp, 0x404
ret

Function at 0x4019b0
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4019d7
push eax
push esi
push str._n_DevMgr__error:_failed_to_query_reg___s___error_code____d__n
call fcn.004017d0
add esp, 0xc
xor al, al
ret
mov al, 1
ret