joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e35e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x5e3609
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x5ee510]
test eax, eax
jne 0x5e362d
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0x4fee74f4
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee510], eax
call eax
mov edi, eax
mov eax, dword [0x5ee284]
test eax, eax
jne 0x5e3655
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0xafb2ca58
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee284], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x5e36d5
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x5e36ca
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x5e3690
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x5e36e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x5e370a
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x5ee510]
test eax, eax
jne 0x5e372e
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0x4fee74f4
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee510], eax
call eax
mov edi, eax
mov eax, dword [0x5ee284]
test eax, eax
jne 0x5e3756
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0xafb2ca58
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee284], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x5e37c2
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x5e37ba
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x5e3790
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x5e3cc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp], 0x64bc
add dword [esp], 0xffff85b7
xor dword [esp], 0xe5a68224
shl dword [esp], 6
or dword [esp], 0x7fa52244
add dword [esp], 0x7bfd
shl dword [esp], 5
add dword [esp], 0xba34
xor dword [esp], 0xfff73254
mov dword [esp + 4], 0x1a8a
add dword [esp + 4], 0xffffd02b
shl dword [esp + 4], 0xe
xor dword [esp + 4], 0xfaad4006
push ebx
mov dword [esp + 8], 0xb8f9
mov ebx, ecx
xor dword [esp + 8], 0x3f0625fa
xor dword [esp + 8], 0x3f069d13
cmp byte [ebx], 0
je 0x5e3dad
push esi
push edi
jmp 0x5e3d40
mov edi, dword [esp + 0xc]
lea ebx, [ebx + 1]
mov dword [esp + 0x10], 0x1a8a
add dword [esp + 0x10], 0xffffd02b
shl dword [esp + 0x10], 0xe
xor dword [esp + 0x10], 0xfaad4006
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], 0xb8f9
xor dword [esp + 0x10], 0x3f0625fa
xor dword [esp + 0x10], 0x3f069d13
shl esi, cl
movzx ecx, byte [esp + 0x10]
mov edx, dword [esp + 0xc]
movsx eax, byte [ebx - 1]
mov dword [esp + 0xc], eax
add dword [esp + 0xc], esi
shl edx, cl
add dword [esp + 0xc], edx
sub dword [esp + 0xc], edi
cmp byte [ebx], 0
jne 0x5e3d40
pop edi
pop esi
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret
Function at 0x5e3ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x5e3f2c
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.005e3cc0
xor eax, 0xbdb9b51
cmp eax, dword [esp + 0x10]
je 0x5e3f36
inc esi
cmp esi, dword [edi + 0x18]
jb 0x5e3f10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x5e3f64
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x5e3f64
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x5e40d0
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x5e40f6
cmp al, 0x2e
je 0x5e40f3
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x5e40e3
jmp 0x5e40f6
mov byte [edx], 0
mov eax, dword [0x5ee430]
test eax, eax
jne 0x5e411a
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0xfce32466
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee430], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x5e4161
mov eax, dword [0x5ee344]
test eax, eax
jne 0x5e414b
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0xd4f020bd
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee344], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x5e4161
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.005e3cc0
xor eax, 0xbdb9b51
mov ecx, edi
mov edx, eax
call fcn.005e3ed0
pop edi
pop esi
add esp, 0x104
ret
Function at 0x5e3f70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], ecx
push ebx
push ebp
mov ecx, dword [eax + 0xc]
add ecx, 0xc
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebx, dword [ecx]
cmp ebx, ecx
je 0x5e40b5
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x10], 0x64bc
add dword [esp + 0x10], 0xffff85b7
xor dword [esp + 0x10], 0xe5a68224
shl dword [esp + 0x10], 6
or dword [esp + 0x10], 0x7fa52244
add dword [esp + 0x10], 0x7bfd
shl dword [esp + 0x10], 5
add dword [esp + 0x10], 0xba34
xor dword [esp + 0x10], 0xfff73254
mov dword [esp + 0x14], 0x1a8a
add dword [esp + 0x14], 0xffffd02b
shl dword [esp + 0x14], 0xe
xor dword [esp + 0x14], 0xfaad4006
mov dword [esp + 0x14], 0xb8f9
xor dword [esp + 0x14], 0x3f0625fa
xor dword [esp + 0x14], 0x3f069d13
cmp word [edx], 0
je 0x5e409c
lea esp, [esp]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x14], 0x1a8a
add dword [esp + 0x14], 0xffffd02b
shl dword [esp + 0x14], 0xe
xor dword [esp + 0x14], 0xfaad4006
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], 0xb8f9
xor dword [esp + 0x14], 0x3f0625fa
xor dword [esp + 0x14], 0x3f069d13
shl esi, cl
movzx ecx, byte [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx eax, word [edx]
shl edi, cl
cmp eax, 0x41
jb 0x5e407f
cmp eax, 0x5a
ja 0x5e407f
add eax, 0x20
mov dword [esp + 0x10], eax
add edx, 2
add dword [esp + 0x10], esi
add dword [esp + 0x10], edi
sub dword [esp + 0x10], ebp
cmp word [edx], 0
jne 0x5e4020
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor eax, 0x2db0ef4d
cmp eax, dword [esp + 0x1c]
je 0x5e40bf
mov ebx, dword [ebx]
cmp ebx, ecx
jne 0x5e3f95
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5e4390
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x5e452e
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x5e452e
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x5e452e
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x5e452e
mov eax, dword [0x5edfd0]
test eax, eax
jne 0x5e43fb
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0x320a3d1b
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5edfd0], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x5e4525
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x5ee5a0]
test eax, eax
jne 0x5e445b
mov ecx, 0xff9ecf59
call fcn.005e3f70
mov edx, 0x36664426
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee5a0], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x5e44de
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x5ee5a0]
test eax, eax
jne 0x5e44c6
mov ecx, 0xff9ecf59
call fcn.005e3f70
mov edx, 0x36664426
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee5a0], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x5e4485
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.005e4660
mov edx, edi
mov ecx, ebx
call fcn.005e4570
pop esi
test eax, eax
jne 0x5e4525
mov eax, dword [0x5ee3d0]
test eax, eax
jne 0x5e4519
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0xf1294406
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee3d0], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x54ef49bc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..didat
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x72017f25
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x41d3e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d422
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d422
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d422
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d422
cmp dword [ecx + 0x74], 0xe
jbe 0x41d422
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f57d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f57d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x70c0324d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2e870ed3
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x35b94863
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, str.0_s
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x24703ec3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407344
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a06c
test esi, esi
jne 0x40737a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a204
jmp 0x407398
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407288
mov edi, eax
test esi, esi
je 0x407398
cmp dword [ebx], 0
je 0x407398
dec esi
jmp 0x407381
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408cb4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409174
mov byte [esp], al
cmp byte [esp], 0
jne 0x408e3d
test edi, edi
je 0x408e3d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408d7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408d58
cmp edi, 0xffffffff
je 0x408d19
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d19
mov byte [esp], 0
jmp 0x408e3d
cmp dword [esi], 1
jg 0x408d58
cmp dword [esi], 0
jne 0x408d4a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408d4a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408e3d
lea eax, [esp + 0xc]
call fcn.00408964
dec ebp
test ebp, ebp
jg 0x408cfe
cmp edi, 0xffffffff
je 0x408d7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d7b
mov byte [esp], 0
jmp 0x408e3d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408cc2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408eb8
mov edx, eax
mov ebx, dword [0x6648fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408de1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408ddf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408de1
xor edi, edi
cmp byte [esp], 0
je 0x408e07
mov ebx, dword [esi]
test bl, 1
jne 0x408e1d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408de7
mov byte [esp + 1], 1
jmp 0x408e1d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e07
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408d94
cmp byte [esp], 0
je 0x408e3d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409d04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66405c], 0
je 0x409d6b
cmp word [0x664348], 0xd7b2
jne 0x409d2d
cmp dword [0x664350], 0
jbe 0x409d2d
mov eax, 0x664344
call dword [0x664360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409d98
call fcn.0040a8f0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x65a038], 0
jne 0x409d87
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409f2c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x65a03c], 0
je 0x409f57
mov edx, edi
mov eax, esi
call dword [0x65a03c]
mov ebx, eax
jmp 0x409f68
mov eax, 8
call fcn.00406fc0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x66405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ef4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409f98
mov eax, ebx
call fcn.00406fdc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d860
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d9c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a06c
cmp si, word [0x65aa18]
jb 0x40d8f8
cmp si, word [0x65ac18]
ja 0x40d8f8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d8f8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x65aa18]
jae 0x40d8d2
mov edi, ebx
dec edi
jmp 0x40d8f3
cmp si, word [ebx*8 + 0x65aa18]
jbe 0x40d8e2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d8f3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x65aa1c]
call fcn.0040d77c
jmp 0x40d8f8
cmp edi, dword [ebp - 8]
jae 0x40d8bc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d9a7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d9a7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040abf0
push dword [ebp - 0x160]
push 0x40d9e4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040abf0
push dword [ebp - 0x164]
push 0x40d9f4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040abf0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ae28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9ce
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a0cc
pop eax
jmp eax
Function at 0x40db7c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dc82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x666c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x666c2c]
jne 0x40dbc8
mov eax, esi
mov edx, 0x666c2e
mov ecx, 0x55
call fcn.0040abf0
push 0x666c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dc6a
push 0x666c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a06c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc37
cmp byte [0x666c10], 0
je 0x40dbfc
mov edx, esi
mov eax, ebx
call fcn.0040da60
jmp 0x40dc37
mov edx, esi
mov eax, ebx
call fcn.0040d860
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dc37
cmp dword [esi], 0
je 0x40dc20
mov eax, esi
mov edx, 0x40dc9c
call fcn.0040ad48
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d860
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ad48
push 0x666c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x666c2c], bx
mov eax, dword [esi]
call fcn.0040ab3c
mov ecx, eax
mov eax, 0x666c2e
mov edx, 0xaa
call fcn.0040d6dc
push 0x666c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc89
lea eax, [ebp - 4]
call fcn.0040a06c
pop eax
jmp eax
Function at 0x40dec4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a160
xor eax, eax
push ebp
push 0x40e0ec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40df0a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40df24
mov eax, dword [ebp - 4]
call fcn.0040ab3c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d6dc
cmp word [ebp - 0x21e], 0
je 0x40e0cf
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e0fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dff3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e0fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dff3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e138
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dff3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e138
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dff3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e16c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40dff3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e0cf
xor eax, eax
push ebp
push 0x40e0c8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dcc4
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e056
mov eax, dword [ebp - 0x14]
call fcn.00406fc0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ab9c
jmp 0x40e0a1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e1e0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e0a1
mov eax, dword [ebp - 0x14]
call fcn.00406fc0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e1e0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ab9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0cf
cmp dword [ebp - 0xc], 0
je 0x40e0bc
mov eax, dword [ebp - 0xc]
call fcn.00406fdc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0f3
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a0cc
pop eax
jmp eax