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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45384f
add esp, 0xfffffff0
call fcn.004033f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419b4c
mov eax, dword [0x4601fc]
cmp word [eax + 2], 0
jne 0x453877
mov eax, dword [0x4601fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454fa0
mov eax, dword [0x4602a8]
cmp word [eax + 2], 0
jne 0x453891
mov eax, dword [0x4602a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455198
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4118b4]
call fcn.004030b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4118b4]
call fcn.004030b8
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 [0x41bd30]
call fcn.00421aec
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453a18
mov eax, dword [0x460118]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421ebc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455738
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x460118]
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.0040c430
test eax, eax
je 0x453986
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408460
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c458
test eax, eax
je 0x45399a
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.00404114
mov eax, dword [0x460010]
cmp byte [eax], 0
jne 0x4539ce
mov eax, ebx
call fcn.00453b40
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.00455914
mov eax, ebx
call fcn.004562d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453a0e
call fcn.0040344c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453dc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x461bb4]
cmp dword [eax + 0x30], 0
je 0x453e6a
cmp dword [ebx + 0x94], 0
jne 0x453e64
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453d50
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453e64
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 0x453e2a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453e64
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.00413c78
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453e39
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4549cc
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 0x454a01
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.00403f94
jmp 0x454a0e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ef8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455af0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455b31
mov eax, esi
call fcn.0043c1a4
test al, al
je 0x455b31
mov eax, dword [ebx + 0x84]
call fcn.0043bea0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455b31
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043bea0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x458d0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x458d3a
mov ecx, 4
mov dl, 1
mov eax, dword [0x4574e0]
call fcn.0045bb58
call fcn.0040385c
mov eax, dword [esi]
push eax
mov edx, edi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.00458cc8
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x458d72
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x458d72
xor eax, eax
jmp 0x458d74
mov al, 1
test al, al
jne 0x458d94
call sub.kernel32.dll_GetLastError
push eax
mov ecx, 2
mov dl, 1
mov eax, dword [0x4574e0]
call fcn.0045ba94
call fcn.0040385c
mov cl, 1
mov dl, 6
mov eax, ebx
call fcn.0045b808
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x458e48
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x458e76
mov ecx, 4
mov dl, 1
mov eax, dword [0x4574e0]
call fcn.0045bb58
call fcn.0040385c
mov eax, dword [ebx]
mov byte [eax + 0x14], 1
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x458ea5
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x458ea5
xor eax, eax
jmp 0x458ea7
mov al, 1
test al, al
jne 0x458ec7
call sub.kernel32.dll_GetLastError
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x4574e0]
call fcn.0045ba94
call fcn.0040385c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x45bc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45bd71
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x45bd80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x45bc68
push ebx
mov ecx, 0x17
mov dl, 1
mov eax, dword [0x4574e0]
call fcn.0045ba94
call fcn.0040385c
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.004030b8
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45bd4f
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004044f0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004044f0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404364
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404364
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x45bcf4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004044f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
jmp 0x45bd13
cmp ebx, 0x103
je 0x45bd13
push ebx
mov ecx, 0x17
mov dl, 1
mov eax, dword [0x4574e0]
call fcn.0045ba94
call fcn.0040385c
test ebx, ebx
je 0x45bc87
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd56
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x1c]
call fcn.004030e8
ret
Function at 0x45d8fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404354
xor eax, eax
push ebp
push 0x45d998
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00403ea4
mov eax, dword [ebp - 4]
call fcn.00404164
mov esi, eax
test esi, esi
jle 0x45d96a
mov edi, 1
mov eax, dword [ebp - 4]
mov bl, byte [eax + edi - 1]
xor bl, byte [ebp - 5]
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040408c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0040416c
inc edi
dec esi
jne 0x45d947
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d99f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403ec8
lea eax, [ebp - 4]
call fcn.00403ea4
ret
Function at 0x4011f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401209
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401244
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401240
lea ebx, [ebx]
cmp esi, eax
jae 0x401244
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401230
cmp esi, eax
jb 0x40124a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401370
Capabilities:
Set registry value

Disassembly:
sub esp, 0x84
mov eax, dword [0x43bff0]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x88]
push 0x40
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x43cfe0]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esi]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 4]
push ecx
push 1
push 0
push str.ConnectionGUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004194fa
add esp, 0x84
ret 4
Function at 0x402d10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42f968
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43bff0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push 0xab00
call fcn.0040ca13
mov ebx, eax
add esp, 4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [ebx], 0x558
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], 0xab00
call sub.RASAPI32.dll_RasEnumConnectionsW
test eax, eax
je 0x402d7a
push 0
push 0
push 0x43404c
call fcn.0040f5ce
mov ebp, dword [esp + 0x20]
xor esi, esi
xor edi, edi
test ebp, ebp
jbe 0x402de2
add ebx, 8
lea esp, [esp]
mov ecx, dword [esp + 0x3c]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402dbc
test dx, dx
je 0x402db8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402dbc
add eax, 4
add ecx, 4
test dx, dx
jne 0x402d96
xor eax, eax
jmp 0x402dc1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402dd9
add edi, 1
add ebx, 0x558
cmp edi, ebp
mov esi, 2
jb 0x402d90
jmp 0x402dde
mov esi, 1
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0040ca0e
xor edi, edi
add esp, 4
cmp esi, edi
jne 0x402eaa
mov dword [esp + 0x14], edi
push str.SystemStateHardware
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], edi
call fcn.00404800
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
push 0x2001f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402e83
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push str.Cradled
mov ebp, 4
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x54], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402e76
cmp dword [esp + 0x24], ebp
jne 0x402e76
cmp dword [esp + 0x28], 1
jne 0x402e76
lea esi, [ebp - 2]
test edi, edi
je 0x402e83
push edi
call ebx
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x402eaa
push edi
call ebx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x402ed0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x18
push esi
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
push ecx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x10]
push edx
push 0x404390
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
push 0
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x927c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402f29
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x402f49
mov dword [esp + 0x20], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0
pop esi
je 0x402f6e
push 0
push 0
push 0x4340a4
mov dword [esp + 0x1c], 0
call fcn.0040f5ce
mov eax, dword [esp + 0x10]
add esp, 0x18
ret 4

Function at 0x402f80
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0xe8
mov eax, dword [0x43bff0]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xec]
push ebx
push ebp
mov ebp, dword [esp + 0xf8]
xor ebx, ebx
cmp dword [edi + 0x1ac], ebx
push esi
je 0x402fb6
xor eax, eax
jmp 0x4030a2
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
push 0x404570
push ebx
push ebx
mov dword [esp + 0x38], edx
mov word [esp + 0x40], bx
mov word [esp + 0x80], bx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x249f0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403005
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x403021
mov dword [esp + 0xc], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], ebx
je 0x40303e
push ebx
push ebx
push 0x4340a4
mov dword [esp + 0x30], ebx
call fcn.0040f5ce
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40309e
lea eax, [esp + 0x68]
lea esi, [edi + 0xac]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x403060
push esi
call fcn.00419996
mov dword [edi + 0x50], eax
lea eax, [esp + 0x2c]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403082
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00405440
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xec]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004194fa
add esp, 0xe8
ret 8
Function at 0x4030c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x42f926
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x43bff0]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x43bff0]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call fcn.0040d2e3
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x60]
push eax
lea ecx, [esp + 0x18]
call fcn.00404800
xor ebx, ebx
push str..exe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x258], ebx
call fcn.004048c0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x260], 1
call fcn.00404c50
mov byte [esp + 0x260], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403174
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4031e9
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], 0x22c
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4031e2
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.0041a037
add esp, 8
test eax, eax
jne 0x4031cc
cmp edi, dword [esp + 0x24]
jne 0x4031dd
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4031b0
jmp 0x4031e2
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403209
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403234
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004194fa
add esp, 0x248
ret
Function at 0x403260
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, 0x411c
call fcn.0041db80
mov eax, dword [0x43bff0]
xor eax, esp
mov dword [esp + 0x4118], eax
mov eax, dword [esp + 0x4120]
push ebx
push esi
push edi
push 0x104
push eax
lea eax, [esp + 0x20]
push eax
mov edi, ecx
call fcn.00419cb1
lea ecx, [esp + 0x24]
add esp, 0xc
push ecx
call fcn.004070b0
mov esi, eax
add esp, 4
test esi, esi
je 0x4032fb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
jne 0x4032ff
cmp byte [esi + 0x5c], 0x77
jne 0x4032f4
mov eax, esi
call fcn.00407ae0
test eax, eax
jne 0x4032f4
mov eax, dword [esi + 0x4c]
mov ebx, dword [esi + 0x40]
call fcn.00407b90
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0x40]
call fcn.00407b90
mov eax, esi
call fcn.00407830
xor eax, eax
jmp 0x403372
lea edx, [esp + 0x120]
push edx
mov eax, esi
call fcn.004078e0
add esp, 4
test eax, eax
jl 0x403346
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x403361
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x12c]
push edx
push edi
call ebx
lea eax, [esp + 0x120]
push eax
mov eax, esi
call fcn.004078e0
add esp, 4
test eax, eax
jge 0x40331b
lea ecx, [esp + 0x10]
mov ebx, esi
call fcn.00407c40
call fcn.00407c00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403372
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00407c00
mov eax, 1
mov ecx, dword [esp + 0x4124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004194fa
add esp, 0x411c
ret 4
Function at 0x4058e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x4058ef
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x4059d7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4352b0]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4352b0]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x4352b0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4352b0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4352b0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4352b0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4352b0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4352b0]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x405900
pop ebp
test edi, edi
je 0x4059fc
jmp 0x4059e0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4352b0]
add ecx, 1
sub edi, 1
jne 0x4059e0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x407300
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x407353
cmp dword [esi + 4], 0
jne 0x40735c
call fcn.0041a556
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.0041a90d
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x407357
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.0041aa77
add esp, 4
test eax, eax
je 0x407353
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
add dword [esi + 4], 0xffffffff
mov cl, byte [eax]
add eax, 1
mov dword [esi], eax
movzx eax, cl
ret