joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x815030]
jne 0x401116
repz ret
jmp fcn.00401d61

Function at 0x40a9f4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406d3e
and dword [ebp - 4], 0
cmp dword [0x817894], 0
mov ebx, eax
jne 0x40aaa5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ab56
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ab56
push eax
call fcn.00406ccc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x817894], eax
call esi
push eax
call fcn.00406ccc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x817898], eax
call esi
push eax
call fcn.00406ccc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81789c], eax
call esi
push eax
call fcn.00406ccc
pop ecx
mov dword [0x8178a4], eax
test eax, eax
je 0x40aaa5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406ccc
pop ecx
mov dword [0x8178a0], eax
mov eax, dword [0x8178a0]
cmp eax, ebx
je 0x40aafd
cmp dword [0x8178a4], ebx
je 0x40aafd
push eax
call fcn.00406d47
push dword [0x8178a4]
mov esi, eax
call fcn.00406d47
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40aafd
test edi, edi
je 0x40aafd
call esi
test eax, eax
je 0x40aaf4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aaf4
test byte [ebp - 0xc], 1
jne 0x40aafd
or dword [ebp + 0x10], 0x200000
jmp 0x40ab36
mov eax, dword [0x817898]
cmp eax, ebx
je 0x40ab36
push eax
call fcn.00406d47
pop ecx
test eax, eax
je 0x40ab36
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ab36
mov eax, dword [0x81789c]
cmp eax, ebx
je 0x40ab36
push eax
call fcn.00406d47
pop ecx
test eax, eax
je 0x40ab36
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x817894]
call fcn.00406d47
pop ecx
test eax, eax
je 0x40ab56
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ab58
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf798e8
Capabilities:
Encode data using xor

Disassembly:
movsd dword es:[edi], dword [esi]
dec esp
mov eax, cs
xchg ecx, eax
aaa
jg 0xf79925
mov dword [ebp - 0x7676b282], eax
mov ebp, 0x637d4644
jge 0xf7993a
movsd dword es:[edi], dword [esi]
cwde
popal
imul ebp, dword [ecx + 0x76725580], 0xffffffc7
ja 0xf798d5
fdiv dword [eax + 0x76]
xchg dword [ebx + ebp*8 + 0xe9e0008], esi
jmp 0xf798f2
add byte [esi + 0xe], bl
add byte [eax], al
pushal
call 0xf798f8
jmp 0xf798f2
pushal
call 0xf798f8
pop ebp
sub ebp, 0x10
sub ebp, 0xb798e8
jmp 0xf7990e
mov eax, 0xb798e8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b0
mov edx, 0x1b796180
xor byte [eax], dl
inc eax
dec ecx
jne 0xf79925
jmp 0xf79938
or ecx, dword [ebp + 0xb]
or dword [eax + eax*4 + 0x41018080], edi
or ecx, dword [ecx]
mov esp, 0x1808080
inc ecx
js 0xf798c4
add byte [eax - 0x79c7b27d], 0x80
add byte [eax - 0x7f7f57c6], 0x80
ja 0xf799b6
or dword [eax + 0xb], 1
mov word [eax + 0x45838080], es
or eax, 0x97ca4e4
test byte [eax + edx*8 - 0x5d2adb18], ah
sub al, 0xc4
ret
call 0x810d5d7f
sub dword [esp + 0x7ca4e40d], 0x68a48c09
test dword [eax - 0x40967f80], eax
add byte [eax - 0x222b2a80], 0x7f
cmc
invalid
Function at 0x4b9850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
mov dword [edi + 0x9403c], 0x5508dddd
push edi
jmp 0x4b987a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b9881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b9870
mov eax, 1
add ebx, ebx
jne 0x4b9893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b98a4
jne 0x4b98c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b98c3
dec eax
add ebx, ebx
jne 0x4b98b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b9888
add ebx, ebx
jne 0x4b98bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b9915
xor ecx, ecx
sub eax, 3
jb 0x4b98db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b994a
sar eax, 1
mov ebp, eax
jmp 0x4b98e6
add ebx, ebx
jne 0x4b98e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b98b4
inc ecx
add ebx, ebx
jne 0x4b98f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b98b4
add ebx, ebx
jne 0x4b9901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b98f6
jne 0x4b9912
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b98f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b9934
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b9926
jmp 0x4b9876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b9934
add edi, ecx
jmp 0x4b9876
pop esi
mov edi, esi
mov ecx, 0x2e38
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b9952
cmp byte [edi], 0x12
jne 0x4b9952
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 0x4b9957
lea edi, [esi + 0xb7000]
mov eax, dword [edi]
or eax, eax
je 0x4b99cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd853c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd85f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b9984
mov ecx, edi
jns 0x4b99b3
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 + 0xd85f4]
or eax, eax
je 0x4b99c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b99a1
call dword [esi + 0xd8604]
mov ebp, dword [esi + 0xd85f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x4b9a03
sub esp, 0xffffff80
jmp 0x43517b
Function at 0x4010fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 4]
cmovne edi, dword [ebp + 0x10]
xor eax, eax
cmp dword [esi + 8], eax
jne 0x40114d
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40114d
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401144
cmp dword [edi], ebx
je 0x40113c
push 2
pop eax
mov dword [esi + 8], eax
jmp 0x401152
and dword [esi + 8], 0
xor eax, eax
jmp 0x401152
mov ecx, esi
call fcn.00401093
jmp 0x401152
mov dword [edi], eax
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4014e1
Capabilities:
Send data
Send http request

Disassembly:
push 4
mov eax, 0x414aa2
call fcn.00413795
mov edi, ecx
cmp dword [ebp + 8], 0
jne 0x4014ff
mov eax, 0x80004003
jmp 0x4015d2
call fcn.00401614
test eax, eax
je 0x401512
mov eax, 0x80004005
jmp 0x4015d2
xor ebx, ebx
call fcn.00402c0d
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x401530
push 0x80004005
call fcn.00402f1d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004017d7
push str.Content_Type:_text_xml__charsetutf_8_r_n
lea ecx, [ebp - 0x10]
call fcn.004017d7
push ebx
push dword [edi + 0x24a4]
push 0x41e0b0
push ebx
push ebx
push dword [edi + 0x2480]
push str.POST
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, dword [ebp - 0x10]
mov ecx, eax
mov dword [edi + 0x10], ecx
test ecx, ecx
je 0x4015c2
mov eax, dword [edi + 0x249c]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
push esi
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4015c2
test dword [edi + 0x24a4], 0x800000
je 0x4015b9
push dword [edi + 0x10]
mov ecx, edi
call fcn.004013ca
mov ebx, eax
test ebx, ebx
js 0x4015c2
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x2494], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi - 0x10]
call fcn.00402dca
mov eax, ebx
call fcn.00413772
ret 4
Function at 0x401614
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push esi
push esi
push str.HP_Rules_Engine_2.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 8], eax
test eax, eax
je 0x4016a5
push ebx
lea ebx, [edi + 0x2484]
cmp dword [ebx], esi
je 0x401663
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push ebx
push 2
push eax
call esi
push 4
push ebx
push 6
push dword [edi + 8]
call esi
push 4
push ebx
push 5
push dword [edi + 8]
call esi
xor esi, esi
lea eax, [edi + 0x56]
push eax
lea ecx, [ebp - 4]
call fcn.00401705
movzx eax, word [edi + 0x2460]
push esi
push esi
push 3
push esi
push esi
push eax
push dword [ebp - 4]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
pop ebx
lea ecx, [ecx - 0x10]
test eax, eax
je 0x4016a0
call fcn.00402dca
xor eax, eax
jmp 0x4016b1
call fcn.00402dca
mov ecx, edi
call fcn.004015da
mov eax, 0x80004005
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4019e9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019da
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4019d6
cmp esi, ecx
jae 0x4019da
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4019c6
cmp esi, ecx
jb 0x4019de
xor eax, eax
jmp 0x4019e8
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4043b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4043cf
cmp eax, 2
jne 0x404400
cmp dword [ebp + 0x10], esi
je 0x404400
cmp dword [ebp + 0x14], esi
lea eax, [ebp + 8]
push esi
cmovne eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4043f8
mov dword [ebx + 0x14], esi
jmp 0x404415
lea ecx, [ebx + 0xc]
call fcn.00401093
test eax, eax
je 0x404415
mov ecx, dword [ebx + 0x20]
movzx esi, cx
or esi, 0x80070000
test ecx, ecx
cmovle esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x404483
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop ebp
ret 0x10
Function at 0x40e14b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408c36
mov dword [ebp - 0x14], eax
cmp dword [0x41f248], esi
jne 0x40e23e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e1cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e31e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e31e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e31e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41f248], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41f24c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41f250], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41f258], eax
test eax, eax
je 0x40e23b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41f254], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e263
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e256
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e278
push 4
pop eax
jmp 0x40e320
cmp dword [ebp - 0x14], esi
je 0x40e278
push dword [0x41f248]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e25d
mov eax, dword [0x41f254]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e2d6
cmp dword [0x41f258], edi
je 0x40e2d6
push eax
call ebx
push dword [0x41f258]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e2d6
test eax, eax
je 0x40e2d6
call ecx
test eax, eax
je 0x40e2cb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e2cb
test byte [ebp - 8], 1
jne 0x40e2d6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e306
mov eax, dword [0x41f24c]
cmp eax, edi
je 0x40e303
push eax
call ebx
test eax, eax
je 0x40e303
call eax
mov esi, eax
test esi, esi
je 0x40e303
mov eax, dword [0x41f250]
cmp eax, edi
je 0x40e303
push eax
call ebx
test eax, eax
je 0x40e303
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41f248]
call ebx
test eax, eax
je 0x40e31e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e320
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040466c
mov esp, ebp
pop ebp
ret
Function at 0x1002cf7
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebx
push esi
push edi
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100a184]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002d1e
push eax
call esi
and dword [0x100a184], 0
mov eax, dword [0x100a020]
cmp eax, 0xffffffff
je 0x1002d32
push eax
call esi
or dword [0x100a020], 0xffffffff
mov esi, dword [0x100a004]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, 0x100a004
jmp 0x1002d76
mov eax, dword [esi + 4]
test eax, eax
je 0x1002d74
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1002d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002d70
cmp eax, 3
je 0x1002d70
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002d45
mov esi, dword [0x100a00c]
mov edi, 0x100a00c
jmp 0x1002db8
mov eax, dword [esi + 4]
test eax, eax
je 0x1002db6
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1002db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002db2
cmp eax, 3
je 0x1002db2
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002d87
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret

Function at 0x10030b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x10030de
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100a1a0]
inc ecx
dec edx
jne 0x10030c6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10033fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100ad24]
xor ebx, ebx
cmp eax, ebx
je 0x1003472
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003426
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100ad24]
call esi
test eax, eax
je 0x1003475
mov ecx, 0x100235c
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1003455
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100ad24]
call esi
test eax, eax
pop edi
je 0x1003475
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1003827
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003841
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x10038a2
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002c8f
lea eax, [ebp - 0x280]
push eax
call fcn.01003486
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002cf7
test esi, esi
jne 0x10038ac
inc esi
cmp dword [0x100a060], 0
je 0x10038c7
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10038fb
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push 0x1002528
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp - 8], 0x10
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x1002500
mov esi, eax
call fcn.01003486
cmp esi, ebx
je 0x1003948
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100395f
cmp dword [ebp + 0x10], ebx
je 0x1003954
push 0xea60
jmp 0x1003959
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x13
call fcn.01003505
test eax, eax
jne 0x1003984
push 0x10024dc
call fcn.01003486
xor eax, eax
jmp 0x1003b24
push 0x10024cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x10039a5
push 0x10024b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push ebx
push dword [0x100ac04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10039be
xor esi, esi
inc esi
jmp 0x1003afd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], ebx
je 0x10039dd
push dword [ebp + 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x14]
push ebx
call dword [ebp - 4]
jmp 0x10039ec
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov esi, eax
cmp esi, ebx
jne 0x1003afc
call edi
cmp eax, 0x45b
je 0x1003a20
cmp eax, 0x4f7
je 0x1003a0b
cmp eax, 0x15
jne 0x1003a28
push 0xbb8
push dword [0x100ac04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10039c5
xor esi, esi
inc esi
jmp 0x1003afc
call edi
push eax
push 0x100247c
lea eax, [ebp - 0x2bc]
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x2bc]
push eax
call fcn.01003486
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], 0x94
call edi
cmp dword [ebp - 0xb0], 4
jbe 0x1003afc
lea eax, [ebp - 0xb4]
push eax
invalid
inc esp
and al, 0xfc
add eax, 2
mov dword [esp - 4], eax
mov eax, dword [esp - 8]
sub esp, 4
ret
add eax, dword [ecx]

Function at 0x1007390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x10073cb
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x10073a8
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10073e7
dec esi
je 0x10073e0
dec esi
jne 0x10073ec
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x8da058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008da1a8
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 0x8da07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8da06a
add dl, dl
jne 0x8da089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8da0dc
xor eax, eax
add dl, dl
jne 0x8da096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8da17d
add dl, dl
jne 0x8da0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8da0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8da0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8da0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8da0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8da075
mov eax, 1
add dl, dl
jne 0x8da0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8da0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8da0e1
sub eax, ebx
mov ebx, 1
jne 0x8da128
mov ecx, 1
add dl, dl
jne 0x8da10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8da119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8da105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8da075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8da13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8da14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8da136
cmp eax, 0x7d00
jae 0x8da16d
cmp eax, 0x500
jb 0x8da168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8da075
cmp eax, 0x7f
ja 0x8da170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8da075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8da19e
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 0x8da075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10