joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x422008], 0x8088405
inc edx
mov dword [ebx + 0x422008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403e48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x422024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ee0
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x403ec0
xor eax, eax
push ebp
push 0x403eb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403efc
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ec0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x422024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x422024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404cc0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44d044], 0
je 0x404d21
cmp word [0x44d218], 0xd7b2
jne 0x404ce9
cmp dword [0x44d220], 0
jbe 0x404ce9
mov eax, 0x44d214
call dword [0x44d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404d48
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x422030], 0
jne 0x404d3d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x406488
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066b8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x40650b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066b8
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x40650b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066d4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x406594
xor eax, eax
push ebp
push 0x40658d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004062c4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x406572
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4066f4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x406572
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406594
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4066ae
cmp byte [ebp - 0xd], 0
jne 0x4065db
cmp byte [ebp - 0x12], 0
je 0x4066ae
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4065f4
dec ebx
cmp byte [ebx], 0x2e
je 0x406603
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4065f3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4066ae
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406640
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4066ae
cmp byte [ebp - 0xd], 0
je 0x4066ae
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4066ae
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406594
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066b8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x40650b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066b8
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x40650b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066d4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x406594
xor eax, eax
push ebp
push 0x40658d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004062c4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x406572
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4066f4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x406572
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406594
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4066ae
cmp byte [ebp - 0xd], 0
jne 0x4065db
cmp byte [ebp - 0x12], 0
je 0x4066ae
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4065f4
dec ebx
cmp byte [ebx], 0x2e
je 0x406603
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4065f3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4066ae
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406640
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4066ae
cmp byte [ebp - 0xd], 0
je 0x4066ae
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4066ae
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aff4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x40b02d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f30
jmp 0x40b036
mov eax, ebx
mov edx, esi
call fcn.00404e94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b040
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x40b062
movzx eax, byte [esp]
jmp 0x40b064
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b6f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b56c
mov eax, dword [0x44cbac]
cmp byte [eax], 0
je 0x40b770
mov eax, dword [0x44ca88]
call fcn.00403534
call fcn.00402f34
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.USER32.DLL_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408930
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b7b8
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x40b7a6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44ca64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44f7f0]
call fcn.0040626c
push eax
call sub.USER32.DLL_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d6ec
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052c0
xor eax, eax
push ebp
push 0x40d7e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.00403688
push dword [ebp - 8]
push dword [ebp - 4]
push 0x40d7fc
lea eax, [ebp - 8]
mov edx, 3
call fcn.004051d4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d777
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
jmp 0x40d7c8
push 0
lea eax, [ebp - 0xc]
push eax
push 4
push 0x40d810
push ebx
call sub.KERNEL32.DLL_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x40d7b2
cmp dword [ebp - 0xc], 4
jne 0x40d7b2
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov bl, 1
jmp 0x40d7c8
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7ea
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e64
ret
Function at 0x40dc74
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor edx, edx
push ebp
push 0x40de93
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x40de5c
xor ebx, ebx
mov esi, 0x40dea4
test bl, bl
jne 0x40dcd9
mov eax, pe_nt_image_headers32
call fcn.00402e0c
mov esi, eax
push esi
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
je 0x40dcd9
test bl, bl
jne 0x40dcd9
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00405038
mov eax, dword [ebp - 0xc]
call fcn.0040d6ec
cmp al, 1
jne 0x40dcd9
mov bl, 1
test bl, bl
jne 0x40dd14
mov eax, pe_nt_image_headers32
call fcn.00402e0c
mov esi, eax
push pe_nt_image_headers32
push esi
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
je 0x40dd14
test bl, bl
jne 0x40dd14
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00405038
mov eax, dword [ebp - 0x10]
call fcn.0040d6ec
cmp al, 1
jne 0x40dd14
mov bl, 1
test bl, bl
jne 0x40dd4f
mov eax, pe_nt_image_headers32
call fcn.00402e0c
mov esi, eax
push pe_nt_image_headers32
push esi
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
je 0x40dd4f
test bl, bl
jne 0x40dd4f
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00405038
mov eax, dword [ebp - 0x14]
call fcn.0040d6ec
cmp al, 1
jne 0x40dd4f
mov bl, 1
test bl, bl
jne 0x40dd5a
xor ebx, ebx
jmp 0x40de70
cmp bl, 1
jne 0x40de6e
call fcn.004030c8
mov eax, 0xff
call fcn.004030f0
mov ecx, 0x34
cdq
idiv ecx
mov eax, 0x40deb0
movzx edx, byte [eax + edx]
lea eax, [ebp - 0x18]
call fcn.00405028
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.0040510c
mov eax, dword [ebp - 4]
call fcn.00405100
cmp eax, 0x14
jne 0x40dd68
lea eax, [ebp - 4]
mov edx, 0x40def0
call fcn.0040510c
push 0x40def8
push esi
call sub.KERNEL32.DLL_lstrcatA
mov eax, dword [ebp - 4]
call fcn.004052d0
push eax
push esi
call sub.KERNEL32.DLL_lstrcatA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ddf9
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
push esi
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
jmp 0x40de70
push 0
lea eax, [ebp - 8]
push eax
push 0x8c00
push 0x4229d8
push ebx
call sub.KERNEL32.DLL_WriteFile_1
cmp dword [ebp - 8], 0x8c00
je 0x40de28
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
push esi
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
jmp 0x40de70
mov eax, pe_nt_image_headers32
call fcn.00402e0c
mov dword [0x45190c], eax
mov eax, dword [0x45190c]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403688
push esi
mov eax, dword [0x45190c]
push eax
call sub.KERNEL32.DLL_lstrcatA
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
jmp 0x40de6e
test al, al
jne 0x40de6e
mov eax, dword [0x45190c]
call fcn.00402e28
mov bl, 1
jmp 0x40de70
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de9a
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404e64
lea eax, [ebp - 4]
call fcn.00404e40
ret
Function at 0x4196a8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404f30
add esp, 0x104
pop ebx
ret

Function at 0x419a94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.004052c0
xor eax, eax
push ebp
push 0x419b19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x419ac6
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x419b00
mov esi, 1
mov eax, dword [ebp - 8]
movzx edx, byte [eax + esi - 1]
xor edx, dword [ebp - 4]
and edx, 0xff
push eax
mov eax, dword [ebp - 4]
sar eax, 8
mov dword [ebp - 4], eax
pop eax
mov eax, dword [edx*4 + 0x42b6d4]
call fcn.004198e4
xor dword [ebp - 4], eax
inc esi
dec ebx
jne 0x419ad1
mov ebx, dword [ebp - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419b20
lea eax, [ebp - 8]
call fcn.00404e40
ret

Function at 0x41b17c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052c0
xor eax, eax
push ebp
push 0x41b27c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.00403688
push dword [ebp - 8]
push dword [ebp - 4]
push 0x41b294
lea eax, [ebp - 8]
mov edx, 3
call fcn.004051d4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41b207
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
jmp 0x41b261
push 0
lea eax, [ebp - 0xc]
push eax
push 4
push 0x41b2a8
push ebx
call sub.KERNEL32.DLL_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x41b24b
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, 0
jne 0x41b24b
cmp eax, 4
jne 0x41b24b
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov bl, 1
jmp 0x41b261
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b283
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e64
ret
Function at 0x41b518
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor edx, edx
push ebp
push 0x41b737
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x41b700
xor ebx, ebx
mov esi, 0x41b748
test bl, bl
jne 0x41b57d
mov eax, pe_nt_image_headers32
call fcn.00402e0c
mov esi, eax
push esi
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
je 0x41b57d
test bl, bl
jne 0x41b57d
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00405038
mov eax, dword [ebp - 0xc]
call fcn.0041b17c
cmp al, 1
jne 0x41b57d
mov bl, 1
test bl, bl
jne 0x41b5b8
mov eax, pe_nt_image_headers32
call fcn.00402e0c
mov esi, eax
push pe_nt_image_headers32
push esi
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
je 0x41b5b8
test bl, bl
jne 0x41b5b8
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00405038
mov eax, dword [ebp - 0x10]
call fcn.0041b17c
cmp al, 1
jne 0x41b5b8
mov bl, 1
test bl, bl
jne 0x41b5f3
mov eax, pe_nt_image_headers32
call fcn.00402e0c
mov esi, eax
push pe_nt_image_headers32
push esi
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
je 0x41b5f3
test bl, bl
jne 0x41b5f3
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00405038
mov eax, dword [ebp - 0x14]
call fcn.0041b17c
cmp al, 1
jne 0x41b5f3
mov bl, 1
test bl, bl
jne 0x41b5fe
xor ebx, ebx
jmp 0x41b714
cmp bl, 1
jne 0x41b712
call fcn.004030c8
mov eax, 0xff
call fcn.004030f0
mov ecx, 0x34
cdq
idiv ecx
mov eax, 0x41b754
movzx edx, byte [eax + edx]
lea eax, [ebp - 0x18]
call fcn.00405028
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.0040510c
mov eax, dword [ebp - 4]
call fcn.00405100
cmp eax, 0x14
jne 0x41b60c
lea eax, [ebp - 4]
mov edx, 0x41b794
call fcn.0040510c
push 0x41b79c
push esi
call sub.KERNEL32.DLL_lstrcatA
mov eax, dword [ebp - 4]
call fcn.004052d0
push eax
push esi
call sub.KERNEL32.DLL_lstrcatA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41b69d
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
push esi
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
jmp 0x41b714
push 0
lea eax, [ebp - 8]
push eax
push 0x3000
push 0x42bc94
push ebx
call sub.KERNEL32.DLL_WriteFile_1
cmp dword [ebp - 8], 0x3000
je 0x41b6cc
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
push esi
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
jmp 0x41b714
mov eax, pe_nt_image_headers32
call fcn.00402e0c
mov dword [0x451a58], eax
mov eax, dword [0x451a58]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403688
push esi
mov eax, dword [0x451a58]
push eax
call sub.KERNEL32.DLL_lstrcatA
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
jmp 0x41b712
test al, al
jne 0x41b712
mov eax, dword [0x451a58]
call fcn.00402e28
mov bl, 1
jmp 0x41b714
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b73e
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404e64
lea eax, [ebp - 4]
call fcn.00404e40
ret
Function at 0x41c574
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052c0
xor eax, eax
push ebp
push 0x41c674
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.00403688
push dword [ebp - 8]
push dword [ebp - 4]
push 0x41c68c
lea eax, [ebp - 8]
mov edx, 3
call fcn.004051d4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41c5ff
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
jmp 0x41c659
push 0
lea eax, [ebp - 0xc]
push eax
push 4
push 0x41c6a0
push ebx
call sub.KERNEL32.DLL_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x41c643
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, 0
jne 0x41c643
cmp eax, 4
jne 0x41c643
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov bl, 1
jmp 0x41c659
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c67b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e64
ret
Function at 0x41f94c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41f9c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x44cbf0]
mov eax, dword [eax]
call eax
mov eax, dword [0x44ca08]
mov eax, dword [eax]
call eax
mov eax, dword [0x44cb94]
mov eax, dword [eax]
call eax
call fcn.0041c548
lea eax, [ebp - 4]
mov edx, dword [0x44caf8]
mov edx, dword [edx]
call fcn.00405038
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f9cd
lea eax, [ebp - 4]
call fcn.00404e40
ret