joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb97a03
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00b920c9
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0xb97a37
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 4], eax
jge 0xb97a82
imul ecx, dword [ebp - 4], 0x28
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx], 0x7865742e
jne 0xb97a80
imul eax, dword [ebp - 4], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
imul ecx, dword [ebp - 4], 0x28
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp - 0xc]
add eax, dword [edx + ecx + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov al, 1
jmp 0xb97a84
jmp 0xb97a2e
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0xb97c93
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
call fcn.00b920c9
mov dword [ebp - 0xc], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
add ecx, dword [eax + edx + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x20]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x1c]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
mov ecx, 1
test ecx, ecx
je 0xb97d5e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00b979e3
add esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov edx, dword [ebp - 0x18]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00b97c63
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
add edx, 0x3c
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00b97b23
add esp, 0xc
movzx edx, al
test edx, edx
je 0xb97d5c
mov eax, dword [ebp - 8]
jmp 0xb97d60
jmp 0xb97cec
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0xba9eab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00ba9d2a
Function at 0xbdb24c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00b9125b
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00b921f0
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0xbdb2a7
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0xbdb29e
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0xbdfe18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0xc4235d], 0
mov ebx, edx
test edi, edi
je 0xbdfe6a
mov byte [0xc4235e], 1
call dword [fcn.00c0d180]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0xbdf51c
push ecx
push ecx
call fcn.00b9def7
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [0xc0d6fc]
mov edi, eax
test esi, esi
je 0xbdfe95
push 0xffffffffffffffff
push esi
mov byte [0xc4235e], 0
call dword [fcn.00c0d16c]
push esi
call dword [fcn.00c0d360]
cmp byte [0xc4235d], 1
jne 0xbdfea3
or eax, 0xffffffff
jmp 0xbdfea5
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xbe3a95
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0xc416a0], 1
jne 0xbe3aa3
call fcn.00be3b81
mov eax, dword [0xc43fc0]
mov ecx, dword [eax]
add eax, 4
mov dword [0xc43fc0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0xbe3adb
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0xc416a0], 1
jne 0xbe3aee
call fcn.00be3b81
mov eax, dword [0xc43fc0]
mov ecx, dword [eax]
add eax, 4
mov dword [0xc43fc0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0xbe3b31
fadd qword [0xc38f80]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0xc38f50]
mov esp, ebp
pop ebp
ret

Function at 0xbe3b41
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0xc43600], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0xc435fc]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0xc43600], eax
inc edx
cmp edx, 0x270
jl 0xbe3b4d
mov dword [0xc416a0], esi
mov dword [0xc435e4], esi
pop esi
ret
Function at 0xbe3b81
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0xc435e4], 0
push esi
push edi
mov esi, 0xc43600
jne 0xbe3ba4
push 0
call fcn.00b9f188
pop ecx
mov ecx, eax
call fcn.00be3b41
mov dword [0xc416a0], 0x270
mov edx, 0xe3
mov dword [0xc43fc0], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0xbe3bb9
mov eax, dword [esi]
mov dword [ebp - 4], 0x18c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0xbe3bf3
mov eax, dword [0xc43600]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xbe40af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0xbe40d4
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00b921f0
add esp, 0xc
jmp 0xbe40e7
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00b9f564
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push 0xc378dc
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.00b9f620
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0xbe41f3
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, 0x10000
mov ecx, dword [esi + 0x464]
test ecx, ecx
je 0xbe4209
cmp ecx, eax
jne 0xbe4225
push dword [esi + 0x1c]
push eax
push 1
push dword [esi + 0x45c]
call fcn.00b9f564
add esp, 0x10
xor ecx, ecx
mov dword [esi + 0x464], ecx
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret

Function at 0xbe4237
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x460]
mov esi, dword [edi + 0x458]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x460]
cmp dword [edi + 0x460], eax
jne 0xbe427e
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x458]
call fcn.00b9e853
add esp, 0x10
and dword [edi + 0x460], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0xbe4284
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x460]
test eax, eax
je 0xbe42ac
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.00b9e853
add esp, 0x10
and dword [esi + 0x460], 0
pop esi
ret

Function at 0xbe4462
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call fcn.00be42ae
push dword [ebp + 8]
lea ecx, [ebp - 0xdc]
call fcn.00be42f4
xor esi, esi
test ebx, ebx
je 0xbe44a6
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00be4436
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0xbe4491
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xbee735
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 0xc378fc
push dword [esi + 0x34]
call fcn.00b9f28b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0xbee761
mov dword [esi + 0x18], 0x1f
jmp 0xbee7db
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [0xc0d7b4]
test eax, eax
je 0xbee7d4
cmp dword [ebp - 4], 0
je 0xbee7ac
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.00b9e853
mov eax, dword [ebp - 4]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0xbee767
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0xbee7bd
mov dword [esi + 0x18], 0x21
jmp 0xbee7db
and dword [esi + 0x18], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0xbee7f7
push eax
call dword [fcn.00c0d2cc]
jmp 0xbee7f7
mov dword [esi + 0x18], 0x20
call dword [fcn.00c0d330]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0xbee7f5
push eax
call dword [fcn.00c0d2cc]
xor bl, bl
test edi, edi
je 0xbee802
push edi
call fcn.00b9f318
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0xbeeaff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0xbeeb3b
cmp byte [ebp + 8], 0
je 0xbeeb3b
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.00bed9f9
push esi
push 0
push 0xbeddd1
call fcn.00b9de6b
add esp, 0xc
cmp dword [esi + 0x18], 0
sete al
jmp 0xbeeb43
push dword [ebp + 8]
call fcn.00bedc47
pop esi
pop ebp
ret 4
Function at 0xc0ccf2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov eax, edx
mov dword [ebp - 0xc], 2
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
movzx ecx, word [eax]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x10], ecx
mov esi, ecx
movzx edx, cx
and esi, ebx
mov dword [ebp - 4], esi
cmp edi, 0x100
jae 0xc0cd73
and edx, 2
test cl, 4
jne 0xc0cd47
test dx, dx
je 0xc0cd65
mov ecx, edi
shr edi, 3
and ecx, 7
shl ebx, cl
push 0
test byte [edi + eax + 2], bl
pop eax
setne al
jmp 0xc0cd67
test dx, dx
je 0xc0cd73
mov ecx, edi
mov edx, ebx
and ecx, 7
mov eax, edi
shl edx, cl
mov ecx, dword [ebp - 8]
shr eax, 3
test byte [eax + ecx + 2], dl
je 0xc0cd6e
mov eax, ecx
mov ecx, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
and cl, 2
je 0xc0cd84
add eax, 0x20
mov dword [ebp - 8], eax
movzx ecx, word [eax]
test cx, cx
je 0xc0cd65
mov eax, edi
mov dword [ebp - 0x10], 0x80
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], eax
Function at 0x4030b0
Capabilities:
Get common file path
Get disk information
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x48b3b8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x48b3bc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], edx
call fcn.004030a0
mov ecx, dword [0x48b3c0]
mov edx, dword [0x48b3c4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0x20
jmp 0x403120
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x492b44]
shl esi, 4
add esi, dword [ebp - 0x28]
cmp eax, 0xfa9
jne 0x40314c
mov dword [0x492b40], 0xedeb2e40
jmp 0x403167
cmp eax, 0x3eb
jne 0x403167
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4925d0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x2c]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x492b44], 0x9e6
mov dword [0x492b3c], 0xf4ea3dee
jne 0x4031a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 4], esi
cmp dword [0x492b44], 0x213
jne 0x403216
push 0
push 0
push 0
push 0
call ebx
lea eax, [ebp - 0x548]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0x948]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x492b44], 0xc
jne 0x40322a
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x20]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x403120
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403280
Capabilities:
Allocate thread local storage
Get thread local storage value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x492b44]
mov ecx, dword [0x4925d4]
shr eax, 3
sub esp, 0x808
test eax, eax
jbe 0x40333f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x492b44], 0x959
jne 0x403329
push 0
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004030b0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4032c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ca0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48a5a8]
jne 0x406caa
repz ret
jmp fcn.0040b72a

Function at 0x40b3e5
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.00407947
and dword [ebp - 4], 0
cmp dword [0x4905c4], 0
mov ebx, eax
jne 0x40b496
push 0x402408
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b547
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023fc
push edi
call esi
test eax, eax
je 0x40b547
push eax
call fcn.004078d5
mov dword [esp], 0x4023ec
push edi
mov dword [0x4905c4], eax
call esi
push eax
call fcn.004078d5
mov dword [esp], 0x4023d8
push edi
mov dword [0x4905c8], eax
call esi
push eax
call fcn.004078d5
mov dword [esp], 0x4023bc
push edi
mov dword [0x4905cc], eax
call esi
push eax
call fcn.004078d5
pop ecx
mov dword [0x4905d4], eax
test eax, eax
je 0x40b496
push 0x4023a4
push edi
call esi
push eax
call fcn.004078d5
pop ecx
mov dword [0x4905d0], eax
mov eax, dword [0x4905d0]
cmp eax, ebx
je 0x40b4ee
cmp dword [0x4905d4], ebx
je 0x40b4ee
push eax
call fcn.00407950
push dword [0x4905d4]
mov esi, eax
call fcn.00407950
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b4ee
test edi, edi
je 0x40b4ee
call esi
test eax, eax
je 0x40b4e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b4e5
test byte [ebp - 0xc], 1
jne 0x40b4ee
or dword [ebp + 0x10], 0x200000
jmp 0x40b527
mov eax, dword [0x4905c8]
cmp eax, ebx
je 0x40b527
push eax
call fcn.00407950
pop ecx
test eax, eax
je 0x40b527
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b527
mov eax, dword [0x4905cc]
cmp eax, ebx
je 0x40b527
push eax
call fcn.00407950
pop ecx
test eax, eax
je 0x40b527
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4905c4]
call fcn.00407950
pop ecx
test eax, eax
je 0x40b547
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b549
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407250
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x40727d
xor ecx, ecx
jmp 0x407289
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x40733d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x4072b0
mov dword [esp + 0xc], esi
jmp 0x407310
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x407309
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4072fc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x407310
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x407310
push 0x46e9c8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x407310
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x407333
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4072a2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x407351
mov ecx, dword [ebx]
add ecx, 8
call fcn.004074e0
test eax, eax
je 0x407351
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x407360
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x45c69b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49c23c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00440500
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4073f8
push 0x472764
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004409b1
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x410460
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45a858
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x49c23c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x4755e0]
cmp eax, 1
je 0x410540
test eax, eax
je 0x410540
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0040ff70
push 0x462e84
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2c], 0
call fcn.0040f5f0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x14
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4104e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
push ecx
push 0x462e80
push 0x462e74
push 0x462e74
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [esp + 8]
neg eax
sbb eax, eax
inc eax
push edx
mov dword [0x4755e0], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 8]
mov esi, dword [0x4755e0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41053e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret