joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10199984
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1019a496
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 0x101999c0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x1021cb48], 0x370c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x1021cb44], 0x1fed
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10199a3f
jmp 0x10199a84
mov al, byte [ebp - 0x35]
test al, 1
jne 0x10199a4a
jmp 0x10199ae4
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x40]
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 - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x35], cl
je 0x10199a08
jmp 0x10199ab3
mov eax, dword [ebp - 0x34]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x24]
add edx, 0x1c
mov esi, dword [ebp - 0x1c]
add esi, edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x54]
add eax, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x50]
add edx, dword [eax + esi*4]
mov dword [0x1021cb44], 0x1415
mov dword [ebp - 0x34], edx
jmp 0x10199a3f
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edx
jmp 0x10199a14
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x35]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x10199a14
jmp 0x10199a08
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov edx, dword [ebp - 0x60]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
jb 0x10199a94
jmp 0x10199a3f
Function at 0x10199b0d
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 edi, dword [0x1021cb48]
add edi, 0x53c
mov dword [0x1021cb48], edi
mov dword [0x1021cb50], 0
mov byte [0x1021cb54], 0
mov dword [0x1021cb4c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x1021cb48], 0x1e35
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1021cb48]
add eax, 0x325
mov dword [0x1021cb48], eax
mov eax, dword [0x1021cb4c]
add eax, 1
mov dword [0x1021cb4c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10199b5a
xor eax, eax
mov dword [0x1021cb44], 0x182
mov dword [0x1021cb4c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1021cb58], 0
mov edx, dword [0x1021cb50]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1021cb58], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x1021cb50], edx
mov dword [0x1021cb44], 0x918
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1021cb54], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x1021cb44], 0x16c8
mov cl, byte [0x1021cb54]
mov edx, dword [0x1021cb50]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x1021cb4c]
add edx, 1
mov dword [0x1021cb4c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10199bb2
mov dword [0x1021cb44], 0x26c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10199c6b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jmp 0x10199d12
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10199d40
jmp 0x10199d90
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x10199d0a
jmp 0x10199d90
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], cl
mov al, byte [ebp - 0x21]
test al, 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], edx
jne 0x10199d12
jmp 0x10199d28
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10199d7d
jmp 0x10199d90
mov eax, dword [ebp - 0x18]
add esp, 0x2c
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edx
jne 0x10199ccb
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x10199c97
jmp 0x10199d90
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff5
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2], 0x61
jne 0x10199d90
mov eax, dword [0x1021cb44]
add eax, 0xfffff36e
mov dword [0x1021cb44], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10199cf6
jmp 0x10199d90
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10199caf
xor eax, eax
mov dword [0x1021cb44], 0x982
mov dword [ebp - 0x18], eax
jmp 0x10199d0a
Function at 0x1019a0ff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1021cb4c], 0
mov dword [0x1021cb50], 0
mov dword [0x1021cb5c], 0
mov dword [0x1021cb44], 0x53e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jne 0x1019a181
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x1021cb4c]
mov ecx, dword [0x1021cb50]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1021cb48], 0xb88
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1021cb4c], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x1021cb50], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x1021cb54], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x1021cb44]
add edx, 0x20cc
mov dword [0x1021cb44], edx
mov cl, byte [0x1021cb54]
mov edx, dword [0x1021cb50]
mov byte [edi + edx], cl
mov edx, dword [0x1021cb4c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1021cb50]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1021cb5c], ebx
mov dword [0x1021cb44], 0x395
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x2c], edx
je 0x1019a162
jmp 0x1019a16a
Function at 0x1019a35f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x1021cb48]
mov edi, esi
add edi, 0xffffdf43
mov dword [0x1021cb44], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
jmp 0x1019a461
mov eax, dword [ebp - 0x3c]
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 - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.1019a25a
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x1021cb44], 0x21cb
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x34], ecx
add ecx, 0x23b0
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x1019a41f
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
add ecx, 0xffffe336
mov dword [0x1021cb48], ecx
mov dword [ebp - 0x4c], eax
call fcn.10199da4
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
call fcn.1019a6b6
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x1019a48d
jmp 0x1019a394
mov eax, dword [ebp - 0x38]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1019b634]
mov dh, byte [eax + 0x1019b605]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x38], ecx
je 0x1019a429
jmp 0x1019a461
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x4065d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d448]
jne 0x4065df
repz ret
jmp fcn.004085cb

Function at 0x407be3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004052df
and dword [ebp - 0x14], 0
cmp dword [0x43bef0], 0
mov dword [ebp - 0x18], eax
jne 0x407c96
push 0x4021a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407d3e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402194
push ebx
call edi
test eax, eax
je 0x407d3e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402184
push ebx
mov dword [0x43bef0], eax
call edi
push eax
call esi
push 0x402170
push ebx
mov dword [0x43bef4], eax
call edi
push eax
call esi
push 0x402154
push ebx
mov dword [0x43bef8], eax
call edi
push eax
call esi
mov dword [0x43bf00], eax
test eax, eax
je 0x407c96
push 0x40213c
push ebx
call edi
push eax
call esi
mov dword [0x43befc], eax
mov eax, dword [0x43befc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407cef
cmp dword [0x43bf00], ecx
je 0x407cef
push eax
call esi
push dword [0x43bf00]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407cef
test ebx, ebx
je 0x407cef
call edi
test eax, eax
je 0x407ce6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407ce6
test byte [ebp - 8], 1
jne 0x407cef
or dword [ebp + 0x10], 0x200000
jmp 0x407d22
mov eax, dword [0x43bef4]
cmp eax, dword [ebp - 0x18]
je 0x407d22
push eax
call esi
test eax, eax
je 0x407d22
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407d22
mov eax, dword [0x43bef8]
cmp eax, dword [ebp - 0x18]
je 0x407d22
push eax
call esi
test eax, eax
je 0x407d22
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43bef0]
call esi
test eax, eax
je 0x407d3e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407d40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065d5
leave
ret
Function at 0x409ec0
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0x934
cmp dword [0x4b7a60], 0x37
jne 0x409f45
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push 0x402a58
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0
lea ecx, [esp + 0x138]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea ecx, [esp + 0x538]
push ecx
push 0x402a6c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x4b7a64]
mov ecx, dword [0x4b7144]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x934
ret
Function at 0x5a5ca0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x159000]
push edi
or ebp, 0xffffffff
jmp 0x5a5cc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5a5cc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a5cb8
mov eax, 1
add ebx, ebx
jne 0x5a5cdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5a5cec
jne 0x5a5d0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a5d0b
dec eax
add ebx, ebx
jne 0x5a5cf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5a5cd0
add ebx, ebx
jne 0x5a5d07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5a5d5d
xor ecx, ecx
sub eax, 3
jb 0x5a5d23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5a5d92
sar eax, 1
mov ebp, eax
jmp 0x5a5d2e
add ebx, ebx
jne 0x5a5d2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a5cfc
inc ecx
add ebx, ebx
jne 0x5a5d3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a5cfc
add ebx, ebx
jne 0x5a5d49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5a5d3e
jne 0x5a5d5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5a5d3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5a5d7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5a5d6e
jmp 0x5a5cbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5a5d7c
add edi, ecx
jmp 0x5a5cbe
pop esi
mov edi, esi
mov ecx, 0x160
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5a5d9a
cmp byte [edi], 5
jne 0x5a5d9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5a5d9f
lea edi, [esi + 0x1a3000]
mov eax, dword [edi]
or eax, eax
je 0x5a5e0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a5c90]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a5cf4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5a5dcc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a5cf8]
or eax, eax
je 0x5a5e08
mov dword [ebx], eax
add ebx, 4
jmp 0x5a5de9
call dword [esi + 0x1a5d00]
mov ebp, dword [esi + 0x1a5cfc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5a5e42
sub esp, 0xffffff80
jmp 0x402bae
Function at 0x10ee2
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
xor esi, esi
cmp dword [esi*4 + 0x115a0], 0
je 0x10ef6
inc esi
cmp esi, 0x1f
jb 0x10ee6
mov edi, dword [esp + 0xc]
push edi
push esi
push 0x10ece
call sub.ntoskrnl.exe_DbgPrint
and dword [esi*4 + 0x115a4], 0
add esp, 0xc
mov dword [esi*4 + 0x115a0], edi
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x112c1
Capabilities:
Persist via run registry key
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x111e8
lea eax, [ebp - 0xc]
push eax
call edi
mov esi, dword [ebp + 8]
push esi
call fcn.0001054c
lea eax, [esi + eax*2]
jmp 0x112f0
cmp word [eax], 0x5c
je 0x112fa
dec eax
dec eax
cmp eax, esi
jne 0x112e8
cmp word [eax], 0x5c
jne 0x112fc
inc eax
inc eax
push eax
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
xor edi, edi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0xc0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
je 0x11340
push 0x11268
jmp 0x11363
push esi
call fcn.0001054c
shl eax, 1
push eax
push esi
push 1
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
je 0x1136c
push 0x1127c
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x11379
push 0x112a0
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
leave
ret 4

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e55
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c98
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c98
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e3f
inc ebx
jmp 0x402e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e5c
lea eax, [ebp - 8]
call fcn.004044dc
ret

Function at 0x402e64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044dc
test esi, esi
jne 0x402e9b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045cc
jmp 0x402ebc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402ebc
cmp dword [ebx], 0
je 0x402ebc
dec esi
jmp 0x402ea3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a7020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40363c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40361c
xor eax, eax
push ebp
push 0x403615
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403658
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40361c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a7020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a7020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404338
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ae048], 0
je 0x404399
cmp word [0x4ae21c], 0xd7b2
jne 0x404361
cmp dword [0x4ae224], 0
jbe 0x404361
mov eax, 0x4ae218
call dword [0x4ae234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a7030], 0
jne 0x4043b5
push 0
push 0x4a7064
push 0x4a706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40625e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040474c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403144
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406248
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406265
lea eax, [ebp - 0x10]
call fcn.004044dc
ret

Function at 0x40b66c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b6a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045cc
jmp 0x40b6ae
mov eax, ebx
mov edx, esi
call fcn.00404530
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b6b8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b6d9
mov al, byte [esp]
jmp 0x40b6db
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbd8
mov eax, dword [0x4ad2a8]
cmp byte [eax], 0
je 0x40bdec
mov eax, dword [0x4ad01c]
call fcn.00402fb0
call fcn.00402bc4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408de4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40be34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4acfb8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ae664]
call fcn.00405624
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret