joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
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 al, bl
loop 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414fda
sub esp, 0xffffff80
jmp 0x40a764
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
add byte [esi + edi], 0x32
call ebx
add byte [esi + edi], 0xe2
call ebx
xor byte [esi + edi], 0xd5
call ebx
add byte [esi + edi], 0x78
call ebx
add byte [esi + edi], 0x3d
call ebx
add byte [esi + edi], 0xa2
call ebx
add byte [esi + edi], 0xae
call ebx
xor byte [esi + edi], 0xda
call ebx
add byte [esi + edi], 0xb7
call ebx
add byte [esi + edi], 0xe0
call ebx
xor byte [esi + edi], 0x4a
call ebx
add byte [esi + edi], 0x3e
call ebx
add byte [esi + edi], 4
call ebx
add byte [esi + edi], 0x3a
call ebx
add byte [esi + edi], 0xb2
call ebx
add byte [esi + edi], 0x71
call ebx
xor byte [esi + edi], 0x5a
call ebx
add byte [esi + edi], 0x99
call ebx
add byte [esi + edi], 0x63
call ebx
add byte [esi + edi], 0xce
call ebx
add byte [esi + edi], 0x37
call ebx
add byte [esi + edi], 0x37
call ebx
add byte [esi + edi], 0xa5
call ebx
add byte [esi + edi], 0x9b
call ebx
add byte [esi + edi], 0xbb
call ebx
xor byte [esi + edi], 0xc
call ebx
add byte [esi + edi], 0xc6
call ebx
add byte [esi + edi], 0x73
call ebx
add byte [esi + edi], 0x95
call ebx
add byte [esi + edi], 0xf7
call ebx
add byte [esi + edi], 0xd8
call ebx
xor byte [esi + edi], 4
call ebx
xor byte [esi + edi], 0x49
call ebx
xor byte [esi + edi], 0x87
call ebx
add byte [esi + edi], 0xa7
call ebx
add byte [esi + edi], 0xa6
call ebx
xor byte [esi + edi], 0xa
call ebx
add byte [esi + edi], 0x23
call ebx
add byte [esi + edi], 0x9a
call ebx
xor byte [esi + edi], 0xf7
call ebx
add byte [esi + edi], 0x72
call ebx
xor byte [esi + edi], 0x5a
call ebx
add byte [esi + edi], 0x12
call ebx
xor byte [esi + edi], 0x8b
call ebx
add byte [esi + edi], 0x4f
call ebx
xor byte [esi + edi], 0xb8
call ebx
add byte [esi + edi], 7
call ebx
add byte [esi + edi], 0x2e
call ebx
add byte [esi + edi], 0xce
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x45a8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x407db7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x407dc6
pop dword [ebp - 0x3c]
mov eax, 0x407dc6
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x69ec13cf
sub dword [ebp - 0x4c], 0x1b99ce84
mov dword [ebp - 0x48], 0x73dc38b0
add dword [ebp - 0x48], 0xbe571395
mov dword [ebp - 0x44], 0x9a5a1475
add dword [ebp - 0x44], 0xb1f22fb9
mov dword [ebp - 0x40], 0xd39e6916
sub dword [ebp - 0x40], 0xd39e6916
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xcecf51e6
add eax, 0x31717e66
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xf61e693d
sub dword [ebp - 0x4c], 0x81abffe7
mov dword [ebp - 0x48], 0x15e978aa
sub dword [ebp - 0x48], 0xd47d1735
mov dword [ebp - 0x44], 0xbc0582b
add dword [ebp - 0x44], 0x57af1441
mov dword [ebp - 0x40], 0x8791b162
sub dword [ebp - 0x40], 0x8791b162
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x5b1ffd81
add eax, 0xa520d2c7
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa3d
push 0
call eax
mov ecx, 0x4cc1
mov ebx, eax
mov edi, 0xbd7e6ca3
add edi, 0x42c3435d
add edi, dword [ebp - 0x3c]
mov edx, 0xa9d82b78
sub dword [ebp - 0xc], 0x1d529d18
mov esi, dword [edi]
sub dword [ebp - 0x1c], 0x70296aed
sub esi, edx
xor dword [ebp - 0x34], 0x3f2ba1fe
mov dword [ebx], esi
sub dword [ebp - 0x20], edx
add ebx, 4
add edi, 4
loop 0x407ed7
add eax, 0xc366ce3b
sub eax, 0xc365a864
mov ebx, eax
add eax, 0x8af4b72
add eax, 0xf750b493
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4035ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x4035fc
pop dword [ebp - 0x1c]
mov eax, 0x4035fc
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2eb64cd3
sub dword [ebp - 0x2c], 0xe0640788
mov dword [ebp - 0x28], 0xebd00137
add dword [ebp - 0x28], 0x46634b0e
mov dword [ebp - 0x24], 0x2bab32bb
add dword [ebp - 0x24], 0x20a11173
mov dword [ebp - 0x20], 0x7e414e09
add dword [ebp - 0x20], 0x81beb1f7
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xbf607e0d
add dword [ebp - 0x2c], 0xb511eb49
mov dword [ebp - 0x28], 0xa5bbed00
add dword [ebp - 0x28], 0x9bb07475
mov dword [ebp - 0x24], 0xa12f4e3e
add dword [ebp - 0x24], 0xc2401e2e
mov dword [ebp - 0x20], 0xc9f60050
add dword [ebp - 0x20], 0x3609ffb0
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xd9e11fca
add eax, 0x265f5056
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ffc9
push 0
call eax
mov ecx, 0x1c92072f
add ecx, 0xe36e6203
xor edx, edx
add edx, eax
mov ebx, 0x5e5c0a72
add ebx, 0xa1e4bd8e
add ebx, dword [ebp - 0x1c]
mov esi, 0x2c8cee0d
mov edi, dword [ebx]
sub dword [ebp - 0x10], ebx
sub edi, esi
xor dword [ebp - 0x10], 0xf779b4ba
mov dword [edx], edi
add dword [ebp - 0x14], 0x19759bf3
add edx, 0xc5fc5153
sub edx, 0xc5fc514f
add ebx, 0x2f24b0e5
sub ebx, 0x2f24b0e1
loop 0x403710
add eax, 0x4cfaaa67
sub eax, 0x4cf912cc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004035ed
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004035ed
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret
Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8
Function at 0x40a050
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x81cd68]
jne 0x40a05a
repz ret
jmp fcn.0040c2cc

Function at 0x40b662
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x81cd68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040583e
and dword [ebp - 0x14], 0
cmp dword [0x8202e0], 0
mov dword [ebp - 0x18], eax
jne 0x40b715
push 0x402adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b7bd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ad0
push ebx
call edi
test eax, eax
je 0x40b7bd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ac0
push ebx
mov dword [0x8202e0], eax
call edi
push eax
call esi
push 0x402aac
push ebx
mov dword [0x8202e4], eax
call edi
push eax
call esi
push 0x402a90
push ebx
mov dword [0x8202e8], eax
call edi
push eax
call esi
mov dword [0x8202f0], eax
test eax, eax
je 0x40b715
push 0x402a78
push ebx
call edi
push eax
call esi
mov dword [0x8202ec], eax
mov eax, dword [0x8202ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b76e
cmp dword [0x8202f0], ecx
je 0x40b76e
push eax
call esi
push dword [0x8202f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b76e
test ebx, ebx
je 0x40b76e
call edi
test eax, eax
je 0x40b765
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b765
test byte [ebp - 8], 1
jne 0x40b76e
or dword [ebp + 0x10], 0x200000
jmp 0x40b7a1
mov eax, dword [0x8202e4]
cmp eax, dword [ebp - 0x18]
je 0x40b7a1
push eax
call esi
test eax, eax
je 0x40b7a1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b7a1
mov eax, dword [0x8202e8]
cmp eax, dword [ebp - 0x18]
je 0x40b7a1
push eax
call esi
test eax, eax
je 0x40b7a1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8202e0]
call esi
test eax, eax
je 0x40b7bd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b7bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a050
leave
ret
Function at 0x804640
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1820
call fcn.0040c510
cmp dword [0x266225c], 0x37
jne 0x8046ff
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403298
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x4032d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x1020]
push edx
push 0
push 0x403364
push 0x403394
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4033b4
push 0x4033bc
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x2662260]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x8253ec]
mov byte [eax + esi], dl
add esp, 0x1820
ret

Function at 0x804730
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [0x81cf44]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x81cf40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x81cf48]
mov dword [esp + 0x20], edx
mov edx, dword [0x81cf4c]
push edi
mov dword [esp + 0x14], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov ebp, 0x20
jmp 0x804784
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 5
add ecx, dword [esp + 0x18]
mov edx, eax
shl edx, 4
add edx, dword [esp + 0x1c]
add eax, edi
xor ecx, edx
xor ecx, eax
sub esi, ecx
mov ecx, esi
shl ecx, 4
mov dword [0x265820c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
cmp dword [0x266225c], 0x1be
lea ebx, [edi + esi]
jne 0x8047d9
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x24]
mov dword [0x2658210], 0xff6b3619
xor eax, ebx
xor dword [esp + 0x10], eax
mov dword [0x2658214], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add edi, 0x61c88647
dec ebp
jne 0x804780
cmp dword [0x266225c], 0x8d4
jne 0x80483f
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x60
ret 4
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x60
ret 4
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x28024000
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x775a37dc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4010d3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x4013cf
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x404110]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.PMSDigital
push 0x3f
call sub.user32.dll_GetSystemMetrics
cmp eax, 3
jne 0x401143
push 0x400000
nop
nop
add eax, 0x1d
push eax
nop
pop eax
and eax, eax
jne 0x40112d
sub eax, 0xc
xor eax, eax
push 0
call fcn.004015df
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push 0x258
push dword [ebp + 8]
call sub.user32.dll_LoadMenuA
push eax
push dword [ebp - 0x50]
call sub.user32.dll_SetMenu
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push dword [ebp - 0x54]
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.MyApp
push str.PMSDigital
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call sub.user32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4011f4
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4011cd
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x40122e
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0x14], 0
push dword [ebp - 0x14]
call sub.user32.dll_GetDC
mov dword [ebp + 0xc], eax
push 0
call sub.user32.dll_GetSystemMetrics
mov dword [ebp - 4], eax
add eax, eax
mov dword [ebp - 0xc], eax
push 1
call sub.user32.dll_GetSystemMetrics
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [0x404010], eax
push dword [ebp + 0xc]
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
push dword [0x404010]
push dword [ebp - 0x10]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0
push dword [ebp - 0x10]
call sub.gdi32.dll_BitBlt
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
call sub.gdi32.dll_BitBlt
push esi
mov esi, dword [ebp - 4]
push 0xcc0020
push 0
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0
push dword [ebp + 0xc]
call sub.gdi32.dll_BitBlt
push 0x14
call sub.kernel32.dll_Sleep
sub esi, 8
jns 0x4012cf
pop esi
push 0
push dword [ebp + 0xc]
push 0xf
push 0
call sub.user32.dll_SendMessageA
push dword [0x404010]
call sub.gdi32.dll_DeleteObject
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call sub.gdi32.dll_SelectObject
push dword [ebp - 0x10]
call sub.gdi32.dll_DeleteDC
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call sub.user32.dll_ReleaseDC
leave
ret 8

Function at 0x401472
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, str.GetLastError
add eax, dword [ebp + 0x10]
push eax
mov eax, 0x40400c
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, 0x4040fe
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, 0x404023
add eax, dword [ebp + 0x10]
push eax
mov eax, 0x40400c
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, 0x4040fe
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x4014bb
push eax
jmp 0x4014c9
cmp eax, 0x7f
jne 0x4014c7
push 0x100
jmp 0x4014c9
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, 0
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
inc edx
inc edx
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
push edx
add dword [esp], 0x4530ec21
pop edx
xor dword [esi], edx
add esi, 4
loop 0x4014d7
pop eax
popal
leave
ret 0x10