joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c8b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x432015
lea edi, [esi - 0x31015]
push edi
or ebp, 0xffffffff
jmp 0x43c8d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43c8d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43c8c8
mov eax, 1
add ebx, ebx
jne 0x43c8eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43c8e0
jne 0x43c8fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c8e0
xor ecx, ecx
sub eax, 3
jb 0x43c910
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43c982
mov ebp, eax
add ebx, ebx
jne 0x43c91b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43c928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43c94c
inc ecx
add ebx, ebx
jne 0x43c938
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43c92d
jne 0x43c949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c92d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43c96c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43c95d
jmp 0x43c8ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43c96c
add edi, ecx
jmp 0x43c8ce
pop esi
mov edi, esi
mov ecx, 0x957
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43c98a
cmp byte [edi], 4
jne 0x43c98a
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 0x43c98f
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43ca07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3ccac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3cce8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43c9bc
mov ecx, edi
jns 0x43c9eb
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 + 0x3ccf0]
or eax, eax
je 0x43ca01
mov dword [ebx], eax
add ebx, 4
jmp 0x43c9d9
call dword [esi + 0x3ccec]
mov ebp, dword [esi + 0x3ccf4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x43ca3b
sub esp, 0xffffff80
jmp 0x4015b0
Function at 0x406663
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406687
xor eax, eax
test eax, eax
je 0x40669a
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40669a
xor ecx, ecx
jmp 0x40669d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4067c6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x4067fd
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4067d7
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4067d2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40682e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x406810
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x24c20ee3
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, str.VXJ
nop
mov ebx, 0x42f314
nop
mov ecx, 0x58f41856
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1000103a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x40
push 0x3000
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_VirtualAllocExNuma
mov esi, eax
test esi, esi
je 0x10001065
and dword [0x1000e09c], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10001ff0
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100010f9
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov cl, byte [eax]
mov dl, byte [eax + 1]
jle 0x100011b5
push ebx
push esi
push edi
movzx esi, cl
movzx ebx, dl
lea eax, [esi + 1]
cdq
mov ecx, 0x1d3
idiv ecx
mov edi, dword [0x1000f068]
movzx esi, dl
lea ecx, [esi + edi]
movzx eax, byte [ecx]
add eax, ebx
mov byte [ebp - 2], dl
cdq
mov ebx, 0x1d3
idiv ebx
movzx ebx, dl
lea eax, [ebx + edi]
mov byte [ebp - 3], dl
call fcn.1000102f
mov ecx, dword [0x1000f068]
movzx eax, byte [ebx + ecx]
movzx ecx, byte [esi + ecx]
add eax, ecx
cdq
mov ecx, 0x1d3
idiv ecx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
mov byte [ebp - 1], dl
call edi
push 0
push 0
call edi
mov edi, dword [ebp - 8]
movzx ecx, byte [ebp - 1]
mov edx, dword [0x1000f068]
mov cl, byte [ecx + edx]
mov eax, edi
sub eax, dword [0x1000e09c]
add eax, dword [ebp + 8]
xor byte [eax], cl
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp + 0xc]
jl 0x1000111d
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 2]
mov dl, byte [ebp - 3]
pop edi
pop esi
pop ebx
mov byte [eax], cl
mov byte [eax + 1], dl
leave
ret
Function at 0x10001434
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 4], ecx
movzx ecx, word [eax + 0x14]
push ebx
xor edx, edx
push esi
push edi
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x10001503
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esi, [ecx + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x100014a5
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x100014eb
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call ebx
test eax, eax
je 0x1000150d
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.1000132d
jmp 0x100014e8
mov ecx, dword [esi + 4]
add ecx, eax
push ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.10001416
test eax, eax
je 0x1000150d
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [esi]
push eax
call ebx
test eax, eax
je 0x1000150d
mov eax, dword [esi + 4]
push dword [esi]
mov edi, dword [esi - 4]
add eax, dword [ebp + 8]
add edi, dword [ebp - 4]
push eax
push edi
call fcn.1000134c
mov dword [esi - 8], edi
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add esi, 0x28
cmp dword [ebp - 8], eax
jl 0x1000146c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x10001506
Function at 0x10001d37
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e0d8]
jne 0x10001d41
repz ret
jmp fcn.100028c8

Function at 0x10006ffc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000e0d8]
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.1000443a
and dword [ebp - 0x14], 0
cmp dword [0x1000fd5c], 0
mov dword [ebp - 0x18], eax
jne 0x100070af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10007157
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10007157
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000fd5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000fd60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000fd64], eax
call edi
push eax
call esi
mov dword [0x1000fd6c], eax
test eax, eax
je 0x100070af
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000fd68], eax
mov eax, dword [0x1000fd68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10007108
cmp dword [0x1000fd6c], ecx
je 0x10007108
push eax
call esi
push dword [0x1000fd6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10007108
test ebx, ebx
je 0x10007108
call edi
test eax, eax
je 0x100070ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100070ff
test byte [ebp - 8], 1
jne 0x10007108
or dword [ebp + 0x10], 0x200000
jmp 0x1000713b
mov eax, dword [0x1000fd60]
cmp eax, dword [ebp - 0x18]
je 0x1000713b
push eax
call esi
test eax, eax
je 0x1000713b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000713b
mov eax, dword [0x1000fd64]
cmp eax, dword [ebp - 0x18]
je 0x1000713b
push eax
call esi
test eax, eax
je 0x1000713b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000fd5c]
call esi
test eax, eax
je 0x10007157
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10007159
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001d37
leave
ret
Function at 0x1000af36
Capabilities:
Parse pe header

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

Function at 0x1000bd50
Capabilities:
Parse pe header

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

Function at 0x1000c0a0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016608
push 0x10016600
push str.FlsAlloc
push 0x1f
call fcn.1000c383
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c0d4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1000c0da
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000c11e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016618
push 0x10016610
push str.FlsGetValue
push 0x21
call fcn.1000c383
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c155
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000c15d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016620
push 0x10016618
push str.FlsSetValue
push 0x22
call fcn.1000c383
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c197
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000f443
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000f4e0
push ebx
push esi
call fcn.1000f4e3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000f347
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000f48d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f4df
push edi
push eax
call fcn.1000f754
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000f4ad
call fcn.1000d650
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f4de
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000f347
add esp, 0x20
test eax, eax
jne 0x1000f4cc
push edi
call fcn.1000d650
jmp 0x1000f4d4
push ebx
call fcn.1000d650
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10025b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0x10025b63
mov ecx, dword [ebp + 0x10]
sub dword [ebp + 0xc], ecx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [ebp + 8], eax
mov edi, dword [ebp + 8]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, dword [ebp + 0x10]
xor cl, byte [esi + eax]
mov byte [eax], cl
inc eax
sub dword [ebp - 4], 1
mov dword [ebp + 0x10], eax
mov eax, edi
jne 0x10025b22
mov esi, dword [ebp + 0x14]
pop edi
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
leave
ret
Function at 0x10039175
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x1003d520
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x61]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0xffff2358
xchg dword [esp], ecx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x39]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], ecx
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 1]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], ecx
push ebp
mov ebp, esp
leave
popfd
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x2f]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
jmp 0x1002d594
call fcn.10044c78
sar byte [eax + 0x176c1], 1
call fcn.100465a8

Function at 0x10042015
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
leave
add dword [esp], 0x4f1b
xchg dword [esp], edx
push ebp
mov ebp, esp
leave
xchg dword [esp + 4], edx
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x6c]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], edx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x14]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
popfd
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0xd]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
jmp 0x10046f30
call fcn.10047e60
dec ebp
add byte [ebp + 0x6d5a07b6], ch
out dx, al
push cs
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x40125e
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xe8
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x7c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi + 0x18]
call edi
push 9
push dword [esi + 0x18]
mov dword [ebp + 0x6c], eax
call edi
mov dword [ebp + 0x78], eax
push 0x64
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
xor ebx, ebx
mov word [ebp - 0x78], bx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp + 0x64]
push eax
push dword [esi + 0x18]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
xor eax, eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov edi, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
push 4
sub edi, ecx
sub ecx, dword [ebp + 0x68]
push edi
sub esi, eax
sub eax, dword [ebp + 0x64]
push esi
push ecx
push eax
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push edi
push esi
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_MoveWindow]
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret

Function at 0x402d2c
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x402d49
and byte [0x4c9c70], 0xfb
push 0
push 4
push str.SeDebugPrivilege
call fcn.00412301
add esp, 0xc
ret
Function at 0x4038e2
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x4038fa
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 0x2d0]
push eax
mov ecx, esi
call fcn.0043fddf
test edi, edi
jg 0x403985
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x4aecec
call ebx
mov edi, eax
test edi, edi
jg 0x403974
mov eax, dword [esi]
push ebp
push eax
push 0x4aece0
call ebx
mov edi, eax
test edi, edi
jg 0x403974
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
test edi, edi
jle 0x403984
mov eax, dword [esi]
push 0x4aecd4
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
add edi, 5
test edi, edi
jle 0x403984
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
push dword [esi]
mov ebx, 0x4c9048
mov ecx, ebx
call fcn.0041d2b5
test edi, edi
jle 0x4039a3
push dword [esi]
call fcn.00499edd
test eax, eax
pop ecx
jne 0x4039d1
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TEMP_
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push dword [esi]
mov ecx, ebx
call fcn.0041d2b5
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x403dc4
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403dfa
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403e09
mov eax, 0x4aeee4
push eax
mov ecx, 0x4c8c3c
call fcn.0044845d
push dword [0x4c8c3c]
call fcn.004408e4
cmp eax, 1
pop ecx
jle 0x403e2b
mov word [0x4cc010], ax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4c8bf4]
test ecx, ecx
jle 0x403fb7
mov dword [0x4c8bf4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [0x4c8bf4], eax
jmp 0x403fef
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x403fe7
sub eax, dword [0x4c8bf4]
cmp eax, dword [ebp + 8]
jae 0x403ff7
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4c72b4], bl
jg 0x403fc7
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4c8bf4]
pop esi
test ecx, ecx
jle 0x40400c
mov dword [0x4c8bf4], eax
xor eax, eax
cmp byte [0x4c72b4], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x4041e1
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4c72b4], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
pop esi
je 0x4041f8
push esi
call edi
cmp dword [0x4c8c04], 0
je 0x404213
push 0x1e
pop esi
jmp 0x404213
cmp dword [0x4c8bf8], 0
je 0x404216
push 0xa
call edi
dec esi
jns 0x404206
mov eax, dword [0x4c8bf8]
test eax, eax
pop edi
pop esi
je 0x404234
push 0
push eax
mov dword [0x4c8bf8], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [0x4c72b4], 0xff
ret
Function at 0x40423c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x40427d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40428e
mov byte [ebp - 1], bl
jmp 0x40428e
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x4042ca
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push edi
mov dword [0x4c8c0c], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4c8c0c]
cmp eax, ebx
je 0x4042ca
cmp byte [ebp - 1], bl
je 0x4042c5
push 0x64
push ebx
push eax
call fcn.0049a7e0
mov eax, dword [0x4c8c0c]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret