joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4788c4
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
vmovsd xmm0, qword [str._PQ_P]
vmovsd qword [ebp - 0x22], xmm0
vmovups xmm0, xmmword [0x47d9dc]
vmovups xmmword [ebp - 0x30], xmm0
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0xc
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [eax + ecx + 0x78]
test ecx, ecx
je 0x4788f3
mov esi, dword [eax + ecx + 0x18]
test esi, esi
je 0x4788f3
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov edi, dword [eax + ecx + 0x20]
add edi, eax
lea ecx, [eax + 1]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + esi*4 - 4]
dec esi
mov dl, byte [eax + ecx]
test dl, dl
je 0x47894b
add ecx, dword [ebp - 0x18]
mov ebx, 0xe26e3484
movsx edx, dl
xor edx, ebx
imul ebx, edx, 0x203848b
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x478931
cmp ebx, 0xe2906854
je 0x478954
test esi, esi
jne 0x47891d
mov edx, dword [ebp - 0x14]
jmp 0x4788f3
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x1c]
add ecx, eax
mov edx, dword [eax + edx + 0x24]
add edx, eax
movzx edx, word [edx + esi*2]
mov ecx, dword [ecx + edx*4]
xor edx, edx
lea esi, [edx + 0x34]
xor word [ebp + edx*2 - 0x30], si
inc edx
cmp edx, 0xb
jne 0x47896c
add eax, ecx
lea esi, [ebp - 0x30]
push esi
call eax
vmovups xmm0, xmmword [0x47d9f2]
vmovups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x3d0050
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0xc
mov edx, dword [edx]
mov ecx, dword [edx + 0x18]
mov eax, dword [ecx + 0x3c]
mov eax, dword [ecx + eax + 0x78]
test eax, eax
je 0x4789a1
mov edi, dword [ecx + eax + 0x18]
test edi, edi
je 0x4789a1
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + eax + 0x20]
add ebx, ecx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + edi*4 - 4]
dec edi
mov dl, byte [ecx + eax]
test dl, dl
je 0x4789f9
add eax, dword [ebp - 0x18]
mov esi, 0x8c12df72
movsx edx, dl
xor edx, esi
imul esi, edx, 0x203848b
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4789df
cmp esi, 0xf4149e6
je 0x478a02
test edi, edi
jne 0x4789cb
mov edx, dword [ebp - 0x14]
jmp 0x4789a1
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx + 0x1c]
add eax, ecx
mov edx, dword [ecx + edx + 0x24]
add edx, ecx
movzx edx, word [edx + edi*2]
mov eax, dword [eax + edx*4]
xor edx, edx
lea esi, [edx + 0x34]
xor word [ebp + edx*2 - 0x30], si
inc edx
cmp edx, 0xa
jne 0x478a1a
add ecx, eax
lea eax, [ebp - 0x30]
push eax
call ecx
call fcn.00467c1d
test al, al
je 0x478a3e
call section..text
xor eax, eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x478a8f
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0xc
mov edx, dword [edx]
mov ecx, dword [edx + 0x18]
mov eax, dword [ecx + 0x3c]
mov eax, dword [ecx + eax + 0x78]
test eax, eax
je 0x478aa4
mov edi, dword [ecx + eax + 0x18]
test edi, edi
je 0x478aa4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + eax + 0x20]
add ebx, ecx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov edx, dword [ebx + edi*4 - 4]
dec edi
mov al, byte [ecx + edx]
test al, al
je 0x478afc
add edx, dword [ebp - 0x18]
mov esi, 0x7da104ab
movsx eax, al
xor eax, esi
imul esi, eax, 0x203848b
mov al, byte [edx]
inc edx
test al, al
jne 0x478ae2
cmp esi, 0x74a89f7f
je 0x478b05
test edi, edi
jne 0x478ace
mov edx, dword [ebp - 0x14]
jmp 0x478aa4
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx + 0x1c]
add eax, ecx
mov edx, dword [ecx + edx + 0x24]
add edx, ecx
movzx edx, word [edx + edi*2]
add ecx, dword [eax + edx*4]
push 4
push 0x1000
push dword [ebp + 8]
push 0
call ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x478b31
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0xc
mov edx, dword [edx]
mov ecx, dword [edx + 0x18]
mov eax, dword [ecx + 0x3c]
mov eax, dword [ecx + eax + 0x78]
test eax, eax
je 0x478b46
mov edi, dword [ecx + eax + 0x18]
test edi, edi
je 0x478b46
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + eax + 0x20]
add ebx, ecx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov edx, dword [ebx + edi*4 - 4]
dec edi
mov al, byte [ecx + edx]
test al, al
je 0x478b9e
add edx, dword [ebp - 0x18]
mov esi, 0x98b68a0c
movsx eax, al
xor eax, esi
imul esi, eax, 0x203848b
mov al, byte [edx]
inc edx
test al, al
jne 0x478b84
cmp esi, 0x88f259cd
je 0x478ba7
test edi, edi
jne 0x478b70
mov edx, dword [ebp - 0x14]
jmp 0x478b46
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx + 0x1c]
add eax, ecx
mov edx, dword [ecx + edx + 0x24]
add edx, ecx
movzx edx, word [edx + edi*2]
add ecx, dword [eax + edx*4]
push 0x8000
push 0
push dword [ebp + 8]
call ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47f424
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x47f45f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x47f446
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x47f457
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x47f461
inc edi
add eax, 0x28
cmp edi, esi
jb 0x47f43c
xor eax, eax
pop edi
pop esi
ret
Function at 0x405b60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.004052d1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00405286
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
invalid
invalid
invalid
Function at 0x409568
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41e23f
call fcn.0041d6dc
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], esi
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], esi
push esi
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.0040c010
add esp, 0xc
mov dword [ebp - 0x424], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x4095f1
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x4095f1
call fcn.00401c76
mov esi, eax
jmp 0x4096f4
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x409614
call fcn.00401c76
jmp 0x4096e7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x40960a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x409647
mov esi, 0x8007000e
jmp 0x4096e9
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x409717
jb 0x409662
cmp eax, 0xffffffff
ja 0x409717
cmp eax, 0x400
jbe 0x409677
push eax
lea ecx, [ebp - 0x424]
call fcn.00407f38
jmp 0x409699
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x409699
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x40963d
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40960a
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00409413
mov esi, eax
test edi, edi
je 0x4096f4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40970d
lea ecx, [ebp - 0x424]
call fcn.00407f23
mov eax, esi
call fcn.0041d629
ret 0x10
push 0x80070216
call fcn.004021d4
int3

Function at 0x416575
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004161ee

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
mov ecx, 0x516412d4
nop
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x644421cb
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4cdbb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8b000]
push edi
jmp 0x4cdbca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cdbd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cdbc0
mov eax, 1
add ebx, ebx
jne 0x4cdbe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cdbf4
jne 0x4cdc13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cdc13
dec eax
add ebx, ebx
jne 0x4cdc00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cdbd8
add ebx, ebx
jne 0x4cdc0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cdc65
xor ecx, ecx
sub eax, 3
jb 0x4cdc2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cdc9a
sar eax, 1
mov ebp, eax
jmp 0x4cdc36
add ebx, ebx
jne 0x4cdc36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cdc04
inc ecx
add ebx, ebx
jne 0x4cdc44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cdc04
add ebx, ebx
jne 0x4cdc51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cdc46
jne 0x4cdc62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cdc46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cdc84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cdc76
jmp 0x4cdbc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cdc84
add edi, ecx
jmp 0x4cdbc6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cdca2
cmp byte [edi], 0x11
jne 0x4cdca2
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 0x4cdca7
lea edi, [esi + 0xc9000]
mov eax, dword [edi]
or eax, eax
je 0x4cdd1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe9144]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe9298]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cdcd4
mov ecx, edi
jns 0x4cdd03
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe929c]
or eax, eax
je 0x4cdd19
mov dword [ebx], eax
add ebx, 4
jmp 0x4cdcf1
call dword [esi + 0xe92ac]
mov ebp, dword [esi + 0xe92a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4cdd53
sub esp, 0xffffff80
jmp 0x416310
Function at 0x4015f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esi + 4], eax
jne 0x40161b
pop esi
ret 4
mov eax, dword [esi]
test eax, eax
je 0x401630
push eax
call fcn.00408a6a
add esp, 4
mov dword [esi], 0
mov ecx, dword [esi + 4]
push edi
push 0
push ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401659
pop edi
xor eax, eax
pop esi
ret 4
lea edx, [edi + 1]
push edx
call fcn.00408a6f
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x401652
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401652
cmp edi, dword [esp + 0xc]
jne 0x401652
mov eax, dword [esi]
mov byte [edi + eax], 0
mov eax, dword [esi]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x4028f0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4112a8
push eax
mov eax, dword [0x415054]
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
mov ebx, ecx
push edi
mov dword [ebx], eax
je 0x4029b5
mov ecx, esi
shr ecx, 0x10
test ecx, ecx
jne 0x402976
movzx esi, si
push ecx
push esi
mov ecx, ebx
call fcn.004027c0
test eax, eax
jne 0x4029b5
mov edx, dword [0x415054]
mov dword [esp + 0x20], edx
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push str.Warning:_implicit_LoadString__u__failed_n
push eax
call fcn.004026f0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00401e60
jmp 0x4029b5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4029b5
lea edx, [ebp + 0xd]
push edx
call fcn.00408a6f
mov dword [eax], 1
mov byte [eax + ebp + 0xc], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
lea edi, [eax + 0xc]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov dword [ebx], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x402b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4112e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov dword [esp + 8], 0
mov eax, dword [0x415054]
push esi
push edi
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax - 8]
push eax
push edx
lea eax, [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 1
call fcn.00402160
mov edi, dword [esp + 0xc]
mov eax, dword [edi - 0xc]
test eax, eax
mov ebp, dword [esp + 0x24]
lea esi, [edi - 0xc]
jl 0x402bdd
push esi
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x402bee
mov ecx, dword [0x415054]
mov dword [ebp], ecx
push edi
mov ecx, ebp
call fcn.00402110
mov eax, dword [0x415050]
add edi, 0xfffffff4
cmp edi, eax
mov dword [esp + 0x10], 1
mov byte [esp + 0x1c], 0
je 0x402c1b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402c1b
push esi
call fcn.00408a6a
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x402e20
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x40
push esi
mov ebx, ecx
call fcn.00408a6f
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 4
mov edi, eax
mov eax, dword [ebx]
push esi
push edi
push eax
call ebp
lea ecx, [eax + 1]
cmp ecx, esi
jl 0x402e72
lea ebx, [ebx]
push edi
call fcn.00408a6a
add esi, 0x40
push esi
call fcn.00408a6f
mov edx, dword [ebx]
add esp, 8
push esi
mov edi, eax
push edi
push edx
call ebp
lea ecx, [eax + 1]
cmp ecx, esi
jge 0x402e50
test eax, eax
mov ecx, dword [esp + 0x14]
je 0x402e7d
push edi
jmp 0x402e82
push 0x412218
call fcn.00402110
push edi
call fcn.00408a6a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403030
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x415c48]
test eax, eax
push esi
push edi
je 0x403052
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
xor esi, esi
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x403091
cmp dword [esp + 0x18], 2
jne 0x403091
cmp dword [esp + 0xc], 5
jb 0x403091
mov esi, 1
mov dword [0x415c48], esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403ad0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
push ebx
xor ebx, ebx
push edi
xor eax, eax
cmp edx, ebx
mov ecx, 0x41
mov edi, 0x415c50
mov dword [0x415d54], ebx
mov dword [0x415d58], ebx
rep stosd dword es:[edi], eax
je 0x403baf
cmp byte [edx], bl
je 0x403baf
mov eax, 0x415c50
push esi
xor edi, edi
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
cmp cl, bl
je 0x403b23
mov byte [eax], cl
inc eax
dec esi
jne 0x403b14
jmp 0x403b27
cmp esi, ebx
jne 0x403b2d
dec eax
mov edi, 0x8007007a
cmp edi, ebx
mov byte [eax], bl
je 0x403b3c
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push str.SOFTWAREEPSONSTM3Debug
push 0x80000002
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b33
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x403b33
cmp dword [esp + 0xc], ebx
je 0x403b33
pop esi
mov eax, 1
pop edi
mov dword [0x415d54], eax
pop ebx
add esp, 8
ret
pop edi
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x403c10
Capabilities:
Get geographical location

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
push 0
push ebx
or edi, 0xffffffff
push ebp
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jle 0x403c94
push esi
call fcn.00409235
mov edi, eax
add esp, 4
test edi, edi
je 0x403c88
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x403c71
push edi
call fcn.00408c56
add esp, 4
push edi
mov esi, eax
call fcn.00409230
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov esi, dword [esp + 0x10]
push edi
call fcn.00409230
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x403cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411401
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00401ec0
push 0x22
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
call fcn.00402aa0
mov edx, dword [esi + 0x70]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x34], 2
call fcn.004029d0
push 0x22
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x34], 3
call fcn.00402aa0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.00402090
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00401e60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00401e60
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00401e60
lea ecx, [esp + 0xc]
call fcn.00401d00
mov edi, dword [esp + 0x34]
push eax
mov ecx, edi
call fcn.00401980
test eax, eax
je 0x403d9d
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x403e43
lea ecx, [esp + 0xc]
call fcn.004028d0
push 0x22
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00402aa0
push str.EPSON_XXXXX
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x34], 5
call fcn.004029d0
push 0x22
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x34], 6
call fcn.00402aa0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 7
call fcn.00402090
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 6
call fcn.00401e60
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 5
call fcn.00401e60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00401e60
lea ecx, [esp + 0xc]
call fcn.00401d00
push eax
mov ecx, edi
call fcn.00401980
test eax, eax
je 0x403e35
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x403e43
push 0x412218
lea ecx, [esp + 0x10]
call fcn.00402110
mov esi, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00402890
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], 0
call fcn.00401e60
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8