joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473895
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4739ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4739ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048a457
mov esi, eax
test esi, esi
je 0x4739ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4739ad
mov ecx, esi
call fcn.00473800
cmp edi, eax
jge 0x4739ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x473933
mov dword [esp + 0x34], 1
jmp 0x47398e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4739ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00472d80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x48adfb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48ae33
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00488e88
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488e60
jmp 0x48ae3f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48c4e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48c52b
call fcn.00491fa5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48c52b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48c522
xor eax, eax
jmp 0x48c533
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048c539
pop edi
pop esi
pop ebx
ret 4
Function at 0x4924d5
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 0x492503
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492521
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049243b
jmp 0x492521
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492521
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049243b
test edi, edi
mov eax, edi
jne 0x49250b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014f2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
call dword [sym.imp.kernel32.dll_GetLastError]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401521
push 6
call fcn.0040f5b0
add esp, 4
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40154f
push 6
call fcn.0040f5b0
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [sym.imp.kernel32.dll_GetLastError]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401571
push 6
call fcn.0040f5b0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xb7
jne 0x4015b1
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4015b1
mov dword [ebp - 8], esp
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword [ebp - 4]
jmp 0x4015b9
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401ab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 5
jne 0x401ac3
cmp dword [ebp + 0xc], 0x201
jne 0x401b01
mov dword [ebp - 4], esp
push 0
push 2
push 0xa1
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_SendMessageA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x401b01
push 6
call fcn.0040f5b0
add esp, 4
cmp dword [ebp + 0xc], 0x10
jne 0x401b77
push 0x80000004
push 0
push 0x4480ff
push 0x80000301
push 0
push 0x24
push 0x80000004
push 0
push 0x448108
push 3
mov ebx, 0x300
call fcn.00410cb0
add esp, 0x28
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
je 0x401b58
mov eax, 0
jmp 0x401ba7
mov dword [ebp - 4], esp
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_DefWindowProcA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x401ba2
push 6
call fcn.0040f5b0
add esp, 4
jmp 0x401ba7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b67b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 8
call fcn.0040f5a4
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x448ca8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.00410850
add esp, 0x10
call fcn.0040f598
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x10030
push 0
push dword [ebp - 4]
push 0x40001
push 0
push dword [0x448ce4]
push 2
mov ebx, 0x14
mov eax, 0x4155e0
call fcn.0040f860
add esp, 0x1c
push 0x80000301
push 0
push 0
push 0x80000006
push 0
push 0x40b7e6
push 0x80000301
push 0
push 0x3ff
push 0x40001
push 0
push dword [0x448ce4]
push 4
mov ebx, 0x10
mov eax, 0x415580
call fcn.0040f860
add esp, 0x34
mov dword [ebp - 8], esp
push 0
push dword [0x448cd8]
call dword [sym.imp.USER32.DLL_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40b780
push 6
call fcn.0040f5b0
add esp, 4
mov dword [ebp - 8], esp
push 5
push dword [0x448cd4]
call dword [sym.imp.USER32.DLL_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40b7aa
push 6
call fcn.0040f5b0
add esp, 4
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.00410850
add esp, 0x10
call fcn.0040f598
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f900
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x40f91a
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x40f928
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x40f921
cmp al, 0x20
je 0x40f932
cmp byte [edi], 0x20
jne 0x40f932
inc edi
lea ecx, [esp + 0xc]
call fcn.00413310
mov dword [esp + 0xc], 0x43f344
mov al, byte [edi]
test al, al
je 0x40f9f6
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x40f99e
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x40f979
mov al, byte [esi]
cmp al, 0x22
je 0x40f979
test al, al
jge 0x40f971
mov al, byte [esi + 1]
test al, al
je 0x40f979
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40f95f
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.004137a0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.004135a0
mov al, byte [esi]
mov edi, esi
test al, al
je 0x40f9ec
lea edi, [esi + 1]
jmp 0x40f9ec
cmp al, 0x20
jg 0x40f9aa
cmp byte [esi], 0
jl 0x40f9aa
inc edi
jmp 0x40f9ec
test al, al
mov esi, edi
je 0x40f9d2
mov al, byte [esi]
cmp al, 0x22
je 0x40f9d2
cmp al, 0x20
jg 0x40f9be
test al, al
jge 0x40f9d2
test al, al
jge 0x40f9ca
mov al, byte [esi + 1]
test al, al
je 0x40f9d2
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40f9b0
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.004137a0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.004135a0
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x40f951
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x40fa09
push eax
call fcn.00413740
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.0040f6e0
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x43f340
call fcn.00413510
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40fce0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x40fd72
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x40fd64
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40fd5c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x40fd25
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4118c9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0040f6e0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x411af0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x294
lea eax, [esp + 0x104]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x411b45
lea ecx, [esp + 4]
push 0x104
push ecx
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x411b40
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.004137a0
add esp, 8
mov esi, eax
pop edi
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x294
ret
Function at 0x412870
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x412be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00413d30
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x412d30
test ecx, ecx
je 0x412d30
inc ecx
push ecx
call fcn.004211e6
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00421860
mov edi, eax
add esp, 0xc
test edi, edi
je 0x412c59
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x412d1d
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.004211e6
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x412ce1
cmp eax, 0xea
jne 0x412d09
push esi
call fcn.004210a1
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004211e6
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x412cac
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x412cef
cmp eax, 2
jne 0x412d09
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.004137a0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.004210a1
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004210a1
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x412d5e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x412d6a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x412d6a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.004137a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41d1a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43ddc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0041d5a0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x4715fc
call fcn.004228b9
mov ecx, dword [0x44008c]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0041a8b0
mov esi, 0x4400e4
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x41d247
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x41d23e
cmp al, 0xff
je 0x41d23e
dec al
mov byte [ecx], al
jmp 0x41d247
push ecx
call fcn.004210a1
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0043c450
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x41d28d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x41d284
cmp al, 0xff
je 0x41d284
dec al
mov byte [ecx], al
jmp 0x41d28d
push ecx
call fcn.004210a1
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00422940
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4368d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43e510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0042b70e
mov eax, dword [0x440998]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0042b640
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004373e0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x436977
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x43696e
cmp al, 0xff
je 0x43696e
dec al
mov byte [ecx], al
jmp 0x436977
push ecx
call fcn.004210a1
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4369a8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x43699f
cmp al, 0xff
je 0x43699f
dec al
mov byte [ecx], al
jmp 0x4369a8
push ecx
call fcn.004210a1
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x47b5f5
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0047b674
jae 0x47b601
xor ecx, ecx
call fcn.0047b674
jae 0x47b62b
xor eax, eax
call fcn.0047b674
jae 0x47b63c
mov al, 0x10
call fcn.0047b674
adc al, al
jae 0x47b61d
jne 0x47b669
stosb byte es:[edi], al
jmp 0x47b602
call fcn.0047b680
dec ecx
loop 0x47b648
mov eax, ebp
call fcn.0047b67e
jmp 0x47b66a
lodsb al, byte [esi]
shr eax, 1
je 0x47b690
adc ecx, 2
mov ebp, eax
jmp 0x47b66a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0047b67e
cmp eax, 0x7d00
jae 0x47b668
cmp eax, 0x500
jae 0x47b669
cmp eax, 0x7f
ja 0x47b66a
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x47b602
pop ebp
ret 8
Function at 0x41ce60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48168b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00475cdd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41cee2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00473990
mov eax, dword [eax]
push 0x58b200
push eax
call fcn.00465cc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00475f68
test bl, bl
je 0x41cee2
push 0x58b200
lea ecx, [esp + 0xc]
call fcn.004762f8
push 0x58ed7c
lea ecx, [esp + 0xc]
call fcn.004762f8
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41cf1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00475f68
jmp 0x41cfe9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41cfa2
lea edx, [esp + 0x7c]
push 0x58ed78
push edx
call fcn.00465cc4
add esp, 8
test eax, eax
je 0x41cfa2
lea eax, [esp + 0x7c]
push 0x58ed74
push eax
call fcn.00465cc4
add esp, 8
test eax, eax
je 0x41cfa2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41cf32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00475f68
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41d7e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41d842
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41d850
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48170b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5955d4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x41d988
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41d8b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00475f68
xor eax, eax
jmp 0x41d9ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004760a5
push esi
lea ecx, [esp + 0xc]
call fcn.00476334
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x58edb4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41d9dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.0041d7e0
test eax, eax
jne 0x41d9dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push bind
mov ecx, edi
call fcn.0041d7e0
test eax, eax
jne 0x41d9dd
lea eax, [esp + 0x14]
push 0x58ed90
push eax
call fcn.00466d00
mov esi, eax
add esp, 8
test esi, esi
jne 0x41d9bc
lea ecx, [esp + 0x14]
push 0x58ed8c
push ecx
call fcn.00466c80
mov esi, eax
add esp, 8
test esi, esi
jne 0x41d9bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41d9bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00476055
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41d8ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00475f68
xor eax, eax
jmp 0x41d9ff
mov byte [esi], 0
push 0x58ed88
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00475f68
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4