joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5055e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x50560f
push esi
call fcn.005057c0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x505608
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x505692
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x50567d
mov eax, dword [esi + 8]
test eax, eax
je 0x505635
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x505678
cmp eax, 2
je 0x50567d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x505626
cmp eax, 3
je 0x50565d
cmp eax, 1
jne 0x505626
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x505626
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x505626
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.005056c0
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x5056b4
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.005056c0
add esp, 4
pop edi
pop esi
ret

Function at 0x5056c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x5056ec
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x505772
lea ebx, [esi + 0x78]
jmp 0x505700
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x505746
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x505725
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x505788
cmp eax, dword [esi + 0x60]
jb 0x505707
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x505700
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x506900
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.00512b20
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.00512af0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x506947
push edi
call fcn.00512b30
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.00506590
mov dword [esi + 4], fcn.00506420
mov dword [esi + 8], fcn.005064f0
mov dword [esi + 0xc], fcn.00506370
mov dword [esi + 0x10], 0x506c60
mov dword [esi + 0x14], 0x506bf0
mov dword [esi + 0x18], 0x506a50
mov dword [esi + 0x1c], 0x506220
mov dword [esi + 0x20], 0x5060d0
mov dword [esi + 0x24], 0x506800
mov dword [esi + 0x28], 0x506cd0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x506a2a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x506a2a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x506a19
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x506a21
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x50a1f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x50a215
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x50a21b
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x50a330
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x50a26d
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x50a2c6
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x50a2b0
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x50a290
mov esi, dword [esp + 0x14]
test esi, esi
je 0x50a311
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x50a2f0
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x50a2f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x50a250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x51f176
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6a3410], 0
push ebx
push esi
mov esi, 0x6a3418
jne 0x51f1a2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x6a3430], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x6a3410], 1
push dword [0x6a3430]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x51f23f
push 0x14
push 8
push dword [0x628de4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x51f269
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6a3414]
test eax, eax
je 0x51f1e4
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x6a3414], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x51f26e
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x6a3430]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x628de4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x51f269
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x401ae0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x434098]
xor eax, ebp
mov dword [ebp - 4], eax
movq xmm0, qword [ecx]
push ebx
push esi
push edi
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x13]
lea ebx, [ebp - 0x12]
lea eax, [ebp - 0x11]
movq qword [ebp - 0x14], xmm0
movq xmm0, qword [ecx + 8]
sub esi, ecx
sub edi, ecx
sub ebx, ecx
sub eax, ecx
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x18], eax
mov edx, 4
movzx eax, byte [esi + ecx]
lea ecx, [ecx + 4]
movzx eax, byte [eax + 0x4356e8]
mov byte [ecx - 4], al
movzx eax, byte [edi + ecx - 4]
movzx eax, byte [eax + 0x4356e8]
mov byte [ecx - 3], al
movzx eax, byte [ebx + ecx - 4]
movzx eax, byte [eax + 0x4356e8]
mov byte [ecx - 2], al
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + ecx - 4]
movzx eax, byte [eax + 0x4356e8]
mov byte [ecx - 1], al
dec edx
jne 0x401b22
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041026c
mov esp, ebp
pop ebp
ret

Function at 0x401e70
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x434098]
xor eax, ebp
mov dword [ebp - 4], eax
movq xmm0, qword [ecx]
push ebx
push esi
push edi
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x13]
lea ebx, [ebp - 0x12]
lea eax, [ebp - 0x11]
movq qword [ebp - 0x14], xmm0
movq xmm0, qword [ecx + 8]
sub esi, ecx
sub edi, ecx
sub ebx, ecx
sub eax, ecx
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x18], eax
mov edx, 4
movzx eax, byte [esi + ecx]
lea ecx, [ecx + 4]
movzx eax, byte [eax + 0x4357e8]
mov byte [ecx - 4], al
movzx eax, byte [edi + ecx - 4]
movzx eax, byte [eax + 0x4357e8]
mov byte [ecx - 3], al
movzx eax, byte [ebx + ecx - 4]
movzx eax, byte [eax + 0x4357e8]
mov byte [ecx - 2], al
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + ecx - 4]
movzx eax, byte [eax + 0x4357e8]
mov byte [ecx - 1], al
dec edx
jne 0x401eb2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041026c
mov esp, ebp
pop ebp
ret
Function at 0x402d60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x43d174]
push esi
push edi
mov edi, dword [0x43d188]
test edi, edi
je 0x402db9
mov ecx, dword [0x43d168]
lea eax, [ebx + 1]
lea edx, [ecx + 3]
sub ecx, ebx
mov esi, edi
mov ebx, ecx
jmp 0x402d90
movzx ecx, byte [edx - 3]
mov byte [eax - 1], cl
movzx ecx, byte [ebx + eax]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
mov byte [eax + 1], cl
movzx ecx, byte [edx]
mov byte [eax + 2], cl
lea edx, [edx + 4]
lea eax, [eax + 4]
dec esi
jne 0x402d90
mov ebx, dword [0x43d174]
mov eax, dword [0x43d184]
inc eax
imul eax, dword [0x43d18c]
mov esi, edi
mov dword [ebp - 0x18], eax
cmp edi, eax
jae 0x402eaf
mov dword [ebp - 0xc], ebx
xor edx, edx
mov eax, esi
div edi
mov ebx, dword [ebx + esi*4 - 4]
mov dword [ebp - 0x10], ebx
mov ecx, eax
imul ecx, edi
mov dword [ebp - 0x14], eax
cmp ecx, esi
jne 0x402e3f
mov ecx, ebx
shr ecx, 8
movzx eax, cl
mov edx, ebx
movzx eax, byte [eax + 0x4356e8]
mov byte [ebp - 4], al
shr edx, 0x10
movzx eax, dl
shr ebx, 0x18
movzx eax, byte [eax + 0x4356e8]
mov byte [ebp - 3], al
movzx eax, byte [ebx + 0x4356e8]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 2], al
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebx*4 + 0x4356b8]
movzx eax, al
movzx eax, byte [eax + 0x4356e8]
mov byte [ebp - 1], al
xor ebx, dword [ebp - 4]
jmp 0x402e8e
cmp edi, 6
jbe 0x402e8e
mov eax, esi
sub eax, ecx
cmp eax, 4
jne 0x402e8e
movzx eax, bl
movzx eax, byte [eax + 0x4356e8]
mov byte [ebp - 8], al
mov eax, ebx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x4356e8]
mov byte [ebp - 7], al
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 0x18
movzx eax, byte [eax + 0x4356e8]
mov byte [ebp - 6], al
movzx eax, byte [ebx + 0x4356e8]
mov byte [ebp - 5], al
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc esi
mov eax, dword [ecx]
xor eax, ebx
mov ebx, dword [0x43d174]
add ecx, 4
mov dword [ebx + esi*4 - 4], eax
mov dword [ebp - 0xc], ecx
cmp esi, dword [ebp - 0x18]
jb 0x402dd6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea eax, [ecx + 1]
mov edx, 4
jmp 0x403440
movzx ecx, byte [eax - 1]
lea eax, [eax + 4]
movzx ecx, byte [ecx + str.cw]
mov byte [eax - 5], cl
movzx ecx, byte [eax - 4]
movzx ecx, byte [ecx + str.cw]
mov byte [eax - 4], cl
movzx ecx, byte [eax - 3]
movzx ecx, byte [ecx + str.cw]
mov byte [eax - 3], cl
movzx ecx, byte [eax - 2]
movzx ecx, byte [ecx + str.cw]
mov byte [eax - 2], cl
dec edx
jne 0x403440
ret
Function at 0x404110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x434098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push edi
push 0x8e
mov dword [ebp - 0x2c], eax
call fcn.004102a6
push 0x8e
push 0
push eax
mov dword [ebp - 0x28], eax
call fcn.00415850
push 0x9e
call fcn.00411300
push 0x9e
mov ebx, eax
push 0
push ebx
call fcn.00415850
mov edx, dword [ebp - 0x28]
mov esi, dword [str.55041_00168_305_246209_03_1033_7600.0000_0522010]
mov dword [edx], 0x40000
mov dword [edx + 4], 0x62
lea edi, [edx + 8]
mov ecx, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
movsw word es:[edi], word [esi]
movq xmm0, qword [ecx + 0x40]
movq qword [edx + 0x6a], xmm0
movq xmm0, qword [ecx + 0x48]
movq qword [edx + 0x72], xmm0
mov eax, dword [ecx + 0x54]
mov dword [edx + 0x7a], eax
mov eax, dword [ecx + 0x58]
mov dword [edx + 0x7e], eax
mov dword [edx + 0x82], 0x1a
mov dword [edx + 0x86], 0x78
mov dword [edx + 0x8a], 0x2760
mov ecx, 0x23
mov esi, edx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xorps xmm0, xmm0
add esp, 0x20
mov byte [ebp - 0x14], 0
movq qword [ebp - 0x13], xmm0
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
lea esi, [ebx + 1]
mov edi, 8
lea ebx, [ebx]
xor eax, eax
movzx ecx, byte [esi + eax - 1]
xor byte [ebp + eax - 0x14], cl
movzx ecx, byte [esi + eax]
xor byte [ebp + eax - 0x13], cl
movzx ecx, byte [esi + eax + 1]
xor byte [ebp + eax - 0x12], cl
movzx ecx, byte [esi + eax + 2]
xor byte [ebp + eax - 0x11], cl
add eax, 4
cmp eax, 0x10
jl 0x404202
lea ecx, [ebp - 0x14]
call fcn.004030b0
add esi, 0x10
dec edi
jne 0x404200
mov eax, dword [ebx + 0x88]
xorps xmm0, xmm0
movq qword [ebp - 0x23], xmm0
movq xmm0, qword [ebx + 0x80]
mov dword [ebp - 0x1b], edi
mov dword [ebp - 0x1c], eax
mov ax, word [ebx + 0x8c]
mov word [ebp - 0x17], di
mov word [ebp - 0x16], 0x80
movq qword [ebp - 0x24], xmm0
mov word [ebp - 0x18], ax
xor ecx, ecx
jmp 0x404280
movzx eax, byte [ebp + ecx - 0x24]
xor byte [ebp + ecx - 0x14], al
movzx eax, byte [ebp + ecx - 0x23]
xor byte [ebp + ecx - 0x13], al
movzx eax, byte [ebp + ecx - 0x22]
xor byte [ebp + ecx - 0x12], al
movzx eax, byte [ebp + ecx - 0x21]
xor byte [ebp + ecx - 0x11], al
add ecx, 4
cmp ecx, 0x10
jl 0x404280
lea ecx, [ebp - 0x14]
call fcn.004030b0
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
movq qword [ebx + 0x8e], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x96], xmm0
mov dword [eax], 0x9e
mov eax, dword [ebp - 0x2c]
push str.Activation_response__KMS_V4__sent._n
mov dword [eax], ebx
call fcn.0041184e
mov eax, dword [ebp - 0x28]
push eax
call fcn.0041027b
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0041026c
mov esp, ebp
pop ebp
ret
Function at 0x40a000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427ffe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x434098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0040a320
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.0040a320
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x40a114
test dl, 0x10
jne 0x40a114
mov eax, 1
jmp 0x40a116
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.0040a1b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40d460
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov edx, 0x811c9dc5
mov ecx, 0
sub esi, edi
je 0x40d491
lea esp, [esp]
movzx eax, byte [ecx + edi]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, esi
jb 0x40d480
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x41c460
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412d97
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41c498
xor eax, eax
jmp 0x41c4c4
cmp esi, dword [ebp - 4]
je 0x41c4c1
cmp dword [ebp + 0xc], 0
je 0x41c4c1
push dword [edi + 0x9c]
call fcn.0041c06e
push dword [edi + 0x9c]
mov esi, eax
call fcn.0041b5f9
pop ecx
pop ecx
cmp esi, eax
je 0x41c494
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x41f399
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00417866
mov dword [ebp - 0x14], eax
cmp dword [0x43ce88], edi
jne 0x41f48a
push 0x800
push edi
push 0x42dc54
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41f417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41f56a
push 0x42dc54
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41f56a
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f56a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x43ce88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x43ce8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x43ce90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ce98], eax
test eax, eax
je 0x41f487
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ce94], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41f4af
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f4a2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41f4c4
push 4
pop eax
jmp 0x41f56c
cmp dword [ebp - 0x14], edi
je 0x41f4c4
push dword [0x43ce88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41f4a9
mov eax, dword [0x43ce94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41f522
cmp dword [0x43ce98], esi
je 0x41f522
push eax
call ebx
push dword [0x43ce98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41f522
test eax, eax
je 0x41f522
call ecx
test eax, eax
je 0x41f517
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41f517
test byte [ebp - 8], 1
jne 0x41f522
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41f552
mov eax, dword [0x43ce8c]
cmp eax, esi
je 0x41f54f
push eax
call ebx
test eax, eax
je 0x41f54f
call eax
mov edi, eax
test edi, edi
je 0x41f54f
mov eax, dword [0x43ce90]
cmp eax, esi
je 0x41f54f
push eax
call ebx
test eax, eax
je 0x41f54f
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x43ce88]
call ebx
test eax, eax
je 0x41f56a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41f56c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041026c
leave
ret
Function at 0x411eb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9319
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x52bdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Mitsubishi_CNC_HMI
push 0
call dword [sym.imp.Y747WINSYS.dll_YWSFindWindow]
add esp, 8
test eax, eax
je 0x411eff
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push str.C:ymwM8Yplctool
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_310]
push 0x4d7900
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.00411be0
add esp, 0xc
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
push 0
push str.plconbd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4149c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x52bdd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x144]
push eax
push str.C:ymwM8YdataMC_sdgKeyHisDisplay
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414a16
push 0
push str.C:ymwM8YdataMC_sdgKeyHisDisplay
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x414a16
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6016
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004c6016
mov esp, ebp
pop ebp
ret