joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412080
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00436580
mov eax, dword [0x446004]
xor eax, esp
mov dword [esp + 0x10050], eax
xor eax, eax
push ecx
lea ecx, [esp + 4]
mov word [esp + 0x54], ax
mov word [esp + 4], ax
call fcn.00412390
add esp, 4
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4120f3
cmp eax, 0x10000
ja 0x4120f3
lea eax, [esp + 0x50]
push eax
call fcn.0042a697
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.0041c6dd
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.0041c6dd
add esp, 0x10054
ret

Function at 0x412110
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x446004]
xor eax, esp
mov dword [esp + 0x50], eax
xor eax, eax
push ecx
lea ecx, [esp + 4]
mov word [esp + 4], ax
call fcn.00412390
add esp, 4
lea eax, [esp]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0041c6dd
add esp, 0x54
ret
Function at 0x419be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp byte [0x448b5d], 0
push ebp
push esi
mov ebp, edx
mov dword [esp + 8], ecx
jne 0x419c40
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x448838], eax
mov esi, dword [eax]
add eax, 4
mov dword [0x448838], eax
mov ecx, dword [eax]
lea edx, [eax + 4]
push ecx
mov dword [0x448838], edx
call fcn.00418520
add esp, 4
cmp eax, esi
jne 0x419da1
mov byte [0x448b5d], 1
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x43d2d8
push edi
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x419c70
test dl, dl
je 0x419c6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x419c70
add eax, 2
add ecx, 2
test dl, dl
jne 0x419c50
xor eax, eax
jmp 0x419c75
sbb eax, eax
or eax, 1
test eax, eax
je 0x419ced
cmp byte [0x448b5e], 1
je 0x419ced
mov esi, dword [sym.imp.python36.dll_PyDict_New]
call esi
mov dword [0x448dc8], eax
call esi
mov dword [0x449024], eax
call esi
mov dword [0x448b60], eax
call esi
mov dword [0x448b18], eax
call esi
mov dword [0x449054], eax
call esi
mov dword [0x448ba4], eax
call esi
mov dword [0x449028], eax
call esi
mov edi, dword [sym.imp.python36.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x449034], eax
nop dword [eax + eax]
push esi
call edi
mov dword [esi*4 + 0x449094], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x419cd0
mov byte [0x448b5e], 1
mov esi, dword [0x448838]
mov eax, ebx
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x419d17
test dl, dl
je 0x419d13
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x419d17
add eax, 2
add ecx, 2
test dl, dl
jne 0x419cf7
xor edx, edx
jmp 0x419d1c
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419d21
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
je 0x419d85
add esi, eax
mov ecx, ebx
mov eax, esi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x419d60
test dl, dl
je 0x419d5c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x419d60
add ecx, 2
add eax, 2
test dl, dl
jne 0x419d40
xor edx, edx
jmp 0x419d65
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419d70
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x419d36
movzx eax, word [esi]
mov edx, ebp
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esi + 2]
push eax
call fcn.00418f20
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
push str.Error__corrupted_constants_object
call fcn.00429290
add esp, 4
call fcn.0041f870
int3

Function at 0x41cfb4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41cff3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cff3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cff3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41cff3
cmp dword [ecx + 0x74], 0xe
jbe 0x41cff3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42b0a4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4394f0
push 0x4394e8
push str.FlsAlloc
push 0x1e
call fcn.0042af65
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b0d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x437474]
call esi
jmp 0x42b0de
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b122
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439500
push 0x4394f8
push str.FlsGetValue
push 0x20
call fcn.0042af65
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b159
push dword [ebp + 8]
mov ecx, esi
call dword [0x437474]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42e7eb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x446004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42e836
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042e98a
test al, al
jne 0x42e830
sub edx, 2
cmp edx, edi
jne 0x42e816
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42e858
lea eax, [edi + 2]
cmp edx, eax
je 0x42e858
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042e737
add esp, 0x10
jmp 0x42e952
push esi
lea ecx, [ebp - 0x255]
call fcn.0042e98a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e89b
push dword [ebp - 0x25c]
jmp 0x42e848
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42e8d8
cmp word [ebp - 0x226], 0
je 0x42e8f9
cmp word [ebp - 0x226], ax
jne 0x42e8d8
cmp word [ebp - 0x224], 0
je 0x42e8f9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042e737
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42e945
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42e8b2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42e92d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42e952
push 0x42e498
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00434150
add esp, 0x10
jmp 0x42e922
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c6dd
leave
ret
Function at 0x42f3cb
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 0x42f468
push ebx
push esi
call fcn.0042f394
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.0042f2dd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f415
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f467
push edi
push eax
call fcn.0042c6bd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42f435
call fcn.0042adf8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f466
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042f2dd
add esp, 0x20
test eax, eax
jne 0x42f454
push edi
call fcn.0042adf8
jmp 0x42f45c
push ebx
call fcn.0042adf8
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 0x42f46b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42f47c
pop esi
ret
push ebx
push edi
push esi
call fcn.0042f394
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042c6bd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42f4a4
push ebx
push esi
push edi
call fcn.0041e3b0
add esp, 0xc
push 0
call fcn.0042adf8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42fbf0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f717
Function at 0x4361f0
Capabilities:
Parse pe header

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

Function at 0x8e1148
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e114e
pop ebp
sub ebp, 6
sub ebp, 0x4e1148
jmp 0x8e11ac
jmp 0x8e11b5
mov eax, 0x4e1148
add eax, ebp
add eax, 0x93
mov ecx, 0x620
mov edx, 0x1e0ffda0
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e11cc
jmp 0x8e11df
retf 0xc8e0
Function at 0x401fc7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push ebx
mov dword [ebp - 0xc], esi
mov dword [edi], ebx
call fcn.00422453
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push esi
push 0xc0000000
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 4], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x10], eax
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call esi
push dword [ebp - 4]
push 0xfffffffffffffff4
call esi
mov ecx, 0x4306e0
call fcn.00401b9e
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, ebx
je 0x402058
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401dca
add esp, 0xc
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40206d
push str._Could_not_load_Python_
call fcn.00408d40
add eax, 0x40
push eax
call fcn.00408baa
pop ecx
pop ecx
push dword [ebp - 0x10]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push dword [ebp - 4]
call esi
mov ecx, 0x1000
cmp eax, ecx
jae 0x40209a
push ebx
push dword [ebp - 4]
call esi
mov esi, eax
jmp 0x40209c
mov esi, ecx
lea eax, [esi + 1]
push eax
call fcn.00408512
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x4020d4
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x402527
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402554
xor eax, eax
jmp 0x4025a2
push ebx
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0xffffffff
jne 0x402585
xor eax, eax
jmp 0x4025a1
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov esi, eax
call edi
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4025f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], ecx
lea ecx, [eax + edx - 0x16]
sub eax, dword [ecx + 0x10]
push esi
sub eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 0xc]
sub eax, 0x22
lea esi, [edx + eax]
xor edx, edx
mov dword [edi], edx
mov dword [ebx], edx
cmp dword [ecx], 0x6054b50
mov dword [ebp - 0x114], edi
jne 0x402756
cmp dword [esi], 0x1234567b
je 0x402656
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.00402331
pop ecx
jmp 0x402758
cmp eax, edx
jl 0x402756
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402672
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x430800], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10c]
sub eax, dword [esi + 8]
mov edi, esi
mov dword [ecx], eax
sub edi, dword [esi + 4]
push 0x104
call fcn.00408512
pop ecx
mov dword [ebp - 0x110], eax
test eax, eax
je 0x402756
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x402744
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push 0
push 0x423998
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x402744
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x110]
push 2
call fcn.004010ab
add esp, 0x1c
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x402756
push dword [esi + 4]
push edi
push eax
call fcn.00409000
mov eax, dword [ebp - 0x10c]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40270f
sub eax, esi
lea eax, [eax + edi + 1]
push eax
call fcn.0041c688
pop ecx
mov ecx, dword [ebp - 0x114]
push dword [ebp - 0x10c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x110]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x402758
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.00402331
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407e15
leave
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x401010
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x402060
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402106
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp dword [ebp - 0x20], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
je 0x402100
push edi
mov edi, 0x3e8
mov eax, dword [ebp - 0xc]
push 0xa
xor edx, edx
pop ecx
div ecx
cmp eax, edi
mov ecx, eax
ja 0x4020af
mov ecx, edi
mov edx, 0x2710
cmp ecx, edx
jae 0x4020c0
cmp eax, edi
ja 0x4020c2
mov eax, edi
jmp 0x4020c2
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4020f9
cmp dword [ebp - 0x10], ebx
jbe 0x4020e9
call esi
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4020f3
call esi
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x4020f9
cmp dword [ebp - 0x20], 1
jne 0x40209d
cmp dword [ebp - 0x20], 1
pop edi
jne 0x402104
mov byte [ebp - 1], 1
pop esi
pop ebx
mov al, byte [ebp - 1]
leave
ret 4
Function at 0x10036b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10036ef
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10036e5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10036f1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10036d5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
ficom dword [eax]
invalid
fcmovbe st(0), st(3)
les edx, [ebx - 0x26]
adc ah, al
push es
push ebx
cmc
dec edi
push ss
rcr byte [ebx + 0x45515f81], cl
aam 0xd3
out 0xc0, eax
movsd dword es:[edi], dword [esi]
adc bl, dl
adc byte [ecx - 0x3a17a6ec], dh
and dword [eax - 0x51add36d], ebx
sbb al, 0x47
mov ebx, 0xd0d764db
xor dl, byte [ecx]
mov al, 0x4c
xor dword [ecx], esp
sub al, 0x93
xlatb
sal byte [edx], 1
adc dword [eax + 0x2c21314c], esi
xchg ebx, eax
mov gs, edi
cmp edi, dword [ebx - 0x53c4b2cf]
xor dword [0xef83772c], esi
cmp ebp, ebx
ficom dword [eax]
les edx, [edx + 0x32]
pop edx
xchg edx, eax
lodsb al, byte [esi]
and eax, 0xefacd0fb
jo 0x415379
adc bl, dl
clc
fldln2
and al, 0xef
inc ecx
xchg ebx, eax
scasb al, byte es:[edi]
adc eax, 0xef8d472c
cmp ebx, dword [edx + 0x6c41c18]
push es
push es
push ebx
cmc
add dl, byte [esi + 0x3a]
jno 0x41536d
push ebx
fstp xword [eax + 0x14]
rcl dword [ecx + 0x32a5ae10]
dec edx
js 0x4153a2
and eax, 0x67d72c40
out dx, al
cmp ebp, edx
fidiv dword [eax + 0x1460538f]
sbb dl, bl
test al, 0x84
and ebx, dword [ebx + 0x25032c10]
out dx, eax
cmp edi, dword [ebx - 0x53c4107f]
bound esi, qword [eax]
mov ah, 0x12
invalid
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x259071c1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x77640d7b
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x82b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x82b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x854074
push ecx
mov edi, eax
call fcn.0083f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x82b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0083f02e
push esi
call fcn.0083efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x82e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x82e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x859720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x82e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0083f1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x82e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x859720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x82e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00840082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x82e957
mov word [eax], si
add eax, 2
push eax
call fcn.00840030
add esp, 4
jmp 0x82e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x82e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x82e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x82eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x82f080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x82f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x854458
push ecx
call fcn.0083f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0083f1e1
add esp, 0x10
jmp 0x82f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0083f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0083edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0082f050
mov eax, dword [0x859728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x82f13b
push esi
call fcn.0082efb0
add esp, 4
mov dword [0x859728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x82f14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0082eff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x832440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8324b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x83248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x832471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x83247e
add edx, ecx
cmp ebx, edx
jb 0x83248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x832467
xor ecx, ecx
jmp 0x8324a2
test eax, eax
jne 0x832492
xor ecx, ecx
jmp 0x8324a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008323c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret