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

Disassembly:
cmp ecx, dword [0x10048650]
jne 0x100204c4
repz ret
jmp fcn.10026448

Function at 0x1002b185
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1002b1ac
call fcn.10022ea3
mov dword [eax], esi
call fcn.10022e90
push 0x16
pop esi
mov dword [eax], esi
call fcn.10026ac4
mov eax, esi
jmp 0x1002b201
test dword [ebp + 0xc], 0xfffffff9
jne 0x1002b192
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002b1d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10022eb6
pop ecx
call fcn.10022e90
mov eax, dword [eax]
jmp 0x1002b201
test al, 0x10
jne 0x1002b1ff
test al, 1
je 0x1002b1ff
test byte [ebp + 0xc], 2
je 0x1002b1ff
call fcn.10022ea3
mov dword [eax], 5
call fcn.10022e90
mov dword [eax], 0xd
jmp 0x1002b1d0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100337bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10048650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1002867d
and dword [ebp - 0x14], 0
cmp dword [0x10193090], 0
mov dword [ebp - 0x18], eax
jne 0x1003386f
push 0x10040e6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10033917
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10033917
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10193090], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10193094], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10193098], eax
call edi
push eax
call esi
mov dword [0x101930a0], eax
test eax, eax
je 0x1003386f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1019309c], eax
mov eax, dword [0x1019309c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100338c8
cmp dword [0x101930a0], ecx
je 0x100338c8
push eax
call esi
push dword [0x101930a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100338c8
test ebx, ebx
je 0x100338c8
call edi
test eax, eax
je 0x100338bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100338bf
test byte [ebp - 8], 1
jne 0x100338c8
or dword [ebp + 0x10], 0x200000
jmp 0x100338fb
mov eax, dword [0x10193094]
cmp eax, dword [ebp - 0x18]
je 0x100338fb
push eax
call esi
test eax, eax
je 0x100338fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100338fb
mov eax, dword [0x10193098]
cmp eax, dword [ebp - 0x18]
je 0x100338fb
push eax
call esi
test eax, eax
je 0x100338fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10193090]
call esi
test eax, eax
je 0x10033917
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10033919
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100204ba
leave
ret
Function at 0x10039240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100393f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003930d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10048194]
jb 0x1003928a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10048198]
ja 0x1003928a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003925a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10023e30
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100392b0
jmp 0x1003930d
cmp dword [ebp - 0x14], 0x10000
jne 0x100392f3
cmp dword [ebp - 0x18], 0x10000
jb 0x100392f3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100392e6
mov eax, dword [ebp - 8]
jmp 0x1003930f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10039308
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100393f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003925a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10039320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10039420
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100393e5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10048194]
jb 0x10039365
mov eax, dword [ebp - 4]
cmp eax, dword [0x10048198]
ja 0x10039365
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10039335
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10023e30
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003938b
jmp 0x100393e5
cmp dword [ebp - 0x14], 0x10000
jne 0x100393ce
cmp dword [ebp - 0x18], 0x10000
jb 0x100393ce
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100393c1
mov eax, dword [ebp - 8]
jmp 0x100393e7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100393e0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10039420
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10039335
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003a7f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101923f4], eax
je 0x1003a80e
mov eax, 0x10dd
jmp 0x1003a8ef
mov eax, dword [0x10192404]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003a88c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003a86a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003a86a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100398a0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100204af
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003a816
mov dword [0x10192404], 0
call fcn.1003a180
mov ecx, dword [0x10192400]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003a8d9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100204af
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003a8a4
mov dword [0x10192400], 0
mov dword [0x101923f4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003add0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x101923f8], 0
je 0x1003ade9
mov eax, dword [0x101923f8]
jmp 0x1003ae89
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1003adfb
xor eax, eax
jmp 0x1003ae89
push 8
call fcn.10022b51
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003ae51
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003ae3a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100204af
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x101923f8], eax
mov dword [0x101923fc], 0
mov eax, dword [ebp - 8]
jmp 0x1003ae89
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003ae6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1003ae1b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10192400]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10192400], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4050f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40eb68
cmp edx, dword [eax]
je 0x405117
add eax, 8
inc ecx
cmp eax, 0x40ebf8
jl 0x405108
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40eb68]
jne 0x405245
mov eax, dword [0x41dda0]
cmp eax, 1
je 0x40521f
test eax, eax
jne 0x405148
cmp dword [0x40eab8], 1
je 0x40521f
cmp edx, 0xfc
je 0x405245
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40517f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004059b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405aa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4051c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405aa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4073a0
push edi
call fcn.00405bb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004059b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004059c0
lea eax, [ebp - 0xa0]
push 0x407380
push eax
call fcn.004059c0
push dword [esi + 0x40eb6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004059c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405b1b
add esp, 0x2c
pop edi
jmp 0x405245
lea eax, [ebp + 8]
lea esi, [esi + 0x40eb6c]
push 0
push eax
push dword [esi]
call fcn.00405aa0
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4247d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042447a

Function at 0x4247e3
Capabilities:
Read file on windows

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

Function at 0x424bdd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040f0b0
mov eax, dword [0x4b80c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004233a3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x424c1f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x424d7b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00430920
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4b9f08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00425dad
mov ecx, dword [esi*4 + 0x4b9f08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x424d74
cmp eax, dword [edi + ecx + 0x24]
jne 0x424d74
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424d74
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425dad
add esp, 0x14
test edx, edx
jl 0x424d74
jg 0x424cea
test eax, eax
jb 0x424d74
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x424d74
jl 0x424d04
cmp dword [ebp - 0x1008], eax
ja 0x424d74
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x424d22
test ebx, ebx
je 0x424d5b
cmp ecx, edi
jae 0x424d5b
mov al, byte [ecx]
cmp al, 0xd
jne 0x424d3c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x424d48
cmp byte [ecx + 1], 0xa
jne 0x424d48
inc ecx
jmp 0x424d48
movzx eax, al
movsx eax, byte [eax + 0x4b8380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x424d22
cmp edx, ebx
jne 0x424d22
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x424d79
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e599
leave
ret
Function at 0x42524b
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 + 0x4b9f08]
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 0x42528b
cmp byte [ebx], 0xa
jne 0x42528b
or byte [eax + edi + 0x28], 4
jmp 0x425290
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42538e
mov al, byte [edx]
cmp al, 0x1a
je 0x425370
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4252bf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4252e4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4252ee
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 0x4252a1
jmp 0x42538e
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 0x42536b
cmp dword [ebp - 0xc], 0
je 0x42536b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4b9f08]
test byte [eax + edi + 0x28], 0x48
je 0x425345
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425330
mov byte [esi], dl
jmp 0x425341
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b9f08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42538e
cmp byte [ebp - 1], 0xa
jne 0x425354
cmp esi, ebx
jne 0x425354
mov byte [esi], 0xa
jmp 0x42538d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00425dcb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42538e
mov byte [esi], 0xd
jmp 0x42538d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4b9f08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42538a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42538e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425397
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 + 0x4b9f08]
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 0x4253da
cmp word [esi], dx
jne 0x4253da
or byte [edi + eax + 0x28], 4
jmp 0x4253df
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 0x425532
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 0x425512
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425421
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425457
cmp eax, edx
jae 0x425463
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 0x4253f9
jmp 0x425532
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 0x42550e
cmp dword [ebp - 0x14], 0
je 0x42550e
mov eax, dword [ebx*4 + 0x4b9f08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4254e6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4254af
mov word [esi], cx
jmp 0x4254e2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4b9f08]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4b9f08]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4b9f08]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425532
pop ebx
cmp word [ebp - 4], bx
jne 0x4254f7
cmp esi, dword [ebp + 0xc]
jne 0x4254f7
mov word [esi], bx
jmp 0x42552f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00425dcb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425532
push 0xd
jmp 0x42552b
mov ecx, dword [ebx*4 + 0x4b9f08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425529
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425532
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 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x14cb7662
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x44801400
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push 0xa
push 0x1001
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401925
jmp 0x401b16
mov dword [0x403c74], eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x40193b
jmp 0x401b16
mov dword [0x403c78], eax
push dword [0x403c74]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x401956
jmp 0x401b16
mov dword [0x403c7c], eax
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x40196a
jmp 0x401b16
mov dword [0x403c80], eax
mov ebx, eax
mov dword [ebp - 8], eax
push 0x10
push ebx
push 0x403450
call sub.kernel32.dll_RtlMoveMemory
add ebx, 0x10
mov eax, dword [0x403c78]
sub eax, 0x10
push eax
push ebx
call fcn.00401a90
mov eax, dword [ebx]
add ebx, 4
mov dword [0x410684], eax
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x401a09
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410690], eax
push dword [ebp - 4]
push ebx
push dword [0x410690]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410694], eax
push dword [ebp - 4]
push ebx
push dword [0x410694]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [0x410698], eax
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [0x41069c], eax
cmp dword [0x41069c], 2
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a8], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a0], eax
cmp dword [0x4106a0], 1
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a4], eax
mov eax, dword [ebx]
mov dword [0x4106b0], eax
add ebx, 4
mov ecx, ebx
sub ecx, dword [ebp - 8]
mov eax, dword [0x403c78]
sub eax, ecx
mov dword [0x41068c], eax
push dword [0x41068c]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [0x410688], eax
push dword [0x41068c]
push ebx
push dword [0x410688]
call sub.kernel32.dll_RtlMoveMemory
push dword [0x403c7c]
call sub.kernel32.dll_FreeResource
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10aca50
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10aca5a
pushal
call 0x10aca60
pop ebp
sub ebp, 0x10
sub ebp, 0xcaca50
jmp 0x10aca76
mov eax, 0xcaca50
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b5
mov edx, 0xfc990a5
xor byte [eax], dl
inc eax
dec ecx
jne 0x10aca8d
jmp 0x10acaa0
push 0xa5992c2e
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and al, 0x64
pop ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmpsb byte [esi], byte es:[edi]
push 0xa5a5ad1d
movsd dword es:[edi], dword [esi]
pop ds
lea esp, [ebp + 0x4752a5a5]
cmpsb byte [esi], byte es:[edi]
insd dword es:[edi], dx
and al, 0xa9
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmpsb byte [esi], byte es:[edi]
pushal
cmc
cmc
int 0xc5
ret