joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf50
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov edi, 0x6955f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x20], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebp, dword [esp + 0x128]
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x12c]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40bfd3
lea eax, [esp + 0x1e]
mov dword [esp + 0x12c], eax
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x34]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c004
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x130]
test ecx, ecx
je 0x40c01d
lea edx, [eax - 2]
mov dword [ecx], edx
push ebp
lea ebx, [eax - 2]
push 0x1b3
push 0x4255c8
push ebx
call fcn.00415350
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40c04e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x12c]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
push 2
push ecx
push esi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x12c]
mov esi, dword [esp + 0x128]
xor eax, eax
push esi
mov ax, word [ebp]
push 0x1b8
shl eax, 2
push 0x4255c8
push eax
call fcn.00415350
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40c0cf
push esi
push 0x1b9
push 0x4255c8
push edi
call fcn.00415390
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
xor esi, esi
mov dword [esp + 0x10], 0
cmp word [ebp], si
jbe 0x40c125
mov ebx, eax
lea ecx, [esi + edi]
xor eax, eax
add esi, 2
mov ax, word [ecx]
mov dword [ebx], ecx
test eax, eax
jbe 0x40c100
xor ecx, ecx
dec eax
mov cx, word [edi + esi + 4]
lea esi, [esi + ecx*2 + 6]
jne 0x40c0f2
mov edx, dword [ebx]
push edx
call fcn.00412340
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [ebp]
add esp, 4
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x40c0e1
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x40c180
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov edi, 0x684b10
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x20], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebp, dword [esp + 0x128]
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x12c]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40c203
lea eax, [esp + 0x1e]
mov dword [esp + 0x12c], eax
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x34]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c234
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x130]
test ecx, ecx
je 0x40c24d
lea edx, [eax - 2]
mov dword [ecx], edx
push ebp
lea ebx, [eax - 2]
push 0x286
push 0x4255c8
push ebx
call fcn.00415350
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40c27e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x12c]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
push 2
push ecx
push esi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x12c]
mov esi, dword [esp + 0x128]
xor eax, eax
push esi
mov ax, word [ebp]
push 0x28b
shl eax, 2
push 0x4255c8
push eax
call fcn.00415350
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40c2ff
push esi
push 0x28c
push 0x4255c8
push edi
call fcn.00415390
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
xor esi, esi
mov dword [esp + 0x10], 0
cmp word [ebp], si
jbe 0x40c36f
mov ebx, eax
lea ecx, [esi + edi]
xor eax, eax
add esi, 2
mov ax, word [ecx]
mov dword [ebx], ecx
test eax, eax
jbe 0x40c34a
mov ecx, eax
mov ax, word [edi + esi + 4]
test ah, 0x80
je 0x40c33e
and eax, 0x7fff
add eax, 2
lea edx, [eax + esi]
lea esi, [edx + eax*2]
jmp 0x40c347
and eax, 0xffff
lea esi, [esi + eax*2 + 6]
dec ecx
jne 0x40c324
mov eax, dword [ebx]
push eax
call 0x4123ab
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [ebp]
add esp, 4
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x40c311
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x4254c5
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.0041e50f
and dword [ebp - 4], 0
cmp dword [0x44f1f0], 0
mov ebx, eax
jne 0x425576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425627
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425627
push eax
call fcn.0041e49d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f1f0], eax
call esi
push eax
call fcn.0041e49d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f1f4], eax
call esi
push eax
call fcn.0041e49d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f1f8], eax
call esi
push eax
call fcn.0041e49d
pop ecx
mov dword [0x44f200], eax
test eax, eax
je 0x425576
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e49d
pop ecx
mov dword [0x44f1fc], eax
mov eax, dword [0x44f1fc]
cmp eax, ebx
je 0x4255ce
cmp dword [0x44f200], ebx
je 0x4255ce
push eax
call fcn.0041e518
push dword [0x44f200]
mov esi, eax
call fcn.0041e518
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4255ce
test edi, edi
je 0x4255ce
call esi
test eax, eax
je 0x4255c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4255c5
test byte [ebp - 0xc], 1
jne 0x4255ce
or dword [ebp + 0x10], 0x200000
jmp 0x425607
mov eax, dword [0x44f1f4]
cmp eax, ebx
je 0x425607
push eax
call fcn.0041e518
pop ecx
test eax, eax
je 0x425607
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425607
mov eax, dword [0x44f1f8]
cmp eax, ebx
je 0x425607
push eax
call fcn.0041e518
pop ecx
test eax, eax
je 0x425607
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f1f0]
call fcn.0041e518
pop ecx
test eax, eax
je 0x425627
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425629
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x20bc3630
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
mov ecx, 0x4fd12f85
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x6112a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403077
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x40300c
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403106
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403023
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x40300c
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403106
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x611369
push eax
jmp 0x611377
cmp eax, 0x7f
jne 0x611375
push 0x100
jmp 0x611377
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor edx, edx
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
inc edx
inc edx
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
push edx
add dword [esp], 0x4530ec21
pop edx
xor dword [esi], edx
add esi, 4
loop 0x611385
pop eax
popal
leave
ret 0x10
Function at 0x61144c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x90]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x61146b
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x61145f
add esi, 0x10000
push esi
mov eax, 0x40300c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.006113b4
mov dword [0x403106], eax
push 0x403023
push 0x3e8
push 0
call fcn.00611c6e
or eax, eax
jne 0x6114af
leave
ret 8
push eax
push eax
push 0
call fcn.00611c8c
or eax, eax
jne 0x6114c0
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call fcn.00611c80
or eax, eax
jne 0x6114d4
leave
ret 8
push eax
call fcn.00611c86
or eax, eax
jne 0x6114e2
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call fcn.00611c9e
or eax, eax
jne 0x6114fe
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.006112a8
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call fcn.00611ca4
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call fcn.00611c9e
or eax, eax
je 0x611551
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4015cb
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401c67
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x401037
push dword [ebp + 0xc]
call fcn.00611274
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x401836
nop
nop
add eax, dword [ebp + 8]
nop
call eax
nop
leave
ret 8
Function at 0x430f40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x430f5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430f50
mov eax, 1
add ebx, ebx
jne 0x430f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430f68
jne 0x430f84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430f68
xor ecx, ecx
sub eax, 3
jb 0x430f98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43100a
mov ebp, eax
add ebx, ebx
jne 0x430fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x430fd4
inc ecx
add ebx, ebx
jne 0x430fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x430fb5
jne 0x430fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430fb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x430ff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x430fe5
jmp 0x430f56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x430ff4
add edi, ecx
jmp 0x430f56
pop esi
mov edi, esi
mov ecx, 0x35f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431012
cmp byte [edi], 6
jne 0x431012
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 0x431017
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x43108f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31fcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32008]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431044
mov ecx, edi
jns 0x431073
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 + 0x32010]
or eax, eax
je 0x431089
mov dword [ebx], eax
add ebx, 4
jmp 0x431061
call dword [esi + 0x3200c]
mov ebp, dword [esi + 0x32014]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4310c3
sub esp, 0xffffff80
jmp 0x403670

Function at 0x4018a9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018e8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018e8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018e8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018e8
cmp dword [ecx + 0x74], 0xe
jbe 0x4018e8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001094
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
jmp 0x10001160
lea eax, [ebp - 0x104]
push eax
call fcn.1000130c
push 0x100010a2
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x1000122d
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x100010c1
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x10001292
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x100010db
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x10001292
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x10001212
mov word [ebx], 0x5c
push 0x100010ac
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x10001292
mov dword [0x1000300c], eax
push 0x100010b6
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x10001287
push eax
push 0x3ea
call eax
pop edx
test eax, eax
je 0x10001287
mov dword [0x10003008], eax
push 0x3eb
mov ebx, section..data
call edx
test eax, eax
je 0x10001287
mov dword [section..data], edx
call 0x1000126e
add dword [esp], 0x3d92
call eax
mov dword [0x10003004], eax
sub esp, 4
pop dword [0x10003010]
leave
ret
push dword [0x1000300c]
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x1000300c], 0
mov dword [section..data], 0xffffffff
mov dword [0x10003010], 0
mov dword [0x10003004], 0
mov dword [0x10003008], 0
push 0x10
push 0x1000115a
push 0x100010e0
push 0
call sub.USER32.dll_MessageBoxA
push 0xffffffffffffffff
call sub.KERNEL32.dll_ExitProcess
leave
ret
Function at 0x403210
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x4033c6
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4033bf
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebx, esi
sub ebx, eax
jmp 0x4032a1
add ebp, dword [esp + 0x10]
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp + 4]
mov ebx, 0x15b0
je 0x4033bf
xor eax, eax
cmp ebx, 8
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
jb 0x40331c
mov eax, ebx
and eax, 0x1ff8
mov dword [esp], eax
mov edx, 7
nop
movzx eax, byte [ebp]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + 3]
add esi, eax
add ecx, esi
movzx edi, byte [ebp + 4]
add edi, esi
mov eax, ecx
and eax, edi
xor ecx, edi
movzx esi, byte [ebp + 5]
add esi, edi
movzx ebx, byte [ebp + 6]
add ebx, esi
add esi, ecx
lea ecx, [esi + eax*2]
movzx edi, byte [ebp + 7]
add edi, ebx
add ecx, ebx
mov ebx, dword [esp + 4]
add ecx, edi
add ebp, 8
add edx, 8
cmp edx, ebx
jb 0x4032c0
mov esi, dword [esp + 8]
mov eax, dword [esp]
mov edx, ebx
sub edx, eax
jbe 0x403268
mov dword [esp + 0x10], edx
mov dword [esp], eax
not eax
add eax, ebx
mov edx, ebx
and edx, 3
je 0x403371
mov dword [esp + 0xc], eax
neg edx
xor eax, eax
mov ebx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [ebx]
inc ebx
add edi, esi
add ecx, edi
dec eax
cmp edx, eax
jne 0x403350
mov edx, dword [esp]
sub edx, eax
mov eax, dword [esp + 0xc]
cmp eax, 3
jb 0x403260
jmp 0x40337f
mov ebx, ebp
mov edx, dword [esp]
cmp eax, 3
jb 0x403260
mov eax, dword [esp + 4]
sub eax, edx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
add edx, 4
cmp eax, edx
jne 0x403390
jmp 0x403260
shl ecx, 0x10
or ecx, edi
jmp 0x4033cb
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4033e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
not ebx
cmp edx, 4
jb 0x403452
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ebx
xor bl, byte [ecx]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x34d8928]
mov ebx, eax
xor al, byte [ecx + 1]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x34d8928]
mov eax, ebx
xor bl, byte [ecx + 2]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x34d8928]
mov ebx, eax
xor al, byte [ecx + 3]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x34d8928]
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x403400
test edx, edx
je 0x403464
test dl, 1
jne 0x403468
mov esi, edx
cmp edx, 1
jne 0x403484
jmp 0x4034bc
mov eax, ebx
jmp 0x4034bc
mov eax, ebx
xor bl, byte [ecx]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x34d8928]
inc ecx
lea esi, [edx - 1]
mov ebx, eax
cmp edx, 1
je 0x4034bc
xor edx, edx
mov eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
shr ebx, 8
xor al, byte [ecx + edx]
movzx eax, al
xor ebx, dword [eax*4 + 0x34d8928]
mov eax, ebx
shr eax, 8
xor bl, byte [ecx + edx + 1]
movzx edi, bl
xor eax, dword [edi*4 + 0x34d8928]
add edx, 2
cmp esi, edx
jne 0x403490
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x4094b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov dword [esp], ecx
mov edi, dword [esp + 0x220]
movzx ecx, word [edi]
test cx, cx
je 0x4095ea
lea eax, [edi + 2]
xor ebx, ebx
jmp 0x4094ed
add ebx, esi
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x409511
movzx ebp, cx
xor ecx, ecx
cmp ebp, 0x800
setb dl
mov esi, 1
cmp ebp, 0x80
jb 0x4094e0
mov cl, dl
xor ecx, 3
mov esi, ecx
jmp 0x4094e0
lea esi, [ebx + 1]
push esi
call fcn.00431360
add esp, 4
mov ebp, eax
test ebx, ebx
jle 0x4095f8
add ebx, ebp
add esi, ebp
mov eax, ebp
mov dword [esp + 8], esi
jmp 0x409558
mov byte [eax], dl
mov esi, 1
add edi, 2
add eax, esi
cmp eax, ebx
mov esi, dword [esp + 8]
jae 0x4095fa
movzx edx, word [edi]
test dx, dx
je 0x4095fa
cmp dx, 0x7f
jbe 0x409540
mov ecx, eax
not ecx
add ecx, esi
movzx esi, dx
cmp esi, 0x7ff
ja 0x4095b0
xor esi, esi
cmp ecx, 2
jb 0x409547
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [eax], cl
mov ecx, edx
not ecx
or ecx, 0x3f
add ecx, edx
add cl, 0x81
mov byte [eax + 1], cl
mov esi, 2
jmp 0x409547
mov dword [esp + 4], esi
xor esi, esi
cmp ecx, 3
jb 0x409547
mov esi, dword [esp + 4]
mov ecx, esi
shr ecx, 0xc
or cl, 0xe0
mov byte [eax], cl
mov ecx, esi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 2], dl
mov esi, 3
jmp 0x409547
push 1
call fcn.00431360
add esp, 4
mov ebp, eax
jmp 0x4095fa
mov eax, ebp
mov edi, dword [esp + 0x228]
mov edx, dword [esp + 0x224]
mov byte [eax], 0
xor ecx, ecx
jmp 0x409617
mov eax, ebx
mov byte [esp + ecx + 0xc], al
inc ecx
movzx ebx, byte [ebp + ecx]
mov al, 0x2f
cmp ebx, 0x5c
je 0x409612
test ebx, ebx
jne 0x409610
mov byte [esp + ecx + 0xc], 0
lea eax, [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0xc]
push dword [ecx + 8]
add ecx, 0x10
push 0
push 0
push edi
push edx
push eax
push ecx
call fcn.00405780
add esp, 0x28
test eax, eax
setne al
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc