joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476cc7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x476cda
xor eax, eax
jmp 0x476e90
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x476cec
xor eax, eax
jmp 0x476e8f
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x476e8c
add esi, ebx
cmp dword [esi], 0x4550
jne 0x476e8c
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x476e8c
test al, 2
je 0x476e8c
cmp word [esi + 0x14], 0xe0
jne 0x476e8c
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00473af8
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x476e8c
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x476d74
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x476d6e
cmp esi, dword [ebp + 0xc]
jae 0x476d6e
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x476d60
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x476daf
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x476e8c
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.00410296
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x476e87
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x476e12
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x476e56
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.00410296
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 8], ecx
jae 0x476e56
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 8]
imul eax, dword [ebp - 8]
jmp 0x476e6c
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x476e02
xor eax, eax
inc eax
jmp 0x476e8e
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x478a5b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x7c]
push 0x132f
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0x70]
mov edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x478b15
test edi, edi
jl 0x478b15
cmp edi, dword [esi + 0x78]
jge 0x478b15
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x478aad
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x7c], edi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x478ac4
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
je 0x478ad8
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x49bf04
lea ecx, [ebp - 4]
call fcn.004403c3
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.00435dd0
push str..Select
lea ecx, [ebp - 4]
call fcn.00435dd0
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.004380d1
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0043092f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4798c2
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4798ed
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x18]
call edi
push 5
push dword [esi + 0x18]
call edi
pop edi
pop esi
ret
Function at 0x47f5e8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x47f606
cmp ax, 0x42
je 0x47f606
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x47f78b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop ebp
ret
Function at 0x482f3e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x49f550
call fcn.00480e58
mov edi, 0x94
mov eax, edi
call fcn.00480210
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4adc00], ecx
mov eax, dword [esi + 4]
mov dword [0x4adc0c], eax
mov edx, dword [esi + 8]
mov dword [0x4adc10], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4adc04], esi
cmp ecx, 2
je 0x482f9e
or esi, 0x8000
mov dword [0x4adc04], esi
shl eax, 8
add eax, edx
mov dword [0x4adc08], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x482fd9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x482fd9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x482ff1
cmp eax, 0x20b
je 0x482fde
mov dword [ebp - 0x1c], esi
jmp 0x483005
cmp dword [ecx + 0x84], 0xe
jbe 0x482fd9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x482fff
cmp dword [ecx + 0x74], 0xe
jbe 0x482fd9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004873f9
pop ecx
test eax, eax
jne 0x483019
push 0x1c
call fcn.00482f1a
pop ecx
call fcn.00485aba
test eax, eax
jne 0x48302a
push 0x10
call fcn.00482f1a
pop ecx
call fcn.0048d504
mov dword [ebp - 4], esi
call fcn.00484806
test eax, eax
jge 0x483043
push 0x1b
call fcn.00482ef5
pop ecx
call fcn.0048d465
mov dword [0x4ae5b0], eax
call fcn.0048d2fb
mov dword [0x4adbf4], eax
call fcn.0048d265
test eax, eax
jge 0x483068
push 8
call fcn.00482ef5
pop ecx
call fcn.0048d032
test eax, eax
jge 0x483079
push 9
call fcn.00482ef5
pop ecx
push 1
call fcn.00483319
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x48308f
push eax
call fcn.00482ef5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
call fcn.0048cfec
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4830b0
movzx eax, word [ebp - 0x40]
jmp 0x4830b3
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b4d2
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4830d1
push edi
call fcn.00483446
call fcn.00483468
jmp 0x483103
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00480e93
ret
Function at 0x483383
Capabilities:
Terminate process

Disassembly:
push 8
push 0x49f588
call fcn.00480e58
push 8
call fcn.00484e16
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4adc40], esi
jne 0x4833b7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4adc3c], esi
mov al, byte [ebp + 0x10]
mov byte [0x4adc38], al
cmp dword [ebp + 0xc], edi
jne 0x483401
cmp dword [0x4ae5a8], edi
je 0x4833f1
mov eax, dword [0x4ae5a4]
sub eax, 4
mov dword [0x4ae5a4], eax
cmp eax, dword [0x4ae5a8]
jb 0x4833f1
mov eax, dword [eax]
cmp eax, edi
je 0x4833d2
call eax
jmp 0x4833d2
push 0x4ab0c0
mov eax, 0x4ab0b8
call fcn.00483301
pop ecx
push 0x4ab0cc
mov eax, 0x4ab0c4
call fcn.00483301
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x483432
cmp dword [ebp + 0x10], edi
jne 0x483440
mov dword [0x4adc40], esi
push dword [ebp + 8]
call fcn.004832bf
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x48343f
push 8
call fcn.00484d61
pop ecx
ret
call fcn.00480e93
ret
Function at 0x48ccd8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4ac30c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4ac320]
je 0x48cd0d
inc eax
cmp eax, 0x13
jb 0x48ccfe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4ac320]
jne 0x48ce33
mov eax, dword [0x4adbf8]
cmp eax, 1
je 0x48ce0b
cmp eax, edx
jne 0x48cd3d
cmp dword [0x4abb5c], 1
je 0x48ce0b
cmp ecx, 0xfc
je 0x48ce33
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x48cd73
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0047ff80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004852d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48cda7
mov eax, edi
push eax
call fcn.004852d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a59a8
push edi
call fcn.0048f2d0
add esp, 0x10
push edi
call fcn.004852d0
push dword [esi + 0x4ac324]
mov ebx, eax
call fcn.004852d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00480210
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0047ff80
push edi
push ebx
call fcn.0047ff90
push 0x4a5988
push ebx
call fcn.0047ff90
push dword [esi + 0x4ac324]
push ebx
call fcn.0047ff90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00490ae8
add esp, 0x2c
jmp 0x48ce33
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4ac324]
push dword [esi]
call fcn.004852d0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0048d90b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x48d465
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4ae108]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x48d4a5
call esi
test eax, eax
je 0x48d48a
mov dword [0x4ae108], 1
jmp 0x48d4aa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x48d4a1
mov dword [0x4ae108], 2
jmp 0x48d4b3
xor eax, eax
jmp 0x48d501
cmp eax, 1
jne 0x48d4ae
call esi
jmp 0x48d501
cmp eax, 2
jne 0x48d4a1
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x48d4f9
lea eax, [esi + esi]
push eax
call fcn.00481644
mov ebp, eax
test ebp, ebp
pop ecx
je 0x48d4f9
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x48d4fd
push ebp
call fcn.004811d7
pop ecx
xor eax, eax
jmp 0x48d4ff
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x490ae8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4ae194], ebx
push esi
push edi
jne 0x490b68
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x490ba3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4a7454
push edi
call esi
test eax, eax
mov dword [0x4ae194], eax
je 0x490ba3
push 0x4a7444
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4ae198], eax
call esi
cmp dword [0x4adc00], 2
mov dword [0x4ae19c], eax
jne 0x490b68
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4ae1a4], eax
je 0x490b68
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4ae1a0], eax
mov eax, dword [0x4ae1a0]
test eax, eax
je 0x490bad
call eax
test eax, eax
je 0x490b94
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4ae1a4]
test eax, eax
je 0x490b94
test byte [ebp - 8], 1
jne 0x490bad
cmp dword [0x4adc0c], 4
jb 0x490ba7
or byte [ebp + 0x12], 0x20
jmp 0x490bcc
xor eax, eax
jmp 0x490bdc
or byte [ebp + 0x12], 4
jmp 0x490bcc
mov eax, dword [0x4ae198]
test eax, eax
je 0x490bcc
call eax
mov ebx, eax
test ebx, ebx
je 0x490bcc
mov eax, dword [0x4ae19c]
test eax, eax
je 0x490bcc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4ae194]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c4f0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x45c68c
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3c000]
push edi
or ebp, 0xffffffff
jmp 0x45c51a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45c521
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c510
mov eax, 1
add ebx, ebx
jne 0x45c533
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45c544
jne 0x45c554
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c554
dec eax
add ebx, ebx
jne 0x45c550
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45c528
xor ecx, ecx
sub eax, 3
jb 0x45c56c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45c5de
sar eax, 1
mov ebp, eax
jmp 0x45c577
add ebx, ebx
jne 0x45c577
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45c584
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45c5a8
inc ecx
add ebx, ebx
jne 0x45c594
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45c589
jne 0x45c5a5
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45c589
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45c5c8
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45c5b9
jmp 0x45c516
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45c5c8
add edi, ecx
jmp 0x45c516
pop esi
mov edi, esi
mov ecx, 0xf5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45c5e6
cmp byte [edi], 1
jne 0x45c5e6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x45c5eb
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45c65a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c900]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c950]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45c618
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c954]
or eax, eax
je 0x45c654
mov dword [ebx], eax
add ebx, 4
jmp 0x45c635
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x45c68b
cmp al, 0xef
ja 0x45c67e
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x45c660
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x45c66d
popal
jmp 0x403858
Function at 0x402f10
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00521000
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00403183
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xf12794
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf1279e
pushal
call 0xf127a4
pop ebp
sub ebp, 0x10
sub ebp, 0xb12794
mov cl, 0
jmp 0xf127ba
mov eax, 0xb12794
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d5
mov edx, 0xb505755d
xor byte [eax], dl
inc eax
dec ecx
jne 0xf127d1
jmp 0xf127e4
dec edx
retf 0x90d6
salc
nop
salc
aam 0x61
pop ebp
pop ebp
pop ebp
fcomp qword [ebp + 0x5e5d5d5d]
nop
in eax, 0x5b
pop ebp
pop ebp
pop ebp
out 0x75, eax
pop ebp
pop ebp
pop ebp
stosb byte es:[edi], al
mov edi, 0xdcd6955e
push ecx
pop ebp
pop ebp
pop ebp
pop esi
cwde
sar byte [ecx], 1
jns 0xf127af
aam 0x59
jns 0xf127e2
cmp dword [ecx - 0x5f], edi
aam 0x59
jns 0xf1284e
popfd
pop ds
jl 0xf1287a
xor eax, 0x5dd2b989
pop esp
jno 0xf1289e
xor eax, 0xb987dd50
mov ch, 0x58
pop ebp
pop ebp
xchg dword [ecx + 0x5d5d58b5], edi
pop ebp
mov ah, 0x6d
pop ebp
pop ebp
pop ebp
or al, dl
xor dword [ecx + 0x5d], edi
salc
fcom dword [ebp + 0x5d]
pop ebp
pop ebp
salc
enter 0x5d51, 0x5d
pop ebp
salc
ror byte [ebp + 0x5d], 1
pop ebp
pop ebp
pushfd
mov ah, 0x5f
insb byte es:[edi], dx
pop edi
ficomp word [edi - 0x27adeba7]
test eax, 0xd6a2a2a2
jno 0xf128d6
sar byte [ecx], 1
jns 0xf128ba
lahf
push ecx
pop ebp
salc
sar dword [ecx + 0x59], 1
pop ebp
pop ebp
pop ebp
xor eax, 0x5d7c1f9d
xor eax, 0x5dd2b989
pop esp
jno 0xf128f1
or al, 0xb5
pop eax
pop ebp
pop ebp
pop ebp
mov ah, 0x10
pop edi
pop ebp
pop ebp
sar byte [ecx], 1
jns 0xf12828
aam 0x71
jns 0xf1285b
xor dword [ecx + 0x5d], edi
mov byte [0x28a25128], al
push ebp
mov ch, 0x25
pop ebp
pop ebp
pop ebp
salc
and eax, 0xd65d5d5d
loopne 0xf128f1
pop ebp
pop ebp
pop ebp
outsb dx, byte [esi]
xchg esp, eax
fsubr qword [edi + 0x2b076a91]
fsubr qword [edi + 0x2b076a91]
outsb dx, byte [esi]
invalid
aad 0x15
pop ebp
pop ebp
pop ebp
cmp edx, esi
inc ecx
frstor dword fs:[esi + 0x47d952b5]
pop ebp
pop ebp
pop ebp
frstor dword [esi + 0x4cd952b4]
pop ebp
pop ebp
pop ebp
cmp ebx, esp
cmpsb byte [esi], byte es:[edi]
mov byte [0x48d95278], al
fsub qword [esi - 0x26ad875e]
dec eax
invalid
pop ebp
pop ebp
pop ebp
sbb al, 0xb4
xchg ecx, eax
mov byte [0x1174a2a2], al
pop esp
ficomp word [eax + ebx*2 - 0x4ba64a22]
loopne 0xf12895
mov byte [0x640974a2], al
pop edi
ficomp word [ebx + ebx*2 - 0x21a64822]
mov ch, 0x58
mov ah, 0xf6
mov byte [0x71d6a2a2], al
jns 0xf128db
cmp dword [ecx + 0x59], edi
lahf
push ecx
pop ebp
or dh, dl
mov cl, 0xb
or cl, byte [eax]
salc
sub byte [ecx - 0x2a], dl
and byte [ebp - 0x5f], dl
out dx, eax
fst st(7)
pop ebx
fcomp qword [ebx + 0x5d5d5d5c]
aad 0x5a
fcomp qword [edx + 0x5d5d5d5c]
out 0x5f, al
pop ebp
pop ebp
pop ebp
pop edi
invalid
Function at 0x416f1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x416f76
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x416f76
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x416f68
cmp esi, ecx
jae 0x416f76
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x416f56
cmp esi, ecx
jae 0x416f76
cmp word [esi], 0
je 0x416f76
mov eax, esi
jmp 0x416f78
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4