joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
mov ebx, 1
mov dword [ebp - 0xc], 0
push 1
push 0x4de7d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401bcc
mov eax, 0x51eb851f
imul ebx
mov ecx, ebx
sar ecx, 0x1f
sar edx, 5
sub edx, ecx
imul esi, edx, 0x64
mov eax, ebx
sub eax, esi
jne 0x401bcc
cmp ebx, 0x15f90
jge 0x401b95
xor eax, eax
jmp 0x401bc5
cmp ebx, 0x1d4c0
jge 0x401ba4
mov eax, 0x32
jmp 0x401bc5
cmp ebx, 0x2bf20
jge 0x401bb3
mov eax, 0x64
jmp 0x401bc5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x401bc5
mov eax, 0xfa
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401be0
inc ebx
cmp ebx, 0x57e40
jl 0x401b58
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401bf8
mov dword [ebp - 0x10], 0x98
lea eax, [ebp - 0x10]
push eax
call fcn.00412100
pop ecx
mov eax, dword [0x4de7d4]
test eax, eax
jne 0x401c2e
cmp dword [0x4db0a0], 1
je 0x401cc7
xor ebx, ebx
xor esi, esi
cmp dword [0x4de7cc], 0
je 0x401c84
cmp dword [0x4db0a0], 1
mov dword [0x4de7d4], 1
je 0x401c6f
push dword [0x4de7c8]
mov dword [0x4de7d0], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x401d05
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4db0a0], 1
je 0x401ce5
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00450c00
push ebx
push 0x16
call fcn.00450c00
add esp, 0x10
jmp 0x401c2e
mov dword [0x4de7cc], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4de7c8], eax
cmp eax, 0xffffffff
jne 0x401cab
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401c1b
push 0x4018c0
call fcn.00451620
push 0x401890
call fcn.00451620
add esp, 8
jmp 0x401c1b
push 1
push 2
call fcn.00450c00
mov esi, eax
push 1
push 0x16
call fcn.00450c00
add esp, 0x10
mov ebx, eax
jmp 0x401c12
push 1
push 2
call fcn.00450c00
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.00450c00
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x401c63
lea eax, [ebp - 0xc]
push eax
push 0
push 0x70
call fcn.00412140
add esp, 0xc
test eax, eax
je 0x401d2c
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov edx, 0x70
mov ecx, dword [edx + 0x4daffc]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4daff8]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4daff4]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4daff0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x401d34
push dword [ebp - 0xc]
push dword [0x4de7c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0xc]
jmp 0x401c51
Function at 0x407020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov ebx, eax
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x134]
sub edi, eax
test edx, edx
mov ecx, edx
jne 0x407047
mov ecx, 0x20000
cmp edi, ecx
ja 0x407073
lea edx, [ebp - 8]
push 0
push edx
push edi
push eax
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x4070e8
mov ecx, 1
jmp 0x4070e8
mov dword [ebp - 0x18], edi
mov ecx, edi
mov dword [ebp - 0x14], esi
test edx, edx
jne 0x407084
mov edx, 0x20000
mov edi, eax
mov esi, ecx
mov dword [ebp - 4], edx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4070b2
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 0xffffffff
jmp 0x4070e8
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x134]
add edi, eax
sub esi, eax
test edx, edx
jne 0x4070c8
mov edx, 0x20000
cmp esi, edx
jae 0x4070d5
mov dword [ebp - 4], esi
test esi, esi
jne 0x4070d9
jmp 0x4070dd
test esi, esi
je 0x4070dd
test eax, eax
ja 0x40708b
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf0]
and byte [ebx + 0x165], 0xfb
mov dword [ebx + 0x40], edx
add edx, eax
mov dword [ebx + 0x44], edx
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
adc edx, dword [ebx + 0xc4]
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0xbc], edx
cmp ecx, 0xffffffff
je 0x407148
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xe0], eax
mov ebx, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
Function at 0x40ae10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov ebx, eax
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x134]
sub edi, eax
test edx, edx
mov ecx, edx
jne 0x40ae37
mov ecx, 0x20000
cmp edi, ecx
ja 0x40ae63
lea edx, [ebp - 8]
push 0
push edx
push edi
push eax
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x40aed8
mov ecx, 1
jmp 0x40aed8
mov dword [ebp - 0x18], edi
mov ecx, edi
mov dword [ebp - 0x14], esi
test edx, edx
jne 0x40ae74
mov edx, 0x20000
mov edi, eax
mov esi, ecx
mov dword [ebp - 4], edx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40aea2
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 0xffffffff
jmp 0x40aed8
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x134]
add edi, eax
sub esi, eax
test edx, edx
jne 0x40aeb8
mov edx, 0x20000
cmp esi, edx
jae 0x40aec5
mov dword [ebp - 4], esi
test esi, esi
jne 0x40aec9
jmp 0x40aecd
test esi, esi
je 0x40aecd
test eax, eax
ja 0x40ae7b
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf0]
and byte [ebx + 0x165], 0xfb
mov dword [ebx + 0x40], edx
add edx, eax
mov dword [ebx + 0x44], edx
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
adc edx, dword [ebx + 0xc4]
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0xbc], edx
cmp ecx, 0xffffffff
je 0x40af38
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xe0], eax
mov ebx, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
Function at 0x410040
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x411f30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x412012
mov eax, dword [0x4db0a0]
mov ebx, dword [esi + 0x14]
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
cmp eax, 2
lea edx, [ebx + 0x4e3b68]
jge 0x411f83
mov edx, dword [edx]
test edx, edx
jne 0x411fcd
mov eax, dword [0x4db0a0]
mov dword [ebx + 0x4e3b68], 1
jmp 0x411fcd
push edx
mov dword [ebp - 0x10], edx
call fcn.00401dd0
mov edx, dword [ebp - 0x10]
add esp, 4
test eax, eax
jne 0x411fc8
cmp dword [ebx + 0x4e3b64], 0
je 0x4120d6
mov dword [ebx + 0x4e3b68], 0
push 0xffffffffffffffff
push dword [ebx + 0x4e3b64]
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401dd0
pop ecx
mov eax, dword [0x4db0a0]
cmp eax, 1
je 0x4120c4
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x41203c
mov eax, dword [0x4db0a0]
cmp eax, 1
je 0x412021
cmp eax, 2
jge 0x411ffc
mov dword [ebx + 0x4e3b68], 0
jmp 0x412012
push dword [ebx + 0x4e3b64]
mov dword [ebx + 0x4e3b68], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x4e3b78]
push dword [ebx + 0x4e3b74]
call fcn.00401db0
add esp, 8
mov eax, dword [0x4db0a0]
jmp 0x411feb
mov edx, dword [esi]
test edx, edx
je 0x41204a
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test eax, eax
je 0x412055
mov dword [eax], edx
jmp 0x41205b
mov dword [ebx + 0x4e3b60], edx
mov eax, dword [0x4db0a0]
mov dword [edi + 0x7c], 0
cmp eax, 1
je 0x4120a9
cmp eax, 2
jge 0x41207d
mov dword [ebx + 0x4e3b68], 0
jmp 0x412093
push dword [ebx + 0x4e3b64]
mov dword [ebx + 0x4e3b68], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00412200
push esi
call fcn.00412200
add esp, 8
jmp 0x412012
push dword [ebx + 0x4e3b78]
push dword [ebx + 0x4e3b74]
call fcn.00401db0
add esp, 8
mov eax, dword [0x4db0a0]
jmp 0x41206c
lea eax, [ebx + 0x4e3b74]
push eax
call fcn.00401d80
pop ecx
jmp 0x411fd6
mov dword [ebp - 0x10], edx
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x4e3b68], 0
mov dword [ebx + 0x4e3b64], eax
jmp 0x411fad
Function at 0x421280
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x42128c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
mov ebx, ecx
mov esi, edx
mov ecx, eax
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
cmp dword [0x4e8dc0], 0
je 0x421363
cmp dword [ebp + 0x20], 2
je 0x4212c3
cmp dword [ebp + 0x20], 1
jne 0x4212d2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x4212e2
cmp dword [ebp + 0x20], 0xfffffffa
je 0x4213ec
cmp dword [ebp + 0x20], 0
je 0x4213f8
xor edx, edx
xor edi, edi
cmp dword [ebp + 0x18], 0
je 0x421317
cmp dword [ebp + 0x1c], 0
je 0x421317
push edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call fcn.004ac530
push edi
call fcn.004ac6a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add esp, 8
test edx, edx
je 0x421363
push edi
push ebx
push esi
call fcn.004ac5d0
add esp, 0xc
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
cmp ebx, 0xffffffff
je 0x42145f
push 0
push edi
push 2
push 0x4c3de4
call fcn.004ac590
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 0xc]
mov byte [ebx + esi], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
inc dword [edx]
mov eax, 1
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x14]
test edx, edx
mov dword [edi], 0
je 0x42138b
mov edi, dword [edx + 0x134]
test edi, edi
jne 0x421390
mov edi, 0x20000
cmp ebx, edi
jbe 0x4213c8
cmp dword [ebp + 0x20], 0
je 0x4213c8
test edx, edx
je 0x4213a8
mov edi, dword [edx + 0x134]
test edi, edi
jne 0x4213ad
mov edi, 0x20000
mov dword [ebp - 0x14], ebx
mov ebx, ecx
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x42141c
jmp 0x4213df
lea edx, [ebp - 0x10]
push 0
push edx
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edi, ecx
mov edx, 1
jmp 0x4212f6
mov dword [ebp - 0x10], ecx
call fcn.004ac7c0
mov ecx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x4e8dc0], 0
je 0x42131b
mov edx, 1
jmp 0x4212f0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
sub dword [ebp - 0x14], edx
add dword [ecx], edx
add esi, edx
cmp dword [ebp + 0x24], 0
je 0x42143c
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 0x134]
test ecx, ecx
jne 0x421441
mov ecx, 0x20000
cmp ecx, dword [ebp - 0x14]
jb 0x42144f
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x421455
jmp 0x4213df
cmp dword [ebp - 0x14], 0
je 0x4213df
test edx, edx
jg 0x4213b2
jmp 0x4213df
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4246a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x42a450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov ebx, eax
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x134]
sub edi, eax
test edx, edx
mov ecx, edx
jne 0x42a477
mov ecx, 0x20000
cmp edi, ecx
ja 0x42a4a3
lea edx, [ebp - 8]
push 0
push edx
push edi
push eax
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x42a518
mov ecx, 1
jmp 0x42a518
mov dword [ebp - 0x18], edi
mov ecx, edi
mov dword [ebp - 0x14], esi
test edx, edx
jne 0x42a4b4
mov edx, 0x20000
mov edi, eax
mov esi, ecx
mov dword [ebp - 4], edx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42a4e2
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 0xffffffff
jmp 0x42a518
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x134]
add edi, eax
sub esi, eax
test edx, edx
jne 0x42a4f8
mov edx, 0x20000
cmp esi, edx
jae 0x42a505
mov dword [ebp - 4], esi
test esi, esi
jne 0x42a509
jmp 0x42a50d
test esi, esi
je 0x42a50d
test eax, eax
ja 0x42a4bb
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf0]
and byte [ebx + 0x165], 0xfb
mov dword [ebx + 0x40], edx
add edx, eax
mov dword [ebx + 0x44], edx
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
adc edx, dword [ebx + 0xc4]
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0xbc], edx
cmp ecx, 0xffffffff
je 0x42a578
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xe0], eax
mov ebx, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
Function at 0x42f7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov ebx, eax
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x134]
sub edi, eax
test edx, edx
mov ecx, edx
jne 0x42f7e7
mov ecx, 0x20000
cmp edi, ecx
ja 0x42f813
lea edx, [ebp - 8]
push 0
push edx
push edi
push eax
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x42f888
mov ecx, 1
jmp 0x42f888
mov dword [ebp - 0x18], edi
mov ecx, edi
mov dword [ebp - 0x14], esi
test edx, edx
jne 0x42f824
mov edx, 0x20000
mov edi, eax
mov esi, ecx
mov dword [ebp - 4], edx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xdc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42f852
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 0xffffffff
jmp 0x42f888
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x134]
add edi, eax
sub esi, eax
test edx, edx
jne 0x42f868
mov edx, 0x20000
cmp esi, edx
jae 0x42f875
mov dword [ebp - 4], esi
test esi, esi
jne 0x42f879
jmp 0x42f87d
test esi, esi
je 0x42f87d
test eax, eax
ja 0x42f82b
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf0]
and byte [ebx + 0x165], 0xfb
mov dword [ebx + 0x40], edx
add edx, eax
mov dword [ebx + 0x44], edx
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
adc edx, dword [ebx + 0xc4]
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0xbc], edx
cmp ecx, 0xffffffff
je 0x42f8e8
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xe0], eax
mov ebx, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
Function at 0x46a880
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4dcb84]
jne 0x46a88a
repz ret
jmp fcn.00482ca0
Function at 0x101038d1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10103910
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10103910
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10103910
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10103910
cmp dword [ecx + 0x74], 0xe
jbe 0x10103910
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10106620
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 0x101066bd
push ebx
push esi
call fcn.101065e9
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.1010657d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1010666a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101066bc
push edi
push eax
call fcn.10104fa0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1010668a
call fcn.10104fee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101066bb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1010657d
add esp, 0x20
test eax, eax
jne 0x101066a9
push edi
call fcn.10104fee
jmp 0x101066b1
push ebx
call fcn.10104fee
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 0x1010692a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010eea8
push 0x1010eea0
push str.FlsAlloc
push 0x1f
call fcn.10106846
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010695e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1010d124]
call esi
jmp 0x10106964
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101069a8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010eeb8
push 0x1010eeb0
push str.FlsGetValue
push 0x21
call fcn.10106846
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101069df
push dword [ebp + 8]
mov ecx, esi
call dword [0x1010d124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101069e7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010eec0
push 0x1010eeb8
push str.FlsSetValue
push 0x22
call fcn.10106846
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10106a21
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1010d124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1010be70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1010be9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1010be9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406601
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406625
xor eax, eax
test eax, eax
je 0x406638
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406638
xor ecx, ecx
jmp 0x40663b
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406764
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a65c4], 0
push esi
jne 0x40679b
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 0x406775
mov dword [ecx*4 + 0x7a65c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406770
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067cc
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 + 0x7a65c0]
xor eax, esi
inc ecx
dec edx
jne 0x4067ae
pop edi
not eax
pop esi
ret 0xc

Function at 0x8de0bc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de0c2
pop ebp
sub ebp, 6
sub ebp, 0x4de0bc
jmp 0x8de120
jmp 0x8de129
mov eax, 0x4de0bc
add eax, ebp
add eax, 0x93
mov ecx, 0x634
mov edx, 0xe0580783
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de140
jmp 0x8de153
jmp 0x9411cd1b
Function at 0x10005ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], ecx
mov eax, 1
shl eax, 4
mov byte [ebp + eax - 0x24], 0x61
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x24], 0x6e
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x24], 0x69
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x24], 0x49
mov eax, 1
imul ecx, eax, 0x16
mov byte [ebp + ecx - 0x24], 0x69
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x24], 0x69
mov eax, 1
imul ecx, eax, 0x14
mov byte [ebp + ecx - 0x24], 0x63
mov edx, 1
imul eax, edx, 0x19
mov byte [ebp + eax - 0x24], 0
mov ecx, 1
imul edx, ecx, 0x15
mov byte [ebp + edx - 0x24], 0x74
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x24], 0x69
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x24], 0x61
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x24], 0x65
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x24], 0x72
mov edx, 1
imul eax, edx, 0x11
mov byte [ebp + eax - 0x24], 0x6c
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x24], 0x74
mov eax, 1
imul ecx, eax, 0x18
mov byte [ebp + ecx - 0x24], 0x6e
mov edx, 1
imul eax, edx, 0xf
mov byte [ebp + eax - 0x24], 0x63
mov ecx, 1
imul edx, ecx, 0xe
mov byte [ebp + edx - 0x24], 0x69
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x24], 0x43
mov edx, 1
imul eax, edx, 0x12
mov byte [ebp + eax - 0x24], 0x53
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x24], 0x69
mov edx, 1
imul eax, edx, 6
mov byte [ebp + eax - 0x24], 0x6c
mov ecx, 1
imul edx, ecx, 0x13
mov byte [ebp + edx - 0x24], 0x65
mov eax, 1
shl eax, 3
mov byte [ebp + eax - 0x24], 0x7a
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x24], 0x74
mov eax, 1
imul ecx, eax, 0x17
mov byte [ebp + ecx - 0x24], 0x6f
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 4]
call fcn.10011b80
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10005e5d
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 8]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret