joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447960
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
jmp 0x447960
sub esp, 0x158
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x15c]
push ebx
push esi
push edi
mov edi, dword [eax]
xor ebx, ebx
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov esi, edi
call fcn.00401235
add esp, 4
test eax, eax
jne 0x4479db
cmp byte [edi], bl
je 0x4479af
lea ecx, [ecx]
cmp byte [esi], 0x2f
jne 0x4479a8
mov byte [esi], 0x5c
add esi, 1
cmp byte [esi], bl
jne 0x4479a0
cmp esi, edi
mov eax, esi
je 0x4479db
cmp byte [eax], 0x2e
je 0x4479c3
sub eax, 1
cmp eax, edi
jne 0x4479b5
jmp 0x4479db
add eax, 1
cmp eax, edi
je 0x4479db
push eax
call fcn.004014fb
add esp, 4
test eax, eax
jne 0x447b63
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x410
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
add edx, 4
push edx
mov dword [esp + 0x34], 0x410
mov dword [esp + 0x3c], ebx
call fcn.00401627
add esp, 0x18
test eax, eax
jne 0x447a56
call fcn.0044baf1
mov dword [eax], 0xc
mov eax, dword [esp + 0x10]
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x447b62
mov ecx, dword [esp + 0x18]
push 0x3c
lea edx, [esp + 0x2c]
push ebx
push edx
mov byte [ecx], bl
call fcn.0044c680
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x2c], 0x500
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0xa
call fcn.0040159b
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
call dword [0x48a454]
test eax, eax
je 0x447add
cmp dword [esp + 0x170], ebx
je 0x447ac2
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0044baf1
mov dword [eax], ebx
mov edx, dword [esp + 0x10]
push edx
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x447b62
cmp dword [esp + 0x174], ebx
je 0x447b3f
push esi
call fcn.00401c03
mov ebx, dword [esp + 0x18]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x200
push ebx
push 0x409
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x47cde4
lea eax, [esp + 0x6c]
push 0x100
push eax
call fcn.0046fe5d
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x78]
push edx
push 0x36
call fcn.0040100a
add esp, 0x1c
xor ebx, ebx
mov eax, dword [esp + 0x10]
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call fcn.00401c03
add esp, 4
call fcn.0044baf1
mov dword [eax], 8
pop ebp
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044c66d
add esp, 0x158
ret
Function at 0x448dc0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
jmp 0x448dc0
sub esp, 0x184
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x180], eax
mov ecx, dword [esp + 0x188]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x40000080
push 3
push ebx
xor eax, eax
push 1
push 0x80000000
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x448e2c
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0044c66d
add esp, 0x184
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x80
lea edx, [esp + 0x118]
push edx
push esi
call edi
test eax, eax
jne 0x448e81
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x448f18
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
je 0x448f18
cmp word [esp + 0x10c], 0x5a4d
jne 0x448f18
mov edx, dword [esp + 0x148]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], edx
push 4
lea edx, [esp + 0x30]
push edx
push esi
call edi
test eax, eax
jne 0x448ec6
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004010fa
add esp, 8
test eax, eax
je 0x448f18
cmp dword [esp + 0x24], 0x4550
jne 0x448f18
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x10]
push edx
add ecx, 0x18
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], ecx
push 0xe0
lea ecx, [esp + 0x38]
push ecx
push esi
call edi
test eax, eax
jne 0x448f0b
lea edx, [esp + 0x10]
push edx
push esi
call fcn.004010fa
add esp, 8
test eax, eax
je 0x448f18
cmp word [esp + 0x70], 2
jne 0x448f18
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044c66d
add esp, 0x184
ret

Function at 0x44c66d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x488180]
jne 0x44c677
repz ret
jmp fcn.00453d13
Function at 0x452d41
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x488410]
je 0x452d5c
inc edi
cmp edi, 0x17
jb 0x452d4d
cmp edi, 0x17
jae 0x452edc
push ebp
push 3
call fcn.00455b77
cmp eax, 1
pop ecx
je 0x452ea8
push 3
call fcn.00455b77
test eax, eax
pop ecx
jne 0x452d90
cmp dword [0x488214], 1
je 0x452ea8
cmp ebx, 0xfc
je 0x452edb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x48a7d0
push ebp
call fcn.00452503
add esp, 0xc
test eax, eax
je 0x452dc6
push esi
push esi
push esi
push esi
push esi
call fcn.0045159d
add esp, 0x14
push 0x104
mov esi, 0x48a7e9
push esi
push 0
mov byte [0x48a8ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x452e0a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00452503
add esp, 0xc
test eax, eax
je 0x452e0a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0045159d
add esp, 0x14
push esi
call fcn.00452890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x452e4f
push esi
call fcn.00452890
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x48aae4
push 0x483d3c
sub ecx, eax
push ecx
push eax
call fcn.004526d8
add esp, 0x14
test eax, eax
je 0x452e4f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0045159d
add esp, 0x14
jmp 0x452e51
xor esi, esi
push 0x484798
push ebx
push ebp
call fcn.00456229
add esp, 0xc
test eax, eax
je 0x452e71
push esi
push esi
push esi
push esi
push esi
call fcn.0045159d
add esp, 0x14
push dword [edi*8 + 0x488414]
push ebx
push ebp
call fcn.00456229
add esp, 0xc
test eax, eax
je 0x452e93
push esi
push esi
push esi
push esi
push esi
call fcn.0045159d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00460d5f
add esp, 0xc
jmp 0x452edb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x452edb
cmp ebp, 0xffffffff
je 0x452edb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x488414]
push dword [esi]
call fcn.00452890
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x455470
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00451e32
xor ebx, ebx
cmp dword [0x48ae7c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x455546
push 0x484888
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x455626
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x455626
push eax
call fcn.00451dc4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48ae7c], eax
call esi
push eax
call fcn.00451dc4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48ae80], eax
call esi
push eax
call fcn.00451dc4
mov dword [0x48ae84], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044c2a4
test eax, eax
pop ecx
pop ecx
je 0x455514
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045159d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x455546
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.00451dc4
cmp eax, ebx
pop ecx
mov dword [0x48ae8c], eax
je 0x455546
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00451dc4
pop ecx
mov dword [0x48ae88], eax
mov eax, dword [0x48ae88]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4555cb
cmp dword [0x48ae8c], ecx
je 0x4555cb
push eax
call fcn.00451e3b
push dword [0x48ae8c]
mov esi, eax
call fcn.00451e3b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4555cb
cmp edi, ebx
je 0x4555cb
call esi
cmp eax, ebx
je 0x455598
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455598
test byte [ebp - 0x18], 1
jne 0x4555cb
lea eax, [ebp - 0x10]
push eax
call fcn.0044c353
test eax, eax
pop ecx
je 0x4555b3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045159d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4555c2
or dword [ebp + 0x10], 0x200000
jmp 0x455606
or dword [ebp + 0x10], 0x40000
jmp 0x455606
mov eax, dword [0x48ae80]
cmp eax, dword [ebp - 8]
je 0x455606
push eax
call fcn.00451e3b
cmp eax, ebx
pop ecx
je 0x455606
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x455606
mov eax, dword [0x48ae84]
cmp eax, dword [ebp - 8]
je 0x455606
push eax
call fcn.00451e3b
cmp eax, ebx
pop ecx
je 0x455606
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48ae7c]
call fcn.00451e3b
cmp eax, ebx
pop ecx
je 0x455626
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x455628
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460d5f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00451e32
xor ebx, ebx
cmp dword [0x48b094], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x460e35
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x460f15
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x460f15
push eax
call fcn.00451dc4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48b094], eax
call esi
push eax
call fcn.00451dc4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48b098], eax
call esi
push eax
call fcn.00451dc4
mov dword [0x48b09c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044c2a4
test eax, eax
pop ecx
pop ecx
je 0x460e03
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045159d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x460e35
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00451dc4
cmp eax, ebx
pop ecx
mov dword [0x48b0a4], eax
je 0x460e35
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00451dc4
pop ecx
mov dword [0x48b0a0], eax
mov eax, dword [0x48b0a0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x460eba
cmp dword [0x48b0a4], ecx
je 0x460eba
push eax
call fcn.00451e3b
push dword [0x48b0a4]
mov esi, eax
call fcn.00451e3b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x460eba
cmp edi, ebx
je 0x460eba
call esi
cmp eax, ebx
je 0x460e87
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460e87
test byte [ebp - 0x18], 1
jne 0x460eba
lea eax, [ebp - 0x10]
push eax
call fcn.0044c353
test eax, eax
pop ecx
je 0x460ea2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045159d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x460eb1
or dword [ebp + 0x10], 0x200000
jmp 0x460ef5
or dword [ebp + 0x10], 0x40000
jmp 0x460ef5
mov eax, dword [0x48b098]
cmp eax, dword [ebp - 8]
je 0x460ef5
push eax
call fcn.00451e3b
cmp eax, ebx
pop ecx
je 0x460ef5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x460ef5
mov eax, dword [0x48b09c]
cmp eax, dword [ebp - 8]
je 0x460ef5
push eax
call fcn.00451e3b
cmp eax, ebx
pop ecx
je 0x460ef5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48b094]
call fcn.00451e3b
cmp eax, ebx
pop ecx
je 0x460f15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x460f17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401050
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401063
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.004063ae
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x401121
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x401091
push 0x5c
push ebx
call fcn.00405ee1
add esp, 8
test eax, eax
je 0x4010b5
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x4010de
cmp word [ebx + 2], 0x5c
jne 0x4010de
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00405df0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401101
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x4010f7
cmp word [ebx + 2], 0x3a
jne 0x4010f4
cmp word [ebx + 4], 0x5c
jne 0x4010f4
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x4010f7
push 0x5c
push ebx
call fcn.00405df0
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.004063ae
mov esi, eax
add esp, 8
test esi, esi
jne 0x40112b
push dword [ebp - 4]
call fcn.004063ec
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x401198
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.00405e9e
push esi
call fcn.00406452
add esp, 0x10
test eax, eax
je 0x401174
push esi
call fcn.0040656f
add esp, 4
test eax, eax
je 0x401161
mov edi, 1
jmp 0x401174
push esi
call fcn.00406452
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
push 0x5c
push eax
mov dword [ebp - 8], ebx
call fcn.00405df0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40120b
mov ecx, dword [ebp - 8]
test edi, edi
je 0x401132
jmp 0x40120b
mov edx, esi
sub edx, dword [ebp - 4]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4011a0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011b4
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4011d7
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x4011d7
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.00406452
add esp, 4
test eax, eax
je 0x40120b
push esi
call fcn.0040656f
add esp, 4
test eax, eax
je 0x4011f8
mov edi, 1
jmp 0x40120b
push esi
call fcn.00406452
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.004063ec
push dword [ebp - 4]
call fcn.004063ec
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401230
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
mov esi, dword [0x4171f8]
push edi
push 2
push 0x104
call fcn.004063ae
mov edi, eax
add esp, 8
test edi, edi
je 0x401277
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x40f1c0
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.004063ec
mov esi, dword [0x4171f8]
add esp, 4
cmp word [esi], 0
je 0x4012ab
push esi
call fcn.00406424
add esp, 4
push 0
push dword [0x4171f8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4012ab
push dword [0x4171f8]
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
ret
pop edi
mov eax, 4
pop esi
ret
Function at 0x4017c0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 1
push 0x250
call fcn.004063ae
mov ebx, eax
push 2
push 0x104
mov dword [ebp - 4], ebx
call fcn.004063ae
add esp, 0x10
mov edi, eax
test ebx, ebx
je 0x401992
test edi, edi
je 0x401992
push esi
mov esi, dword [ebp + 8]
mov ebx, edi
sub ebx, esi
mov ecx, esi
mov dword [ebp - 0x10], ebx
jmp 0x401810
movzx eax, word [ecx]
mov word [ebx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401810
push edi
call fcn.00401000
mov ecx, edi
add esp, 4
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401830
sub ecx, edx
sar ecx, 1
lea eax, [edi + ecx*2]
mov dword [ebp - 0xc], eax
lea ecx, [edi - 2]
jmp 0x401850
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x401850
mov eax, dword [0x40f1c8]
push dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [0x40f1cc]
push edi
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x401950
mov esi, dword [ebp - 4]
lea ebx, [esi + 0x2c]
jmp 0x401890
mov ecx, 0x40f1d0
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4018bd
test dx, dx
je 0x4018b9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4018bd
add eax, 4
add ecx, 4
test dx, dx
jne 0x401897
xor eax, eax
jmp 0x4018c2
sbb eax, eax
or eax, 1
test eax, eax
je 0x40192a
mov ecx, 0x40f1d4
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4018f6
test dx, dx
je 0x4018f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4018f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4018d0
xor eax, eax
jmp 0x4018fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40192a
mov edx, dword [ebp - 0xc]
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401906
test byte [esi], 0x10
push edi
je 0x401922
call fcn.004017c0
jmp 0x401927
call fcn.00406424
add esp, 4
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401890
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
jmp 0x401950
movzx eax, word [esi]
mov word [ebx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x401950
mov ecx, edi
pop esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401965
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jle 0x401988
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x401988
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [ebp - 4]
push edi
call fcn.004063ec
push ebx
call fcn.004063ec
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402050
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402087
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x26
pop esi
neg eax
sbb eax, eax
add eax, 0x40000002
ret 0xc
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x402099
mov eax, 0x40000001
pop esi
ret 0xc
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 0x40000002
ret 0xc

Function at 0x4020b0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4020e0
or eax, 0xffffffff
pop ecx
ret 0xc
mov eax, dword [esp]
pop ecx
ret 0xc

Function at 0x4020f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402127
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
pop esi
neg eax
sbb eax, eax
add eax, 0x40000004
ret 0xc
mov eax, dword [esp + 0x10]
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 0x40000004
ret 0xc
Function at 0x40c07b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416570]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00406fa0
mov dword [ebp - 0x14], eax
cmp dword [0x417f64], edi
jne 0x40c16c
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40c0f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c24c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40c24c
push 0x413070
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c24c
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x417f64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x417f68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x417f6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417f74], eax
test eax, eax
je 0x40c169
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417f70], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c191
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c184
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40c1a6
push 4
pop eax
jmp 0x40c24e
cmp dword [ebp - 0x14], edi
je 0x40c1a6
push dword [0x417f64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c18b
mov eax, dword [0x417f70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40c204
cmp dword [0x417f74], esi
je 0x40c204
push eax
call ebx
push dword [0x417f74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c204
test eax, eax
je 0x40c204
call ecx
test eax, eax
je 0x40c1f9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1f9
test byte [ebp - 8], 1
jne 0x40c204
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40c234
mov eax, dword [0x417f68]
cmp eax, esi
je 0x40c231
push eax
call ebx
test eax, eax
je 0x40c231
call eax
mov edi, eax
test edi, edi
je 0x40c231
mov eax, dword [0x417f6c]
cmp eax, esi
je 0x40c231
push eax
call ebx
test eax, eax
je 0x40c231
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x417f64]
call ebx
test eax, eax
je 0x40c24c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40c24e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065ce
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7f79719f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x283141d6
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219