joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40bf52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bf59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bf48
mov eax, 1
add ebx, ebx
jne 0x40bf6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bf60
jne 0x40bf7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bf60
xor ecx, ecx
sub eax, 3
jb 0x40bf90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c002
mov ebp, eax
add ebx, ebx
jne 0x40bf9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bfcc
inc ecx
add ebx, ebx
jne 0x40bfb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bfad
jne 0x40bfc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bfad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40bfec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bfdd
jmp 0x40bf4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40bfec
add edi, ecx
jmp 0x40bf4e
pop esi
mov edi, esi
mov ecx, 0x22
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c00a
cmp byte [edi], 1
jne 0x40c00a
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 0x40c00f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40c087
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcbb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcbec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c03c
mov ecx, edi
jns 0x40c06b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcbf0]
or eax, eax
je 0x40c081
mov dword [ebx], eax
add ebx, 4
jmp 0x40c059
call dword [esi + 0xcc00]
mov ebp, dword [esi + 0xcbf4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x40c0bb
sub esp, 0xffffff80
jmp 0x401374
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401a09
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.00401641

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x725b3430
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x49413328
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10005a3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10005a4c
pop dword [ebp - 8]
mov eax, 0xdd28962e
sub eax, 0xcd283be2
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x9860fdec
add dword [ebp - 0x18], 0xb5f1475f
mov dword [ebp - 0x14], 0x6f773930
add dword [ebp - 0x14], 0xc2bc1315
mov dword [ebp - 0x10], 0xd56edf56
add dword [ebp - 0x10], 0x76dd64d8
mov dword [ebp - 0xc], 0x19c25026
sub dword [ebp - 0xc], 0x19c25026
lea eax, [ebp - 0x18]
push eax
mov eax, 0x636145f9
add eax, 0xaca6da3b
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x9df3c002
sub dword [ebp - 0x18], 0x298156ac
mov dword [ebp - 0x14], 0x93d42dc9
sub dword [ebp - 0x14], 0x5267cc54
mov dword [ebp - 0x10], 0x3bca75c4
sub dword [ebp - 0x10], 0xd85b0958
mov dword [ebp - 0xc], 0x56fd94f2
sub dword [ebp - 0xc], 0x56fd94f2
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x9d4927de
sub eax, 0x8d4107ba
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3cc61
push 0
call eax
mov ecx, 0x440c
xor esi, esi
add esi, eax
mov edx, 0x100b2e00
add edx, dword [ebp - 8]
mov ebx, 0x6e70b380
sub ebx, 0x49f870ea
mov dword [ebp - 4], 0x6fc46ffd
mov edi, dword [edx]
add dword [ebp - 4], 0xb72fbc7e
xor edi, ebx
sub dword [ebp - 4], 0x7231e264
mov dword [esi], edi
sub dword [ebp - 4], 0x53376c23
add esi, 4
add edx, 0xacc50d66
sub edx, 0xacc50d62
loop 0x10005b64
add eax, 0x10303
xor ebx, ebx
add ebx, eax
add eax, 0x2c8a2223
add eax, 0xd375dde2
mov ecx, 0x31a9a9ab
add ecx, 0xde565655
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x1006ced1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push esi
push edi
call fcn.1006b761
mov edi, dword [esp + 0x38]
push eax
push edi
call sub.glib_lite.dll_Ordinal_400
mov esi, eax
pop ecx
pop ecx
mov eax, dword [esi + 0x74]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1006cefc
xor eax, eax
jmp 0x1006d085
cmp eax, dword [esi + 0x1f0]
je 0x1006cef5
push ebx
push ebp
lea ebx, [esi + 0xc]
push ebx
call sub.glib_lite.dll_Ordinal_209
pop ecx
jmp 0x1006cf15
lea ebx, [esi + 0xc]
push dword [esp + 0x44]
push edi
call fcn.10029e9c
pop ecx
pop ecx
test eax, eax
jne 0x1006d076
push ebx
call sub.glib_lite.dll_Ordinal_208
mov eax, dword [esi + 0x1f8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
lea eax, [esi + 0xc]
push eax
call sub.glib_lite.dll_Ordinal_209
push edi
call fcn.1002ad4f
add esp, 0xc
cmp ebp, edx
jb 0x1006cf5c
ja 0x1006cf56
cmp ebx, eax
jbe 0x1006cf5c
sub ebx, eax
sbb ebp, edx
jmp 0x1006cf6d
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push edi
call fcn.1002c986
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, 4
je 0x1006cf9c
cmp dword [edi + 0x168], 0
jne 0x1006d076
cmp eax, 2
je 0x1006cf12
call fcn.1007f79f
push eax
push dword [esi + 0x1f0]
call sub.glib_lite.dll_Ordinal_400
push eax
call fcn.1007f76e
add esp, 0xc
push edx
push eax
call fcn.1007f79f
push eax
push dword [esi + 0x1f0]
call sub.glib_lite.dll_Ordinal_400
pop ecx
pop ecx
push eax
call fcn.1007f685
mov dword [esp + 0x24], eax
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x24], edx
call sub.glib_lite.dll_Ordinal_208
mov edi, dword [esi + 0x78]
add esp, 0x10
add edi, ebx
mov ebx, dword [esi + 0x7c]
adc ebx, ebp
cmp dword [esp + 0x10], 1
jne 0x1006cffe
add edi, dword [esp + 0x24]
adc ebx, dword [esp + 0x28]
push esi
call fcn.1006b2a4
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push ebp
push dword [esi + 0x1f0]
call fcn.1002f4b4
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x58]
push dword [esp + 0x58]
push ebx
push edi
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esi + 0x1f0]
call fcn.10005a3d
mov eax, dword [esi + 0x1f8]
add esp, 0x3c
cmp dword [eax + 8], ebp
jne 0x1006d061
push dword [esp + 0x20]
push dword [esi + 0x1f0]
call fcn.1002f914
pop ecx
pop ecx
push esi
call fcn.1006c697
push 3
push esi
call fcn.1006ad1b
add esp, 0xc
xor eax, eax
jmp 0x1006d083
lea eax, [esi + 0xc]
push eax
call sub.glib_lite.dll_Ordinal_208
pop ecx
push 0xfffffffffffffffe
pop eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x401a1c
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x401ad2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x46a5c8
call sub.KERNEL32.DLL_WinExec
cmp byte [0x46a049], 0
je 0x401a4a
push 0x46a5c8
call sub.KERNEL32.DLL_WriteFile
mov eax, 0x46a5e8
call fcn.004013e0
mov eax, 0x46a5f8
call fcn.004013e0
mov eax, 0x46a624
call fcn.004013e0
push 0xff8
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x46a620], eax
cmp dword [0x46a620], 0
je 0x401ab1
mov eax, 3
mov edx, dword [0x46a620]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401a87
mov eax, 0x46a608
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x46a614], eax
mov byte [0x46a5c0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ad9
cmp byte [0x46a049], 0
je 0x401ad1
push 0x46a5c8
call sub.KERNEL32.DLL_lstrcpyA
ret

Function at 0x401ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x46a5c0], 0
je 0x401bbd
xor edx, edx
push ebp
push 0x401bb6
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x46a049], 0
je 0x401b12
push 0x46a5c8
call sub.KERNEL32.DLL_WriteFile
mov byte [0x46a5c0], 0
mov eax, dword [0x46a620]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
xor eax, eax
mov dword [0x46a620], eax
mov ebx, dword [0x46a5e8]
jmp 0x401b45
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebx]
cmp ebx, 0x46a5e8
jne 0x401b33
mov eax, 0x46a5e8
call fcn.004013e0
mov eax, 0x46a5f8
call fcn.004013e0
mov eax, 0x46a624
call fcn.004013e0
mov eax, dword [0x46a5e0]
test eax, eax
je 0x401b8b
mov edx, dword [eax]
mov dword [0x46a5e0], edx
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov eax, dword [0x46a5e0]
test eax, eax
jne 0x401b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401bbd
cmp byte [0x46a049], 0
je 0x401bab
push 0x46a5c8
call sub.KERNEL32.DLL_lstrcpyA
push 0x46a5c8
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret
Function at 0x402108
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x46a5c0], 0
jne 0x402125
call fcn.00401a1c
test al, al
je 0x40212d
cmp ebx, 0x7ffffff8
jle 0x402137
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40228b
xor ecx, ecx
push ebp
push 0x402284
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x46a049], 0
je 0x402158
push 0x46a5c8
call sub.KERNEL32.DLL_WriteFile
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x402168
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x402207
mov eax, ebx
test eax, eax
jns 0x40217d
add eax, 3
sar eax, 2
mov edx, dword [0x46a620]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x402207
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x4021b8
mov eax, ebx
test eax, eax
jns 0x4021a7
add eax, 3
sar eax, 2
mov ecx, dword [0x46a620]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x4021de
mov ecx, ebx
test ecx, ecx
jns 0x4021c1
add ecx, 3
sar ecx, 2
mov edi, dword [0x46a620]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x46a5b0]
sub ebx, 4
add dword [0x46a5b4], ebx
call fcn.00403a94
jmp 0x40228b
cmp ebx, dword [0x46a618]
jg 0x402259
sub dword [0x46a618], ebx
cmp dword [0x46a618], 0xc
jge 0x40222b
add ebx, dword [0x46a618]
xor eax, eax
mov dword [0x46a618], eax
mov eax, dword [0x46a61c]
add dword [0x46a61c], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x46a5b0]
sub ebx, 4
add dword [0x46a5b4], ebx
call fcn.00403a94
jmp 0x40228b
mov eax, ebx
call fcn.00402014
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40228b
cmp byte [0x46a049], 0
je 0x402283
push 0x46a5c8
call sub.KERNEL32.DLL_lstrcpyA
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402298
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x46a5c4], eax
cmp byte [0x46a5c0], 0
jne 0x4022d0
call fcn.00401a1c
test al, al
jne 0x4022d0
mov dword [0x46a5c4], 8
mov dword [ebp - 4], 8
jmp 0x402431
xor ecx, ecx
push ebp
push 0x40242a
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x46a049], 0
je 0x4022f1
push 0x46a5c8
call sub.KERNEL32.DLL_WriteFile
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x40230c
mov dword [0x46a5c4], 9
jmp 0x402401
dec dword [0x46a5b0]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x46a5b4], eax
test bl, 1
je 0x40236c
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x40233c
test edx, 0x80000003
je 0x40234b
mov dword [0x46a5c4], 0xa
jmp 0x402401
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x402363
mov dword [0x46a5c4], 0xa
jmp 0x402401
add ebx, edx
mov esi, eax
call fcn.00401bc0
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x46a61c]
jne 0x4023ac
sub dword [0x46a61c], ebx
add dword [0x46a618], ebx
cmp dword [0x46a618], 0x3c00
jle 0x40239d
call fcn.00401eb0
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00403a94
jmp 0x402431
mov edx, dword [eax]
test dl, 2
je 0x4023cf
and edx, 0x7ffffffc
cmp edx, 4
jge 0x4023ca
mov dword [0x46a5c4], 0xb
jmp 0x402401
or dword [eax], 1
jmp 0x4023f8
mov eax, edi
cmp dword [eax + 4], 0
je 0x4023e2
cmp dword [eax], 0
je 0x4023e2
cmp dword [eax + 8], 0xc
jge 0x4023ee
mov dword [0x46a5c4], 0xb
jmp 0x402401
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401bc0
mov edx, ebx
mov eax, esi
call fcn.00401e28
mov eax, dword [0x46a5c4]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402431
cmp byte [0x46a049], 0
je 0x402429
push 0x46a5c8
call sub.KERNEL32.DLL_lstrcpyA
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x404150
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
push 0
mov eax, dword [0x46a5bc]
push eax
call sub.KERNEL32.DLL_ResumeThread
pop ebp
ret 4

Function at 0x4046e8
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
je 0x4046fc
push eax
push 0
call sub.user32.dll_ShowWindow
test eax, eax
je 0x4046e0
ret

Function at 0x405158
Capabilities:
Clear file content

Disassembly:
add esp, 0xffffffe4
push 0x1c
lea edx, [esp + 4]
push edx
push eax
call sub.KERNEL32.DLL_SetEndOfFile
cmp dword [esp + 0x10], 0x1000
jne 0x405178
mov eax, dword [esp + 4]
jmp 0x40517a
xor eax, eax
add esp, 0x1c
ret
Function at 0x40520c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x4053a0
call sub.KERNEL32.DLL_InitializeCriticalSection
mov esi, eax
test esi, esi
je 0x405274
push 0x4053b0
push esi
call sub.KERNEL32.DLL_LeaveCriticalSection
mov ebx, eax
test ebx, ebx
je 0x405274
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x405274
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_MulDiv
jmp 0x405396
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x4052b4
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x405396
mov eax, dword [ebp - 4]
add eax, 2
call fcn.004051f8
mov esi, eax
cmp byte [esi], 0
je 0x405396
lea eax, [esi + 1]
call fcn.004051f8
mov esi, eax
cmp byte [esi], 0
je 0x405396
jmp 0x4052ba
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_MulDiv
jmp 0x405379
lea eax, [esi + 1]
call fcn.004051f8
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x405396
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_MulDiv
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GlobalFree
mov esi, eax
cmp esi, 0xffffffff
je 0x405396
push esi
call sub.KERNEL32.DLL_GlobalFindAtomA
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_ReadFile
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x405396
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_MulDiv
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_ReadFile
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x4052d8
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_MulDiv
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4053c4
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GlobalUnlock
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055f4
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x405447
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055f4
push 0x80000002
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x405447
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405610
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
jne 0x4054d0
xor eax, eax
push ebp
push 0x4054c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040520c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x4054ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405630
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x4054ae
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4054d0
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_TranslateMessage
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MulDiv
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_GlobalReAlloc
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4055ea
cmp byte [ebp - 0xd], 0
jne 0x405517
cmp byte [ebp - 0x12], 0
je 0x4055ea
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ReadFile
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405530
dec ebx
cmp byte [ebx], 0x2e
je 0x40553f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40552f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4055ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40557c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_MulDiv
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
test esi, esi
jne 0x4055ea
cmp byte [ebp - 0xd], 0
je 0x4055ea
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_MulDiv
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
test esi, esi
jne 0x4055ea
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_MulDiv
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret