joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405722
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ac48
push esi
call fcn.00405ba4
push esi
call fcn.004056cd
mov edi, eax
test edi, edi
jne 0x405743
xor eax, eax
jmp 0x405795
push edi
call fcn.00405e0f
test byte [0x42e3d8], 0x80
je 0x40575c
mov al, byte [edi]
test al, al
je 0x40573f
cmp al, 0x5c
je 0x40573f
sub edi, esi
jmp 0x405774
call fcn.00405ea8
test eax, eax
je 0x40576e
test byte [eax], 0x10
je 0x40573f
push esi
call fcn.0040567b
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405760
call fcn.00405634
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405810
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40582f
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405835
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409384]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058a9
test edi, edi
jne 0x40586f
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058a3
Function at 0x405f41
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdd4], 0
push esi
jne 0x405f78
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f52
mov dword [ecx*4 + 0x42bdd0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f4d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fa9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdd0]
xor eax, esi
inc ecx
dec edx
jne 0x405f8b
pop edi
not eax
pop esi
ret 0xc

Function at 0x10001ac0
Capabilities:
Encode data using xor

Disassembly:
pop ebp
loop 0x10001a85
invalid
into
loop 0x10001a47
push 0x66c75059
loope 0x10001a96
into
sub bl, byte [ebp + 0x5b416ba5]
pop ebx
fnstcw word [edx]
fldl2e
jmp 0x10001aee
mov ah, 0x45
iretd
clc
mov eax, 0x249ed885
add byte [edx - 9], bh
test eax, ebx
sahf
and al, 0
jp sym.Firefox.dll_SetKeyOptions
movsb byte es:[edi], byte [esi]
xor bl, byte [ecx]
popal
loopne 0x10001ac2
xchg esi, eax
adc eax, 0x91b84fa0
stc
and esp, ebp
jns 0x10001a74
add al, 0x5b
loope 0x10001aae
cmpsd dword [esi], dword es:[edi]
pop ebx
mov byte [esi + edx + 0x29], ch
add al, 0x65
movsb byte es:[edi], byte [esi]
movsb byte es:[edi], byte gs:[esi]
salc
mov ebx, 0xb1bfceb3
jecxz 0x10001ae6
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402c00
pop dword [ebp - 0x44]
mov eax, 0x402c00
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x39f74a22
sub dword [ebp - 0x54], 0xeba504d7
mov dword [ebp - 0x50], 0x732e4454
sub dword [ebp - 0x50], 0x40faf80f
mov dword [ebp - 0x4c], 0x14392e62
sub dword [ebp - 0x4c], 0xc7ecea34
mov dword [ebp - 0x48], 0xc0145ff1
sub dword [ebp - 0x48], 0xc0145ff1
lea eax, [ebp - 0x54]
push eax
mov eax, 0x1c0e0028
sub eax, 0x1bcd8fc4
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x8c3dc69e
sub dword [ebp - 0x54], 0x17cb5d48
mov dword [ebp - 0x50], 0x2f5df438
add dword [ebp - 0x50], 0x120e6d3d
mov dword [ebp - 0x4c], 0x9c8835d0
add dword [ebp - 0x4c], 0xc6e7369c
mov dword [ebp - 0x48], 0x4b3d3ec1
sub dword [ebp - 0x48], 0x4b3d3ec1
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x34335473
add eax, 0xcc0d1c35
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x38f0e
push 0
call eax
mov ecx, 0x5b4c754d
add ecx, 0xa4b3dbb5
xor edi, edi
add edi, eax
mov ebx, 0x9b2636c5
sub ebx, 0x9ae536c5
add ebx, dword [ebp - 0x44]
mov edx, 0xe848c107
sub edx, 0x250330ff
xor dword [ebp - 0x2c], ebx
mov esi, dword [ebx]
xor dword [ebp - 0x40], 0xba5d7779
xor esi, edx
mov dword [edi], esi
add edi, 0xe083bfbd
sub edi, 0xe083bfb9
add ebx, 0x29ec8b4f
add ebx, 0xd61374b5
loop 0x402d1f
add eax, 0x136db
mov ebx, eax
add eax, 0xb83a70fe
sub eax, 0xb83a70f9
mov ecx, 0xd3b15866
add ecx, 0x2c8ea79a
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x40633c
pop dword [ebp - 4]
mov eax, 0x15187b12
add eax, 0xeb27e82a
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x16c6f708
sub dword [ebp - 0x14], 0xc874b1bd
mov dword [ebp - 0x10], 0x56335481
sub dword [ebp - 0x10], 0x2400083c
mov dword [ebp - 0xc], 0x93e2d350
sub dword [ebp - 0xc], 0x47968f22
mov dword [ebp - 8], 0xde17fde3
sub dword [ebp - 8], 0xde17fde3
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xd549867b
add dword [ebp - 0x14], 0x9f28e2db
mov dword [ebp - 0x10], 0xc0a1a708
sub dword [ebp - 0x10], 0x7f354593
mov dword [ebp - 0xc], 0xe82bc16c
add dword [ebp - 0xc], 0x7b43ab00
mov dword [ebp - 8], 0xdae2057f
add dword [ebp - 8], 0x251dfa81
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3cb79
push 0
call eax
mov ecx, 0x15c719d8
sub ecx, 0x15c6b973
mov edi, eax
mov ebx, 0x9f4f5db8
add ebx, 0x60f1a248
add ebx, dword [ebp - 4]
mov esi, 0x99d0a88a
sub esi, 0x2199dab3
mov edx, dword [ebx]
xor edx, esi
mov dword [edi], edx
add edi, 0x54578a14
sub edi, 0x54578a10
add ebx, 0xd3bce568
add ebx, 0x2c431a9c
loop 0x406454
add eax, 0xc2c46ab5
add eax, 0x3d3d09b2
xor ebx, ebx
add ebx, eax
add eax, 0xd336c399
add eax, 0x2cc93c6c
mov ecx, 0x719aa6d4
sub ecx, 0x715aa6d4
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x10010fc3
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1000cd10
mov eax, dword [0x100181f4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1000be6e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x100110f6
push 2
push esi
push dword [ebp + 8]
call fcn.1000be6e
add esp, 0xc
cmp eax, ebx
je 0x100110f6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x10011096
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1000f100
push 0x8000
push dword [ebp + 8]
jmp loc.1003f000
jge 0x100110de
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000be6e
push dword [ebp + 8]
call fcn.1000e88f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x100110de
call fcn.1000bde9
mov dword [eax], 0xd
call fcn.1000bdf2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1000be6e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100110f8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10008164
leave
ret

Function at 0x1001115e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000cd10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100111f9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10019064]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100111f9
cmp eax, 1
je 0x1001121a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100111f9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100111c6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100111f5
xor eax, eax
inc eax
jmp 0x10011239
cmp edi, eax
jae 0x100111fd
xor eax, eax
jmp 0x10011239
cmp eax, esi
jae 0x10011204
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10019064]
jmp 0x1001121d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402abf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401414
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b20
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b1b
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b1b
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b17
sub eax, 1
jne 0x402b1b
mov ecx, esi
call fcn.004029ca
test eax, eax
jne 0x402b20
xor eax, eax
jmp 0x402b20
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x402ef0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403500
call fcn.00403278
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043c0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d18
cmp eax, esi
jne 0x402d0b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d1b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402cef
xor esi, esi
inc esi
cmp dword [0x4043c4], esi
jne 0x402d2d
push 0x1f
call fcn.00535000
pop ecx
jmp 0x402d67
cmp dword [0x4043c4], ebx
jne 0x402d61
mov dword [0x4043c4], esi
push 0x4011a8
push 0x40119c
call fcn.00402e4c
pop ecx
pop ecx
test eax, eax
je 0x402d67
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402e3c
mov dword [0x404034], esi
cmp dword [0x4043c4], esi
jne 0x402d8a
push 0x401198
push 0x40118c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043c4], 2
test edi, edi
jne 0x402d97
xor eax, eax
mov ecx, 0x4043c0
xchg dword [ecx], eax
cmp dword [0x4043c8], 0
je 0x402dc3
push 0x4043c8
call fcn.004030d0
pop ecx
test eax, eax
je 0x402dc3
push ebx
push 2
push ebx
mov esi, dword [0x4043c8]
mov ecx, esi
call dword [0x405168]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401ae1
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402e21
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402e35
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004031c5
jmp 0x402cd3
Function at 0x401679
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x881bec]
sub esp, 0x800
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x881b44]
test esi, esi
je 0x4016c7
cmp eax, 0x959
jne 0x4016b3
push 0
lea eax, [ebp - 0x800]
push eax
push str.Subasosu_nigukole_padisekadapoyi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401475
add edi, 8
dec esi
je 0x4016c7
mov eax, dword [0x881bec]
jmp 0x401698
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d81f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004051c5
mov dword [ebp - 0x14], eax
cmp dword [0x818b64], esi
jne 0x40d912
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d89f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d9f2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d9f2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d9f2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x818b64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x818b68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x818b6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x818b74], eax
test eax, eax
je 0x40d90f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x818b70], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d937
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d92a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d94c
push 4
pop eax
jmp 0x40d9f4
cmp dword [ebp - 0x14], esi
je 0x40d94c
push dword [0x818b64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d931
mov eax, dword [0x818b70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d9aa
cmp dword [0x818b74], edi
je 0x40d9aa
push eax
call ebx
push dword [0x818b74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d9aa
test eax, eax
je 0x40d9aa
call ecx
test eax, eax
je 0x40d99f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d99f
test byte [ebp - 8], 1
jne 0x40d9aa
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d9da
mov eax, dword [0x818b68]
cmp eax, edi
je 0x40d9d7
push eax
call ebx
test eax, eax
je 0x40d9d7
call eax
mov esi, eax
test esi, esi
je 0x40d9d7
mov eax, dword [0x818b6c]
cmp eax, edi
je 0x40d9d7
push eax
call ebx
test eax, eax
je 0x40d9d7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x818b64]
call ebx
test eax, eax
je 0x40d9f2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d9f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040449f
mov esp, ebp
pop ebp
ret
Function at 0x405c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b3d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x405ce5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x405cde
test esi, esi
je 0x405cde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405cc0
mov dword [esp], 0x40b3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40de50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
jmp 0x40de6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40de71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40de60
mov eax, 1
add ebx, ebx
jne 0x40de83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40de78
jne 0x40de94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40de78
xor ecx, ecx
sub eax, 3
jb 0x40dea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40df1a
mov ebp, eax
add ebx, ebx
jne 0x40deb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40dec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40dee4
inc ecx
add ebx, ebx
jne 0x40ded0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40dec5
jne 0x40dee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40dec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40df04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40def5
jmp 0x40de66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40df04
add edi, ecx
jmp 0x40de66
pop esi
mov edi, esi
mov ecx, 0x27c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40df22
cmp byte [edi], 1
jne 0x40df22
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 0x40df27
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40df96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd254]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40df54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd298]
or eax, eax
je 0x40df90
mov dword [ebx], eax
add ebx, 4
jmp 0x40df71
call dword [esi + 0xd294]
mov ebp, dword [esi + 0xd29c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40dfca
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040b97d
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b97d
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40b97d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40b98c
pop dword [ebp - 0x10]
mov eax, 0x445d0577
add eax, 0xbbe3b415
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3711e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x3882
mov edi, eax
mov ebx, 0x8f908c79
add ebx, 0x70b43987
add ebx, dword [ebp - 0x10]
mov esi, 0x8bb480d9
sub esi, 0x30a8fc93
mov dword [ebp - 4], 0x99e3bd6
mov edx, dword [ebx]
sub dword [ebp - 4], esi
xor edx, esi
xor dword [ebp - 0xc], 0xb120375
mov dword [edi], edx
mov dword [ebp - 4], 0x7a00cbb0
add edi, 4
add ebx, 0xb86be3fc
add ebx, 0x47941c08
loop 0x40b9e0
add eax, 0x7a4a8d75
add eax, 0x85b64766
xor ebx, ebx
add ebx, eax
add eax, 0x22a22cd0
sub eax, 0x22a22ccb
mov ecx, 0xa21f7b4f
sub ecx, 0xa1df7b4f
add ecx, dword [ebp - 0x10]
call ebx
leave
ret