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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4a36a0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46dfb0
cmp word [ebx], dx
jne 0x46dfb0
or byte [eax + edi + 0x28], 4
jmp 0x46dfb5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x46e118
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x46e0f8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46dff6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46e02c
cmp eax, edx
jae 0x46e03a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x46dfd1
jmp 0x46e118
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e0f3
cmp dword [ebp - 0x18], 0
je 0x46e0f3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4a36a0]
test byte [eax + edi + 0x28], 0x48
je 0x46e0c9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46e08d
mov word [esi], cx
jmp 0x46e0c4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4a36a0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4a36a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4a36a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46e118
pop eax
cmp word [ebp - 4], ax
jne 0x46e0d9
cmp esi, ebx
jne 0x46e0d9
mov word [esi], ax
jmp 0x46e115
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046f827
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46e118
push 0xd
pop eax
jmp 0x46e0d4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4a36a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46e112
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46e118
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x471d8f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00471c63
Function at 0x4725cc
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x472617
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00472968
test al, al
jne 0x472611
sub edx, 2
cmp edx, edi
jne 0x4725f7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x472639
lea eax, [edi + 2]
cmp edx, eax
je 0x472639
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00472293
add esp, 0x10
jmp 0x472733
push esi
lea ecx, [ebp - 0x255]
call fcn.00472968
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47267c
push dword [ebp - 0x25c]
jmp 0x472629
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4726b9
cmp word [ebp - 0x226], 0
je 0x4726da
cmp word [ebp - 0x226], ax
jne 0x4726b9
cmp word [ebp - 0x224], 0
je 0x4726da
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00472293
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x472726
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x472693
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x47270e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x472733
push 0x471db2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004802a0
add esp, 0x10
jmp 0x472703
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429c32
leave
ret
Function at 0x473b17
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 0x473bb4
push ebx
push esi
call fcn.00473ad3
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.0046fd19
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x473b61
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x473bb3
push edi
push eax
call fcn.0046a156
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x473b81
call fcn.0046781e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x473bb2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046fd19
add esp, 0x20
test eax, eax
jne 0x473ba0
push edi
call fcn.0046781e
jmp 0x473ba8
push ebx
call fcn.0046781e
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 0x473bb7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x473bc8
pop esi
ret
push ebx
push edi
push esi
call fcn.00473ad3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046a156
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x473bf0
push ebx
push esi
push edi
call fcn.0042ae40
add esp, 0xc
push 0
call fcn.0046781e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4744d5
Capabilities:
Set environment variable

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

Function at 0x477370
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00469174
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4773df
cmp esi, dword [ebp - 4]
je 0x4773da
cmp dword [ebp + 0xc], 0
je 0x4773da
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4773b7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00476ec2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4773e1
xor eax, eax
inc eax
jmp 0x4773e1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x477446
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00469174
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00469174
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4774bd
cmp word [ecx], dx
je 0x4774bd
mov eax, dword [0x49a214]
push edi
dec eax
push eax
push 0x49a100
call fcn.004773e5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x477530
cmp word [eax], dx
je 0x477530
mov eax, dword [edi]
test eax, eax
je 0x4774e1
cmp word [eax], dx
je 0x4774e1
lea eax, [ebp - 0x10]
push eax
call fcn.00476dc8
jmp 0x4774ea
lea eax, [ebp - 0x10]
push eax
call fcn.00476e63
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x47755a
mov eax, dword [0x49a0fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x499df0
call fcn.004773e5
add esp, 0xc
test al, al
je 0x47755a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x477525
cmp word [eax], di
je 0x477525
lea eax, [ebp - 0x10]
push eax
call fcn.00476dc8
pop ecx
jmp 0x47755c
lea eax, [ebp - 0x10]
push eax
call fcn.00476e63
jmp 0x477522
mov eax, dword [edi]
test eax, eax
je 0x477547
cmp word [eax], dx
je 0x477547
lea eax, [ebp - 0x10]
push eax
call fcn.00476d5f
pop ecx
jmp 0x47755a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x477625
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0047726a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x477625
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x477625
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x477625
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4775b2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00478333
test ebx, ebx
je 0x477620
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00478333
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x477625
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x477625
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00481306
add esp, 0x10
xor eax, eax
inc eax
jmp 0x477627
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429c32
leave
ret
Function at 0x477fa5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b43c
push 0x49b434
push str.FlsAlloc
push 0x1f
call fcn.00477c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x477fd9
push dword [ebp + 8]
mov ecx, esi
call dword [0x489314]
call esi
jmp 0x477fdf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x478023
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b44c
push 0x49b444
push str.FlsGetValue
push 0x21
call fcn.00477c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47805a
push dword [ebp + 8]
mov ecx, esi
call dword [0x489314]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x478062
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b454
push 0x49b44c
push str.FlsSetValue
push 0x22
call fcn.00477c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47809c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x489314]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x481cb9
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00481add
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x481e28
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x481e28
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x481ddd
jg 0x481d15
test eax, eax
je 0x481dd3
push 1
push 0x1000
call fcn.0046c302
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x481d38
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x481dca
push 0x8000
push ebx
call fcn.00464f06
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x481d61
jg 0x481d5c
cmp ecx, 0x1000
jb 0x481d61
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046f149
add esp, 0x10
cmp eax, 0xffffffff
je 0x481da6
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 0x481d5c
jl 0x481d8d
test ecx, ecx
jne 0x481d4e
push dword [ebp - 0xc]
push ebx
call fcn.00464f06
push esi
call fcn.0046781e
add esp, 0xc
xor ebx, ebx
jmp 0x481e36
cmp byte [edi + 0x24], 0
je 0x481dbd
cmp dword [edi + 0x20], 5
jne 0x481dbd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x481dc8
mov ebx, dword [edi + 0x18]
jmp 0x481dca
xor ebx, ebx
push esi
call fcn.0046781e
pop ecx
jmp 0x481e36
test ecx, ecx
jg 0x481d9f
jl 0x481ddd
test eax, eax
jae 0x481d9f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046f827
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x481dfd
cmp byte [edi + 0x1c], 0
je 0x481d9f
jmp 0x481e2e
push ebx
call fcn.00474907
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x481d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x481e36
cmp byte [edi + 0x1c], 0
je 0x481e33
mov ebx, dword [edi + 0x18]
jmp 0x481e36
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046f827
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x484ff0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48501d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48501d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40328c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x595008], 0x8088405
inc edx
mov dword [ebx + 0x595008], edx
fld qword [ebx + 0x59506c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x4087ec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e34
xor eax, eax
push ebp
push 0x4088a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00405efc
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x408834
test esi, esi
jle 0x408834
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.00404a1c
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x4084ec]
call fcn.004060b8
add esp, 4
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
mov dword [eax + edi*8], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + edi*8 + 0xc], edx
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebp - 4]
call fcn.004049d8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088aa
lea eax, [ebp - 4]
call fcn.00404984
ret

Function at 0x40a140
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40a1dc
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00404fd0
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00404e9c
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x40a168
cmp byte [esp], 0
je 0x40a1ad
mov eax, edi
call fcn.00404e9c
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40a1e8
mov eax, edi
call fcn.00404e9c
push eax
mov eax, edi
call fcn.00404e9c
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00402a50
mov edx, ebx
mov eax, edi
call fcn.00404fd0
jmp 0x40a1e8
mov eax, edi
mov edx, 0x40a1f8
call fcn.004049d8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b144
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e34
xor eax, eax
push ebp
push 0x40b1a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004049d8
mov eax, ebx
call fcn.00404e94
mov eax, dword [ebx]
call fcn.00404c44
test eax, eax
jle 0x40b190
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40b185
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b1ad
lea eax, [ebp - 4]
call fcn.00404984
ret
Function at 0x40c3fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x40c444
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call fcn.00407614
test eax, eax
jne 0x40c43a
cmp word [edi], 0x5a4d
jne 0x40c43a
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40c43a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c450
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x413b28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x413b59
cmp dword [ebx + 0x54], 0
jne 0x413b59
cmp dword [ebx + 0x5c], 0
jne 0x413b59
mov esi, dword [ebp - 8]
jmp 0x413c04
cmp esi, 0xffffffff
jne 0x413b64
dec esi
jmp 0x413c04
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x413c04
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.00402a50
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x413bc6
mov cx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x413bcb
mov word [edx], 0
dec eax
test eax, eax
jne 0x413ba8
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x413bf7
mov cx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x413bfc
mov word [edx], 0
dec eax
test eax, eax
jne 0x413bd9
add esi, dword [ebp - 8]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
je 0x413c6e
push ebp
mov edx, dword [ebx + 0x54]
add edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x20]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00413ab8
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x413c54
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x413c6e
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jne 0x413b38
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4175a4
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x4175cb
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
and edx, 0xff
mov edx, dword [edx*4 + 0x5967d8]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x4175af
mov eax, esi
pop esi
ret

Function at 0x417ec4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x417ee3
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00417b04
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x1048], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x1044], ecx
inc edi
cmp edi, 9
jne 0x417f45
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1000]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00417b04
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x417f94
add ebx, 0x400
dec edi
jne 0x417f92
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret