joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42749b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x444190]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4274de
cmp word [esi], dx
jne 0x4274de
or byte [edi + eax + 0x28], 4
jmp 0x4274e3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x427636
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x427616
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x427525
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42755b
cmp eax, edx
jae 0x427567
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4274fd
jmp 0x427636
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427612
cmp dword [ebp - 0x14], 0
je 0x427612
mov eax, dword [ebx*4 + 0x444190]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4275ea
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4275b3
mov word [esi], cx
jmp 0x4275e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x444190]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x444190]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x444190]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x427636
pop ebx
cmp word [ebp - 4], bx
jne 0x4275fb
cmp esi, dword [ebp + 0xc]
jne 0x4275fb
mov word [esi], bx
jmp 0x427633
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00428243
add esp, 0x10
cmp word [ebp - 4], bx
je 0x427636
push 0xd
jmp 0x42762f
mov ecx, dword [ebx*4 + 0x444190]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42762d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x427636
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x428026
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427cc8

Function at 0x428031
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427e57
Function at 0x42acc8
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 0x42ad65
push ebx
push esi
call fcn.0042ac91
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.004252d6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42ad12
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42ad64
push edi
push eax
call fcn.00425150
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42ad32
call fcn.00423fbb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42ad63
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004252d6
add esp, 0x20
test eax, eax
jne 0x42ad51
push edi
call fcn.00423fbb
jmp 0x42ad59
push ebx
call fcn.00423fbb
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 0x430e95
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00430e11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43100d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43100d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x430fbc
jg 0x430eee
test eax, eax
je 0x430fb2
push 1
push 0x1000
call fcn.004240c8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x430f14
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x430fa9
push 0x8000
push ebx
call fcn.004211f5
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x430f40
jg 0x430f3b
cmp ecx, 0x1000
jb 0x430f40
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00428b8e
add esp, 0x10
cmp eax, 0xffffffff
je 0x430f85
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x430f3b
jl 0x430f6c
test ecx, ecx
jne 0x430f2d
push dword [ebp - 0xc]
push ebx
call fcn.004211f5
push esi
call fcn.00423fbb
add esp, 0xc
xor edi, edi
jmp 0x43101e
cmp byte [edi + 0x24], 0
je 0x430f9c
cmp dword [edi + 0x20], 5
jne 0x430f9c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x430fa7
mov edi, dword [edi + 0x18]
jmp 0x430fa9
xor edi, edi
push esi
call fcn.00423fbb
pop ecx
jmp 0x43101e
test ecx, ecx
jg 0x430f7e
jl 0x430fbc
test eax, eax
jae 0x430f7e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00428243
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x430fdf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x430f7e
jmp 0x431016
push ebx
call fcn.0042b132
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x430f7e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43101e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43101b
mov edi, dword [edi + 0x18]
jmp 0x43101e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00428243
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4324c0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x412170], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x4010cd
call ebx
test eax, eax
jns 0x4010c3
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x41216c], eax
mov dword [0x412170], 1
mov eax, dword [0x41216c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4010e9
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x401119
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40110f
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x401104
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x401109
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x401118
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x403b1d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], ecx
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
lea ebx, [esi + esi]
push ebx
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0x10
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, 0x25c
push eax
push esi
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push str.labels
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403d9c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d4
mov eax, dword [0x412120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x47c], ecx
pop ecx
mov esi, str.HTML_Files__.HTML_
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp - 0x270], ax
lea eax, [ebp - 0x26e]
push eax
movsw word es:[edi], word [esi]
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
mov edi, str.License.html
push edi
lea eax, [ebp - 0x270]
push eax
call esi
xor eax, eax
push ebx
mov word [ebp - 0x478], ax
xor ebx, ebx
lea eax, [ebp - 0x476]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x478]
push eax
call esi
push 0x54
lea eax, [ebp - 0x4d0]
push ebx
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [ebp - 0x47c]
mov eax, dword [esi + 4]
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x4c8], eax
mov eax, 0x104
mov dword [ebp - 0x4b4], eax
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x4b8], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x4b0], eax
add esp, 0xc
lea eax, [ebp - 0x4d4]
push eax
mov dword [ebp - 0x4d4], 0x58
mov dword [ebp - 0x498], str.html
mov dword [ebp - 0x4a0], 0x802
call fcn.00402c1b
test eax, eax
je 0x403eb7
push ebx
lea eax, [ebp - 0x270]
push eax
add esi, 0x464
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040a788
leave
ret 0x10
Function at 0x404040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x23c
mov eax, 0x40b352
call fcn.0040a8e9
movzx eax, word [ebp + 8]
mov esi, dword [0x41225c]
push pe_nt_image_headers32
push eax
push esi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4041c3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4041c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4041c3
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4041c3
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x224], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x404137
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call fcn.00402abf
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x220]
and dword [ebp - 4], 0
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x404112
and dword [ebp - 0x21c], 0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x4041b0
push dword [ebp - 0x114]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
jmp 0x4041b0
mov ecx, 0x1234
cmp cx, ax
jne 0x4041b0
or dword [ebp - 0x244], 0xffffffff
push 3
lea eax, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x218], eax
call fcn.00402abf
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x240], eax
cmp eax, ecx
je 0x40418a
push eax
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x220]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x4041b0
and dword [ebp - 0x21c], 0
add esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jne 0x4040a5
mov eax, dword [ebp - 0x21c]
call fcn.0040a933
ret 4
Function at 0x40478b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x412120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, 0xcf
push ebx
mov esi, ecx
call fcn.00404040
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [edi], 1
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x414]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclTitle
call fcn.00403b1d
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItemTextW]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclText1
call fcn.00403b1d
push eax
push 0xcf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 0xd0
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclText2
call fcn.00403b1d
push eax
push 0xd0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 1
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push 0x40c89c
call fcn.00403b1d
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 2
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push 0x40c890
call fcn.00403b1d
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040a788
leave
ret 0x10
Function at 0x4048ec
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x412120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0xce
mov esi, ecx
call fcn.00404040
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [edi], 1
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x414]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclTitle
call fcn.00403b1d
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 0xcf
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclText1
call fcn.00403b1d
push eax
push 0xcf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 0xd0
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclText2
call fcn.00403b1d
push eax
push 0xd0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 1
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push 0x40c89c
call fcn.00403b1d
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 2
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push 0x40c890
call fcn.00403b1d
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040a788
leave
ret 0x10
Function at 0x40a4c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x412250], 0
push esi
push edi
jne 0x40a436
call fcn.0040a3a2
test eax, eax
je 0x40a47b
mov eax, dword [0x412250]
cmp eax, 1
jne 0x40a457
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a47b
jmp 0x40a4bd
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40a4bd
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40a47f
xor eax, eax
jmp 0x40a4bd
mov eax, dword [esi]
push dword [0x412250]
call edi
mov edi, eax
test edi, edi
je 0x40a4a1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a4bd
lea edi, [esi + 0xff0]
push esi
push dword [0x412250]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40a4a7
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a422

Function at 0x40a788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412120]
jne 0x40a792
repz ret
jmp fcn.0040adba
Function at 0x662152e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.6620d3f6
and dword [ebp - 4], 0
cmp dword [0x66242a40], 0
mov ebx, eax
jne 0x66215399
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6621544a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x6621544a
push eax
call fcn.6620d384
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66242a40], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66242a44], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66242a48], eax
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a50], eax
test eax, eax
je 0x66215399
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a4c], eax
mov eax, dword [0x66242a4c]
cmp eax, ebx
je 0x662153f1
cmp dword [0x66242a50], ebx
je 0x662153f1
push eax
call fcn.6620d3ff
push dword [0x66242a50]
mov esi, eax
call fcn.6620d3ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x662153f1
test edi, edi
je 0x662153f1
call esi
test eax, eax
je 0x662153e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x662153e8
test byte [ebp - 0xc], 1
jne 0x662153f1
or dword [ebp + 0x10], 0x200000
jmp 0x6621542a
mov eax, dword [0x66242a44]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x6621542a
mov eax, dword [0x66242a48]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66242a40]
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621544a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6621544c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x5a0e1f95
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x430d6c57
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219