joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462e54
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x462e6b
add esp, 0xfffffff0
call fcn.0040367c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d7a0
mov eax, dword [0x49c16c]
cmp word [eax + 2], 0
jne 0x462e93
mov eax, dword [0x49c16c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004645bc
mov eax, dword [0x49c234]
cmp word [eax + 2], 0
jne 0x462ead
mov eax, dword [0x49c234]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004647b4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415994]
call fcn.00403328
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415994]
call fcn.00403328
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41fdbc]
call fcn.004284a8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x463034
mov eax, dword [0x49c070]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428878
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x464d64
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49c070]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c94c
test eax, eax
je 0x462fa2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c974
test eax, eax
je 0x462fb6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404318
mov eax, dword [0x49befc]
cmp byte [eax], 0
jne 0x462fea
mov eax, ebx
call fcn.0046315c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00464f40
mov eax, ebx
call fcn.00465904
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46302a
call fcn.004036d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4633dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49dbb4]
cmp dword [eax + 0x30], 0
je 0x463486
cmp dword [ebx + 0x94], 0
jne 0x463480
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46336c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x463480
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x463446
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463480
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417cfc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x463455
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x463fe8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46401d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404198
jmp 0x46402a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46511c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46515d
mov eax, esi
call fcn.0044b1b0
test al, al
je 0x46515d
mov eax, dword [ebx + 0x84]
call fcn.0044aeac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46515d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044aeac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x468824
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x468852
mov eax, ebx
call fcn.004692d8
cmp dword [ebx + 0x40], 0
je 0x46884b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4688c3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4688b5
cmp dword [ebx + 8], 0
je 0x468874
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x468886
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4688b5
cmp dword [ebx + 8], 0
je 0x468867
cmp eax, 3
je 0x468899
dec eax
jne 0x468867
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x468867
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x468867
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4688e1
cmp dword [ebx + 0x14], 0xcc
je 0x4688e1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004688ec
pop ebx
ret
Function at 0x47be38
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414f1c]
call fcn.00404a14
xor eax, eax
push ebp
push 0x47bf7c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49b88c], 0
jne 0x47be8b
mov ecx, dword [0x49bf10]
mov dl, 1
mov eax, dword [0x407354]
call fcn.0040bb80
call fcn.00403ae4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d50
mov eax, ebx
call fcn.004048e4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47bf8c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405998
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004048f4
test eax, eax
jle 0x47bf23
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47bf1c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404330
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404318
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004081b4
test eax, eax
jne 0x47bf1c
mov ebx, 0x15
jmp 0x47bf28
mov ebx, 0x10
jmp 0x47bf28
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x49b88c]
call fcn.0047bd90
mov eax, dword [ebp - 8]
call fcn.0047bd90
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004059b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bf83
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004040cc
lea eax, [ebp - 0x10]
mov edx, dword [0x414f1c]
call fcn.00404ae4
ret

Function at 0x4865d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00421b60
cmp ebx, dword [ebp - 8]
jge 0x486633
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00421f10
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00421f10
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00421f3c
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4865f9
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x48663c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00421b60
cmp ebx, dword [ebp - 8]
jge 0x48669f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00421f10
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00421f10
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00421f3c
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x486665
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x498fc8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov edi, eax
mov eax, edi
call fcn.00404368
mov edx, eax
mov eax, ebp
call fcn.004046f4
mov eax, edi
call fcn.00404368
mov esi, eax
test esi, esi
jle 0x49901b
mov ebx, 1
mov eax, ebp
call fcn.004045c0
lea eax, [eax + ebx - 1]
push eax
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
mov al, byte [edx + 0x49bed4]
mov dl, byte [edi + ebx - 1]
xor al, dl
pop edx
mov byte [edx], al
inc ebx
dec esi
jne 0x498ff2
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 0x411050
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401031
jmp 0x401054
push 1
lea ecx, [ebp + 8]
push ecx
push 3
push 0
push str.IsTPDevice
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x401058
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x411078
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40108a
xor eax, eax
jmp 0x4010cb
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push str.LeaveErrLogFlag
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4010bc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4010cb
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4010cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x4110a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401114
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x927c0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x100
jmp 0x4011b9
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push str.WTSRegTimeStepMilliSec
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401156
mov eax, dword [ebp + 8]
mov dword [eax], 0x927c0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x100
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4011b9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 0x10], 4
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.WTSRegTryNum
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4011a7
mov edx, dword [ebp + 8]
mov dword [edx], 0x927c0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x100
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4011b9
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4013ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.SOFTWARETOSHIBATouchED
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401432
jmp 0x4014c2
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
push str.THKFindCount
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40145f
mov ecx, dword [ebp - 4]
mov dword [0x411164], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.THKErrorMsg
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40148c
mov edx, dword [ebp - 4]
mov dword [0x411168], edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push str.ShowErrorMsg
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4014b8
mov eax, dword [ebp - 4]
mov dword [0x41116c], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40241a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.00408e20
add esp, 0xc
mov dword [ebp - 0x94], 0x94
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x402466
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 0x50707
jmp 0x40248e
cmp dword [ebp - 0x90], 5
jb 0x402483
cmp dword [ebp - 0x8c], 1
jb 0x402483
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x40248c
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4052ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
call fcn.004089b0
test eax, eax
jne 0x4052da
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0xc]
xor eax, eax
jmp 0x405357
mov eax, dword [ebp - 8]
cmp dword [eax + 0x180], 0
je 0x4052ee
mov ecx, dword [ebp - 8]
call fcn.0040535b
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], 0
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x40567c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x180], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x180], 0
jne 0x405335
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0xc]
xor eax, eax
jmp 0x405357
push 2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
call dword [eax + 0xc]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40535b
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
call dword [edx + 8]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x180], 0
jne 0x40538e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
call dword [edx + 0xc]
mov eax, 1
jmp 0x40546c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x17c], 0
jne 0x4053ac
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
call dword [edx + 0xc]
xor eax, eax
jmp 0x40546c
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4053dc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
call dword [edx + 0xc]
xor eax, eax
jmp 0x40546c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x180], 0
je 0x40545c
push 0x1388
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40543f
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x180], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
call dword [eax + 0xc]
xor eax, eax
jmp 0x40546c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x180], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
call dword [edx + 0xc]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x405b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 8]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
je 0x405b25
mov ecx, dword [ebp - 8]
call fcn.00405bab
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x20], 0
jne 0x405b51
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0xc]
xor eax, eax
jmp 0x405ba7
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x405d7d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
jne 0x405b88
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
call dword [edx + 0xc]
xor eax, eax
jmp 0x405ba7
push 2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
call dword [eax + 0xc]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40bf33
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411618
cmp edx, dword [eax]
je 0x40bf55
add eax, 8
inc ecx
cmp eax, 0x4116a8
jl 0x40bf46
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411618]
jne 0x40c083
mov eax, dword [0x42b154]
cmp eax, 1
je 0x40c05d
test eax, eax
jne 0x40bf86
cmp dword [0x4112e4], 1
je 0x40c05d
cmp edx, 0xfc
je 0x40c083
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bfbd
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409990
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ad50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c000
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ad50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f6e8
push edi
call fcn.0040d6f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409990
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004099a0
lea eax, [ebp - 0xa0]
push 0x40f6c8
push eax
call fcn.004099a0
push dword [esi + 0x41161c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004099a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e0af
add esp, 0x2c
pop edi
jmp 0x40c083
lea eax, [ebp + 8]
lea esi, [esi + 0x41161c]
push 0
push eax
push dword [esi]
call fcn.0040ad50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4015c0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov eax, 0xc6ef3720
push esi
push edi
mov dword [ebp - 4], ebx
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
mov ebx, 0x20
nop dword [eax + eax]
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ecx*4 + 0x405018]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ecx*4 + 0x405018]
add ecx, eax
xor edx, ecx
sub esi, edx
sub ebx, 1
jne 0x4015e0
mov ebx, dword [ebp - 4]
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402df4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4150c0
push 0x4150b8
push str.FlsAlloc
push 0x1f
call fcn.0040320b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402e28
push dword [ebp + 8]
mov ecx, esi
call dword [0x41aee8]
call esi
jmp 0x402e2e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x402e72
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4150d0
push 0x4150c8
push str.FlsGetValue
push 0x21
call fcn.0040320b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402ea9
push dword [ebp + 8]
mov ecx, esi
call dword [0x41aee8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x402eb1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4150d8
push 0x4150d0
push str.FlsSetValue
push 0x22
call fcn.0040320b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402eeb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41aee8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4057af
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4057ee
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4057ee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4057ee
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4057ee
cmp dword [ecx + 0x74], 0xe
jbe 0x4057ee
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret