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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408240
mov eax, dword [0x465040]
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.00438344
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43d744
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43d8a0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00453bf0
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 + 0x508b50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043d162
mov ecx, dword [esi*4 + 0x508b50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x43d899
cmp eax, dword [ecx + edi + 0x24]
jne 0x43d899
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43d899
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043d162
add esp, 0x14
test edx, edx
jl 0x43d899
jg 0x43d80f
test eax, eax
jb 0x43d899
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43d899
jl 0x43d829
cmp dword [ebp - 0x1008], eax
ja 0x43d899
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43d847
test ebx, ebx
je 0x43d880
cmp ecx, edi
jae 0x43d880
mov al, byte [ecx]
cmp al, 0xd
jne 0x43d861
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43d86d
cmp byte [ecx + 1], 0xa
jne 0x43d86d
inc ecx
jmp 0x43d86d
movzx eax, al
movsx eax, byte [eax + 0x4652a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43d847
cmp edx, ebx
jne 0x43d847
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43d89e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408228
leave
ret
Function at 0x43f92e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043f802
Function at 0x44023a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x465040]
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 0x440285
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004406da
test al, al
jne 0x44027f
sub edx, 2
cmp edx, edi
jne 0x440265
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4402a7
lea eax, [edi + 2]
cmp edx, eax
je 0x4402a7
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043ff01
add esp, 0x10
jmp 0x4403a1
push esi
lea ecx, [ebp - 0x255]
call fcn.004406da
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 0x4402ea
push dword [ebp - 0x25c]
jmp 0x440297
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 0x440327
cmp word [ebp - 0x226], 0
je 0x440348
cmp word [ebp - 0x226], ax
jne 0x440327
cmp word [ebp - 0x224], 0
je 0x440348
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043ff01
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x440394
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x440301
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44037c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4403a1
push 0x43f951
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0044dc40
add esp, 0x10
jmp 0x440371
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.00408228
leave
ret
Function at 0x441caa
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 0x441d47
push ebx
push esi
call fcn.00441c66
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.00441ba3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x441cf4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x441d46
push edi
push eax
call fcn.00436601
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x441d14
call fcn.004365c7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x441d45
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00441ba3
add esp, 0x20
test eax, eax
jne 0x441d33
push edi
call fcn.004365c7
jmp 0x441d3b
push ebx
call fcn.004365c7
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 0x441d4a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x441d5b
pop esi
ret
push ebx
push edi
push esi
call fcn.00441c66
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00436601
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x441d83
push ebx
push esi
push edi
call fcn.00409700
add esp, 0xc
push 0
call fcn.004365c7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x442672
Capabilities:
Set environment variable

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

Function at 0x445688
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00439343
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 0x4456f7
cmp esi, dword [ebp - 4]
je 0x4456f2
cmp dword [ebp + 0xc], 0
je 0x4456f2
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4456cf
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004451da
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4456f9
xor eax, eax
inc eax
jmp 0x4456f9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44575e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x465040]
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.00439343
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.00439343
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 0x4457d5
cmp word [ecx], dx
je 0x4457d5
mov eax, dword [0x45dde4]
push edi
dec eax
push eax
push 0x45dcd0
call fcn.004456fd
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x445848
cmp word [eax], dx
je 0x445848
mov eax, dword [edi]
test eax, eax
je 0x4457f9
cmp word [eax], dx
je 0x4457f9
lea eax, [ebp - 0x10]
push eax
call fcn.004450e0
jmp 0x445802
lea eax, [ebp - 0x10]
push eax
call fcn.0044517b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x445872
mov eax, dword [0x45dccc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x45d9c0
call fcn.004456fd
add esp, 0xc
test al, al
je 0x445872
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44583d
cmp word [eax], di
je 0x44583d
lea eax, [ebp - 0x10]
push eax
call fcn.004450e0
pop ecx
jmp 0x445874
lea eax, [ebp - 0x10]
push eax
call fcn.0044517b
jmp 0x44583a
mov eax, dword [edi]
test eax, eax
je 0x44585f
cmp word [eax], dx
je 0x44585f
lea eax, [ebp - 0x10]
push eax
call fcn.00445077
pop ecx
jmp 0x445872
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 0x44593d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00445582
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44593d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44593d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44593d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4458ca
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043a6b5
test ebx, ebx
je 0x445938
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043a6b5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44593d
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 0x44593d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044f103
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44593f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408228
leave
ret
Function at 0x450ea9
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.00450ccd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x451018
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x451018
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x450fcd
jg 0x450f05
test eax, eax
je 0x450fc3
push 1
push 0x1000
call fcn.0043f1ce
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x450f28
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x450fba
push 0x8000
push ebx
call fcn.00431e68
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x450f51
jg 0x450f4c
cmp ecx, 0x1000
jb 0x450f51
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043e326
add esp, 0x10
cmp eax, 0xffffffff
je 0x450f96
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 0x450f4c
jl 0x450f7d
test ecx, ecx
jne 0x450f3e
push dword [ebp - 0xc]
push ebx
call fcn.00431e68
push esi
call fcn.004365c7
add esp, 0xc
xor ebx, ebx
jmp 0x451026
cmp byte [edi + 0x24], 0
je 0x450fad
cmp dword [edi + 0x20], 5
jne 0x450fad
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x450fb8
mov ebx, dword [edi + 0x18]
jmp 0x450fba
xor ebx, ebx
push esi
call fcn.004365c7
pop ecx
jmp 0x451026
test ecx, ecx
jg 0x450f8f
jl 0x450fcd
test eax, eax
jae 0x450f8f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043d180
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x450fed
cmp byte [edi + 0x1c], 0
je 0x450f8f
jmp 0x45101e
push ebx
call fcn.00442b80
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x450f8f
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 0x451026
cmp byte [edi + 0x1c], 0
je 0x451023
mov ebx, dword [edi + 0x18]
jmp 0x451026
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043d180
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x453920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45394d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45394d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1d4cc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
mov dword [esp + 8], 4
push eax
push 0xf003f
push 0
push 0x1ed168
push 0x80000001
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1d4d2a
lea eax, [esp + 4]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push str.BreakAtAllocID
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp]
test eax, eax
jne 0x1d4d24
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0xc
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret

Function at 0x1d4e10
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
mov edi, dword [0x2f982c]
mov dword [esp + 0x10], ebx
test edi, edi
je 0x1d4e52
mov ecx, esi
call fcn.001d4d30
push eax
lea ecx, [esp + 0x18]
call fcn.001d33b0
lea eax, [esp + 0x14]
mov ebx, 1
push eax
call edi
add esp, 4
mov byte [esp + 0xf], bl
test al, al
je 0x1d4e57
mov byte [esp + 0xf], 0
test bl, 1
je 0x1d4e65
lea ecx, [esp + 0x14]
call fcn.001d34f0
cmp byte [esp + 0xf], 0
jne 0x1d4efb
mov ecx, esi
call fcn.001d4d30
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 2
call fcn.001dbfd5
add esp, 4
test eax, eax
je 0x1d4efb
push 2
call fcn.001dbfd5
push eax
call fcn.001dd4f5
add esp, 8
test eax, eax
jne 0x1d4efb
push esi
lea ecx, [esp + 0x18]
call fcn.001d3320
push 0
push 0x25
lea ecx, [esp + 0x1c]
call fcn.001d4870
cmp eax, 0xffffffff
je 0x1d4ee0
mov esi, 0x26
push eax
lea ecx, [esp + 0x18]
call fcn.001d35d0
push 0
push 0x25
lea ecx, [esp + 0x1c]
mov word [eax], si
call fcn.001d4870
cmp eax, 0xffffffff
jne 0x1d4ec1
lea ecx, [esp + 0x14]
call fcn.001d4d30
push eax
call fcn.001d5860
add esp, 4
lea ecx, [esp + 0x14]
call fcn.001d34f0
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x1d5b10
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
mov eax, 1
push esi
mov esi, 0x2f9ba0
xchg dword [esi], eax
test eax, eax
je 0x1d5b2d
push esi
call fcn.001d6390
add esp, 4
cmp dword [0x2f9ba4], 0
jne 0x1d5bab
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x20]
lea eax, [edx - 1]
test edx, eax
jne 0x1d5bb9
mov ecx, dword [esp + 8]
lea eax, [ecx - 1]
test ecx, eax
jne 0x1d5bb9
mov dword [0x2f9bac], edx
mov dword [0x2f9ba8], ecx
mov dword [0x2f9bb0], 0x40000
mov dword [0x2f9bb4], 0x200000
mov dword [0x2f9bb8], 7
mov dword [0x2f9d7c], 7
mov dword [0x2f9d80], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, 0x55555550
and eax, 0xfffffff8
or eax, 8
mov dword [0x2f9ba4], eax
xor ecx, ecx
xchg dword [esi], ecx
mov eax, 1
pop esi
add esp, 0x24
ret
call fcn.001ddd37
int3
Function at 0x1d7ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x2c]
mov ebx, dword [edi + 0x74]
nop
mov eax, dword [edi + 0x2c]
mov ebp, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ebp, dword [edi + 0x6c]
add eax, esi
sub ebp, ebx
cmp dword [edi + 0x6c], eax
jb 0x1d7f87
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.001e8c70
mov ebx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea edx, [eax + ebx*2]
nop
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [esp + 0x14], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [esp + 0x14]
mov word [edx], ax
sub ebx, 1
jne 0x1d7f30
mov eax, dword [edi + 0x40]
mov ebx, esi
lea edx, [eax + esi*2]
nop dword [eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [esp + 0x14], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [esp + 0x14]
mov word [edx], ax
sub ebx, 1
jne 0x1d7f60
add ebp, esi
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x1d7fdf
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
push ebp
push eax
push ecx
call fcn.001d8280
add dword [edi + 0x74], eax
add esp, 0xc
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x1d7fcb
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x1d7fdf
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1d7ef0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406260
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d07c]
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.00403dae
and dword [ebp - 0x14], 0
cmp dword [0x40e920], 0
mov dword [ebp - 0x18], eax
jne 0x406313
push 0x40a7f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4063bb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a7e4
push ebx
call edi
test eax, eax
je 0x4063bb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40a7d4
push ebx
mov dword [0x40e920], eax
call edi
push eax
call esi
push 0x40a7c0
push ebx
mov dword [0x40e924], eax
call edi
push eax
call esi
push 0x40a7a4
push ebx
mov dword [0x40e928], eax
call edi
push eax
call esi
mov dword [0x40e930], eax
test eax, eax
je 0x406313
push 0x40a78c
push ebx
call edi
push eax
call esi
mov dword [0x40e92c], eax
mov eax, dword [0x40e92c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40636c
cmp dword [0x40e930], ecx
je 0x40636c
push eax
call esi
push dword [0x40e930]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40636c
test ebx, ebx
je 0x40636c
call edi
test eax, eax
je 0x406363
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406363
test byte [ebp - 8], 1
jne 0x40636c
or dword [ebp + 0x10], 0x200000
jmp 0x40639f
mov eax, dword [0x40e924]
cmp eax, dword [ebp - 0x18]
je 0x40639f
push eax
call esi
test eax, eax
je 0x40639f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40639f
mov eax, dword [0x40e928]
cmp eax, dword [ebp - 0x18]
je 0x40639f
push eax
call esi
test eax, eax
je 0x40639f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e920]
call esi
test eax, eax
je 0x4063bb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4063bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402701
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x60a07457
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x1b5e7b34
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x402fb7
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x402f36
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00402b00
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x402f04
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x403070
call fcn.00402f48
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x40300f
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00402b00
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x402fc8
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x403070
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00402b00
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x40306b
jmp 0x403070
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret