joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6101a6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x6101d4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6101f2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0061010c
jmp 0x6101f2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6101f2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0061010c
test edi, edi
mov eax, edi
jne 0x6101dc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42d080
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x42d098
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42d176
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042d9e0
add esp, 8
sar eax, 0xc
cmp eax, 3
jne 0x42d171
mov dword [ebp - 0x10], 0xfff
mov dword [ebp - 0xc], 0x9922c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042d9e0
add esp, 8
and eax, dword [ebp - 0x10]
add eax, 0x8702
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
cmp dword [ebp - 4], 0
jne 0x42d14a
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x42d14a
xor eax, eax
jmp 0x42d176
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx - 0x8702]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx - 0x8702], eax
jmp 0x42d08f
mov esp, ebp
pop ebp
ret

Function at 0x42d9e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x240be8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x240be8
push 0x15b9
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x42da15
xor eax, eax
jmp 0x42da1f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx eax, word [eax + edx*2]
mov esp, ebp
pop ebp
ret
Function at 0x4010a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
jmp 0x4010c0
push 0xffffffffffffffff
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4016f0
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x44f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0042b2b0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401769
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
nop word [eax + eax]
cmp dword [ebp - 0x228], edi
je 0x401769
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401750
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
mov esi, eax
call fcn.00429f04
add esp, 4
test eax, eax
je 0x401797
mov dword [eax], esi
jmp 0x401799
xor eax, eax
lea ecx, [ebp - 0x238]
push ecx
push 0
push eax
push 0x401060
push 0
push 0
call fcn.0043092e
add esp, 0x18
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x40188e
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x40189f
push ecx
push eax
call fcn.00429131
add esp, 8
test eax, eax
jne 0x40189f
mov eax, dword [ebp + 8]
push 0x4c
mov dword [ebp - 0x234], eax
call fcn.00429f04
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401831
push 1
sub esp, 0x24
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
call fcn.00401ba0
mov edi, eax
mov esi, edi
test edi, edi
je 0x401835
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax]
jmp 0x401835
xor esi, esi
xor edi, edi
push 0
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x40184f
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.004071d0
xor ebx, ebx
add esp, 0xc
test eax, eax
cmovns ebx, eax
test esi, esi
je 0x401879
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429f42
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [ebp - 0x238], 0
call fcn.0042931d
push 1
call fcn.0042931d
int3

Function at 0x42ab9c
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449554
push 0x44954c
push str.FlsAlloc
push 0x1e
call fcn.00435989
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435b14
push dword [ebp + 8]
mov ecx, esi
call dword [0x4431c4]
call esi
jmp 0x435b1a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x435b5e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449564
push 0x44955c
push str.FlsGetValue
push 0x20
call fcn.00435989
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435b95
push dword [ebp + 8]
mov ecx, esi
call dword [0x4431c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x439688
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44f1e4]
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 0x4396d3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00439827
test al, al
jne 0x4396cd
sub edx, 2
cmp edx, edi
jne 0x4396b3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4396f5
lea eax, [edi + 2]
cmp edx, eax
je 0x4396f5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004395d4
add esp, 0x10
jmp 0x4397ef
push esi
lea ecx, [ebp - 0x255]
call fcn.00439827
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 0x439738
push dword [ebp - 0x25c]
jmp 0x4396e5
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 0x439775
cmp word [ebp - 0x226], 0
je 0x439796
cmp word [ebp - 0x226], ax
jne 0x439775
cmp word [ebp - 0x224], 0
je 0x439796
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004395d4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4397e2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43974f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4397ca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4397ef
push 0x439404
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043ff30
add esp, 0x10
jmp 0x4397bf
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.00429f42
leave
ret
Function at 0x442120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44214d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44214d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x65f81323
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x11c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x65f8145c
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x65f815ac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x65f8161a
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x65f81880
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x65f81c10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x65f8603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x65f86034]
sub esp, 4
test ebx, ebx
je 0x65f81c5b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x65f81c54
test esi, esi
je 0x65f81c54
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x65f81c30
mov dword [esp], 0x65f8603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x65f81e40
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x65f841a8
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x65f81e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x65f81f68
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x65f81ece
cmp eax, 4
jne 0x65f81ef0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x65f81ede
cmp edx, 4
je 0x65f81ede
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.65f81e40
Function at 0x402ac0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x402b03
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.004038d0
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x402b10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x402b9b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402b9b
test esi, esi
je 0x402b55
cmp esi, 0xffffffff
je 0x402b55
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x402be1
mov eax, dword [esp + 0x160]
test eax, eax
je 0x402b84
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x402b9b
jmp 0x402b93
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x402b9b
mov dword [esp + 0x10], 1
test esi, esi
je 0x402be1
cmp esi, 0xffffffff
je 0x402be1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402c18
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x402bee
call edi
test eax, eax
je 0x402be1
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x402c18
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x402bc9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x402be1
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x402c18
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x402bfb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00402240
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

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 0xed0980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xed09ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xed09ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1006cad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x1006cbc
xor eax, eax
jmp 0x1006d2f
movzx eax, word [ebp + 0xc]
push ebx
push esi
push dword [ebp + 0x18]
shr eax, 4
xor ebx, ebx
inc eax
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x1006d20
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1006d2d
and dword [ebp + 0xc], 0xf
movzx ebx, word [eax]
lea esi, [eax + 2]
je 0x1006d03
mov eax, dword [ebp + 0xc]
lea esi, [esi + ebx*2]
movzx ebx, word [esi]
inc esi
inc esi
dec eax
jne 0x1006cf8
cmp dword [ebp + 0x14], 0
jne 0x1006d0d
mov dword [edi], esi
jmp 0x1006d2b
dec dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x14]
jle 0x1006d18
mov ebx, dword [ebp + 0x14]
mov ecx, ebx
rep movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0
je 0x1006d2b
and word [edi + ebx*2], 0
mov eax, ebx
pop esi
pop ebx
pop edi
pop ebp
ret 0x14

Function at 0x1006d90
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [esp + 0x14]
call edi
mov esi, eax
test esi, esi
je 0x1006de3
inc esi
mov eax, 0x104
cmp esi, eax
ja 0x1006db4
mov esi, eax
push ebx
push 2
push esi
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x1006dca
xor eax, eax
jmp 0x1006de2
push esi
push ebx
push dword [esp + 0x18]
call edi
test eax, eax
jne 0x1006de0
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1006dc6
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4

Function at 0x1007167
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1002050
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10071bf
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x100208c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10071b2
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10071c1
xor eax, eax
pop esi
leave
ret 4

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 0x4ad0133f
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
and word [0x4ad28a20], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ebx, 0x2000
push ebx
mov esi, 0x4ad28a20
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4ad06b06
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
call dword [sym.imp.msvcrt.dll_rand]
push eax
jmp 0x4ad06d01
push 2
jmp 0x4ad06d01
push dword [0x4ad2ca20]
jmp 0x4ad06d01
cmp byte [0x4ad2ca64], 0
push edi
je 0x4ad06b98
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4ad30b88
push ebp
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad1095e
push str.ERRORLEVEL
push ebp
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad055fe
push str.CMDEXTVERSION
push ebp
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad05249
push 0x4ad0bb54
push ebp
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad1096a
push str.DATE
push ebp
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad0d090
push str.TIME
push ebp
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad06fa7
push 0x4ad0bb44
push ebp
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad04861
xor eax, eax
pop edi
jmp 0x4ad0136b
mov eax, esi
jmp 0x4ad06b9a
push 0x4ad0ba54
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x4ad06cc5
push ebx
push esi
push 1
push eax
call fcn.4ad06e1f
and word [eax*2 + 0x4ad28a20], 0
jmp 0x4ad06cc5
push ebx
push esi
push 1
push eax
call fcn.4ad080ce
jmp 0x4ad06fb1
push eax
push esi
call fcn.4ad03be2
jmp 0x4ad06cc5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x4ad06b9a