joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4238a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [0x42bc7c], 0
jne 0x4238c4
push 0x1019
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x4238c4
xor eax, eax
jmp 0x4238f9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, 0xfffffffe
je 0x4238d3
xor eax, eax
jmp 0x4238f9
push 0x11
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x1f4
jle 0x4238f1
mov eax, section..text
sub eax, 0x51615
mov dword [0x42bc80], eax
mov eax, dword [0x42bc80]
add eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x423a60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x423a78
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x423b1c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x423b17
mov ecx, dword [ebp - 8]
push ecx
call fcn.00423f80
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x423ad6
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x423ad6
xor eax, eax
jmp 0x423b1c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x423a6f
mov esp, ebp
pop ebp
ret
Function at 0x4068b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426c96
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4334c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.00410380
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.00410060
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406930
sub ecx, edi
mov dword [ebp - 0x230], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
push ecx
lea ecx, [ebp - 0x230]
push eax
test edx, edx
je 0x406a32
call fcn.0040d050
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040baa0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406eb0
mov edx, dword [ebp - 0x234]
add esp, 0x10
cmp edx, 0x10
jb 0x4069e3
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4069d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a77
push edx
push ecx
call fcn.0040e788
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x406a5a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406a50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a77
jmp 0x406a50
call fcn.0040d050
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040baa0
add esp, 8
jmp 0x4069fe
push edx
push ecx
call fcn.0040e788
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e97b
mov esp, ebp
pop ebp
ret
call fcn.00411d5f
int3
Function at 0x41a48b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a40d

Function at 0x41ccd1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x434b30]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cd11
cmp byte [ebx], 0xa
jne 0x41cd11
or byte [eax + edi + 0x28], 4
jmp 0x41cd16
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ce14
mov al, byte [edx]
cmp al, 0x1a
je 0x41cdf6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41cd45
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41cd6a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cd74
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41cd27
jmp 0x41ce14
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cdf1
cmp dword [ebp - 0xc], 0
je 0x41cdf1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x434b30]
test byte [eax + edi + 0x28], 0x48
je 0x41cdcb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cdb6
mov byte [esi], dl
jmp 0x41cdc7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434b30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ce14
cmp byte [ebp - 1], 0xa
jne 0x41cdda
cmp esi, ebx
jne 0x41cdda
mov byte [esi], 0xa
jmp 0x41ce13
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d720
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ce14
mov byte [esi], 0xd
jmp 0x41ce13
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x434b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ce10
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ce14
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ce1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x434b30]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ce60
cmp word [esi], dx
jne 0x41ce60
or byte [edi + eax + 0x28], 4
jmp 0x41ce65
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41cfb8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41cf98
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cea7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cedd
cmp eax, edx
jae 0x41cee9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ce7f
jmp 0x41cfb8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cf94
cmp dword [ebp - 0x14], 0
je 0x41cf94
mov eax, dword [ebx*4 + 0x434b30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cf6c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41cf35
mov word [esi], cx
jmp 0x41cf68
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x434b30]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x434b30]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x434b30]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cfb8
pop ebx
cmp word [ebp - 4], bx
jne 0x41cf7d
cmp esi, dword [ebp + 0xc]
jne 0x41cf7d
mov word [esi], bx
jmp 0x41cfb5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d720
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cfb8
push 0xd
jmp 0x41cfb1
mov ecx, dword [ebx*4 + 0x434b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cfaf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cfb8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ead1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5c8
push 0x42c5c0
push str.FlsAlloc
push 0x1e
call fcn.0041e96f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eb05
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281dc]
call esi
jmp 0x41eb0b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41eb4f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5d8
push 0x42c5d0
push str.FlsGetValue
push 0x20
call fcn.0041e96f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eb86
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41fe85
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 0x41ff22
push ebx
push esi
call fcn.0041fe4e
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.0041e76b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fecf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ff21
push edi
push eax
call fcn.0041ad3d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41feef
call fcn.0041ad03
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ff20
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e76b
add esp, 0x20
test eax, eax
jne 0x41ff0e
push edi
call fcn.0041ad03
jmp 0x41ff16
push ebx
call fcn.0041ad03
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 0x424d25
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00424ca1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424e9d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424e9d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424e4c
jg 0x424d7e
test eax, eax
je 0x424e42
push 1
push 0x1000
call fcn.0041ee88
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424da4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x424e39
push 0x8000
push ebx
call fcn.00418405
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424dd0
jg 0x424dcb
cmp ecx, 0x1000
jb 0x424dd0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e06b
add esp, 0x10
cmp eax, 0xffffffff
je 0x424e15
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424dcb
jl 0x424dfc
test ecx, ecx
jne 0x424dbd
push dword [ebp - 0xc]
push ebx
call fcn.00418405
push esi
call fcn.0041ad03
add esp, 0xc
xor edi, edi
jmp 0x424eae
cmp byte [edi + 0x24], 0
je 0x424e2c
cmp dword [edi + 0x20], 5
jne 0x424e2c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424e37
mov edi, dword [edi + 0x18]
jmp 0x424e39
xor edi, edi
push esi
call fcn.0041ad03
pop ecx
jmp 0x424eae
test ecx, ecx
jg 0x424e0e
jl 0x424e4c
test eax, eax
jae 0x424e0e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d720
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424e6f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x424e0e
jmp 0x424ea6
push ebx
call fcn.004202ef
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424e0e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x424eae
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x424eab
mov edi, dword [edi + 0x18]
jmp 0x424eae
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041d720
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4115a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x4115c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4115c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4115b8
mov eax, 1
add ebx, ebx
jne 0x4115db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4115d0
jne 0x4115ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4115d0
xor ecx, ecx
sub eax, 3
jb 0x411600
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411672
mov ebp, eax
add ebx, ebx
jne 0x41160b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411618
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41163c
inc ecx
add ebx, ebx
jne 0x411628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41161d
jne 0x411639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41161d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41165c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41164d
jmp 0x4115be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41165c
add edi, ecx
jmp 0x4115be
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41167a
cmp byte [edi], 5
jne 0x41167a
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 0x41167f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x4116ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14944]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x149f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4116ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x149fc]
or eax, eax
je 0x4116e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4116c9
call dword [esi + 0x14a0c]
mov ebp, dword [esi + 0x14a00]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x411722
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40a985
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411498
cmp edx, dword [eax]
je 0x40a9a7
add eax, 8
inc ecx
cmp eax, 0x411528
jl 0x40a998
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411498]
jne 0x40aad5
mov eax, dword [0x491ed0]
cmp eax, 1
je 0x40aaaf
test eax, eax
jne 0x40a9d8
cmp dword [0x4110c4], 1
je 0x40aaaf
cmp edx, 0xfc
je 0x40aad5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aa0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004073c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004074b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa52
lea eax, [ebp - 0x1a4]
push eax
call fcn.004074b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040ac30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004073c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004073d0
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.004073d0
push dword [esi + 0x41149c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004073d0
push pe_overlay
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bd08
add esp, 0x2c
pop edi
jmp 0x40aad5
lea eax, [ebp + 8]
lea esi, [esi + 0x41149c]
push 0
push eax
push dword [esi]
call fcn.004074b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x422645
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.004226c4
jae 0x422651
xor ecx, ecx
call fcn.004226c4
jae 0x42267b
xor eax, eax
call fcn.004226c4
jae 0x42268c
mov al, 0x10
call fcn.004226c4
adc al, al
jae 0x42266d
jne 0x4226b9
stosb byte es:[edi], al
jmp 0x422652
call fcn.004226d0
dec ecx
loop 0x422698
mov eax, ebp
call fcn.004226ce
jmp 0x4226ba
lodsb al, byte [esi]
shr eax, 1
je 0x4226e0
adc ecx, 2
mov ebp, eax
jmp 0x4226ba
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004226ce
cmp eax, 0x7d00
jae 0x4226b8
cmp eax, 0x500
jae 0x4226b9
cmp eax, 0x7f
ja 0x4226ba
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x422652
pop ebp
ret 8
Function at 0x42e7f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4967eb
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.0048afa7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42e872
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004886f0
mov eax, dword [eax]
push 0x667230
push eax
call fcn.0047b284
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048b232
test bl, bl
je 0x42e872
push 0x667230
lea ecx, [esp + 0xc]
call fcn.0048b5c2
push 0x66adac
lea ecx, [esp + 0xc]
call fcn.0048b5c2
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 0x42e8ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048b232
jmp 0x42e979
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 0x42e932
lea edx, [esp + 0x7c]
push 0x66ada8
push edx
call fcn.0047b284
add esp, 8
test eax, eax
je 0x42e932
lea eax, [esp + 0x7c]
push 0x66ada4
push eax
call fcn.0047b284
add esp, 8
test eax, eax
je 0x42e932
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 0x42e8c2
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.0048b232
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 0x42f170
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 0x42f1d2
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 0x42f1e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49686b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x671394]
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 0x42f318
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42f246
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048b232
xor eax, eax
jmp 0x42f38f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048b36f
push esi
lea ecx, [esp + 0xc]
call fcn.0048b5fe
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42f36d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.0042f170
test eax, eax
jne 0x42f36d
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.0042f170
test eax, eax
jne 0x42f36d
lea eax, [esp + 0x14]
push 0x66adc0
push eax
call fcn.0047c2c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f34c
lea ecx, [esp + 0x14]
push 0x66adbc
push ecx
call fcn.0047c240
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f34c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42f34f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048b31f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42f25e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048b232
xor eax, eax
jmp 0x42f38f
mov byte [esi], 0
push 0x66adb8
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.0048b232
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