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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5301d4], 0
jne 0x406cbc
push 0
push 0x4039f4
mov eax, dword [0x4f8878]
push eax
xor ecx, ecx
mov cl, byte [0x4f0c14]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 0xec
push ecx
mov edx, dword [0x506550]
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x5301d4], eax
push 5
mov eax, dword [0x5301d4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x5301d4]
push ecx
push 0x5dc
call fcn.00410d96
add esp, 8
xor eax, eax
pop ebp
ret

Function at 0x4090fb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 5
mov eax, dword [0x5301cc]
imul eax, eax, 0x708
xor ecx, ecx
mov cl, byte [eax + 0x513f92]
test ecx, ecx
je 0x40914f
mov edx, dword [0x5301cc]
imul edx, edx, 0x708
add edx, 0x513f96
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [0x5301cc]
imul ecx, ecx, 0x708
mov dword [ecx + 0x513fa0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bb63
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov byte [ebp - 8], 0xff
push 0x4e5424
mov eax, dword [ebp + 8]
push eax
call fcn.00411e94
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40bbfd
mov ecx, dword [ebp - 4]
push ecx
call fcn.00411de6
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040c0fd
add esp, 4
mov byte [ebp - 0xc], al
cmp byte [ebp - 0xc], 1
je 0x40bbbe
cmp byte [ebp - 0xc], 2
je 0x40bbd4
jmp 0x40bbfb
mov eax, dword [ebp + 8]
push eax
call fcn.00411dbc
add esp, 4
test eax, eax
jne 0x40bbd2
mov byte [ebp - 8], 0
jmp 0x40bbfb
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40bbfb
mov edx, dword [ebp + 8]
push edx
call fcn.00411dbc
add esp, 4
test eax, eax
jne 0x40bbfb
mov byte [ebp - 8], 0
jmp 0x40bc01
mov byte [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40c0fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40c151
mov ecx, dword [ebp - 4]
and ecx, 0x1916
test ecx, ecx
je 0x40c129
mov byte [ebp - 8], 3
jmp 0x40c14f
mov edx, dword [ebp - 4]
and edx, 1
test edx, edx
je 0x40c139
mov byte [ebp - 8], 2
jmp 0x40c14f
mov eax, dword [ebp - 4]
and eax, 0xa0
test eax, eax
je 0x40c14b
mov byte [ebp - 8], 1
jmp 0x40c14f
mov byte [ebp - 8], 0
jmp 0x40c155
mov byte [ebp - 8], 0xff
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40cc4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 1
mov eax, dword [0x513f88]
push eax
call fcn.00410d1b
add esp, 4
mov dword [0x4f5860], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00411f9c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40ccc2
cmp dword [0x4f5860], 0
jne 0x40ccb2
mov eax, dword [0x513f88]
push eax
call fcn.00410d1b
add esp, 4
push 0x1f4
call fcn.004106d0
add esp, 4
jmp 0x40cc8c
mov ecx, dword [0x4f5860]
sub ecx, 1
neg ecx
sbb ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40dae2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
call fcn.00410161
mov byte [0x530190], al
call fcn.00410130
neg eax
sbb eax, eax
neg eax
add eax, 1
mov byte [0x530191], al
cmp dword [0x5301a0], 0
jne 0x40db26
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040a5b0
add esp, 4
jmp 0x40db30
push 0
call fcn.0040a5b0
add esp, 4
call fcn.0040dc95
mov eax, dword [ebp + 8]
push eax
call fcn.0040db9f
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040dc0c
add esp, 8
test eax, eax
jne 0x40db66
push 0x6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 4], eax
jmp 0x40db98
push str.Initialize_error.
push 0x320
call fcn.0040bb00
add esp, 8
cmp dword [0x5301a0], 0
jne 0x40db91
call fcn.0040bb28
push eax
push 0x10
call fcn.00410c6f
add esp, 8
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40dc0c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xffffffff
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x4f1ae4
push 0x4f1ae4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4f8878], eax
cmp dword [0x4f8878], 0
je 0x40dc81
mov ecx, dword [ebp + 8]
mov dword [0x506550], ecx
push 0
mov edx, dword [0x4f8878]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4f8878]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 4], 0
jmp 0x40dc8e
mov ecx, dword [0x4f8878]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41017d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [eax], 0x94
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4102dc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4101c2
cmp dword [ebp - 8], 1
je 0x4101dd
cmp dword [ebp - 8], 2
je 0x410250
jmp 0x4102d6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov byte [ebp - 4], 1
jmp 0x4102da
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x41020c
cmp dword [ebp - 0xc], 0xa
je 0x410212
cmp dword [ebp - 0xc], 0x5a
je 0x410241
jmp 0x410247
mov byte [ebp - 4], 2
jmp 0x41024b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x7ce
je 0x41022f
cmp dword [ebp - 0x10], 0x8ae
je 0x410235
jmp 0x41023b
mov byte [ebp - 4], 3
jmp 0x41023f
mov byte [ebp - 4], 4
jmp 0x41023f
mov byte [ebp - 4], 3
jmp 0x41024b
mov byte [ebp - 4], 5
jmp 0x41024b
mov byte [ebp - 4], 0
jmp 0x4102da
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 3
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 3
ja case.default.0x41026b
mov edx, dword [ebp - 0x14]
jmp dword [edx*4 + 0x4102e7]
mov byte [ebp - 4], 0
jmp 0x4102d4
mov byte [ebp - 4], 6
jmp 0x4102d4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x41029b
cmp dword [ebp - 0x18], 1
je 0x4102a1
cmp dword [ebp - 0x18], 2
je 0x4102a7
jmp 0x4102ad
mov byte [ebp - 4], 7
jmp 0x4102b1
mov byte [ebp - 4], 8
jmp 0x4102b1
mov byte [ebp - 4], 0xa
jmp 0x4102b1
mov byte [ebp - 4], 0
jmp 0x4102d4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4102c4
jmp 0x4102ca
mov byte [ebp - 4], 9
jmp 0x4102ce
mov byte [ebp - 4], 0
jmp 0x4102d4
mov byte [ebp - 4], 0
jmp 0x4102da
mov byte [ebp - 4], 0
jmp 0x4102e0
mov byte [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41035e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
call fcn.00410130
test eax, eax
jne 0x410388
push 0
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 4
or al, 2
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x4103b3
call fcn.004102f7
test eax, eax
je 0x410396
or eax, 0xffffffff
jmp 0x4103b3
push 0
mov ecx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, 4
or ecx, 2
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
dec eax
pop ebp
ret
Function at 0x410618
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xffffffff
push 0x4f388c
push 0x5301e0
push 0x5303e4
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x5303e0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410668
mov edx, dword [0x4f388c]
push edx
push 0x5301e0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00410b77
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41511f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4f4648
cmp edx, dword [eax]
je 0x415141
add eax, 8
inc ecx
cmp eax, 0x4f46d8
jl 0x415132
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4f4648]
jne 0x41526f
mov eax, dword [0x530448]
cmp eax, 1
je 0x415249
test eax, eax
jne 0x415172
cmp dword [0x4f3cf4], 1
je 0x415249
cmp edx, 0xfc
je 0x41526f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4151a9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411700
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411c40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4151ec
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411c40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419598
push edi
call fcn.004162b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411700
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411710
lea eax, [ebp - 0xa0]
push 0x419578
push eax
call fcn.00411710
push dword [esi + 0x4f464c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411710
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00417184
add esp, 0x2c
pop edi
jmp 0x41526f
lea eax, [ebp + 8]
lea esi, [esi + 0x4f464c]
push 0
push eax
push dword [esi]
call fcn.00411c40
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]
pop esi
leave
ret
Function at 0x404950
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x44], 0x9267
mov dword [ebp - 0x30], 0x1e15
mov dword [ebp - 0x48], 0xe2ee
mov dword [ebp - 0x10], 0x323c
mov dword [ebp - 0x4c], 0x2aa1
mov dword [ebp - 0x2c], 0x9d09
mov dword [ebp - 0x50], 0x14721
mov dword [ebp - 4], 0x12068
mov dword [ebp - 8], 0xbf6a
mov dword [ebp - 0x40], 0xbd39
mov dword [ebp - 0x38], 0x1516d
mov dword [ebp - 0x54], 0xa389
mov dword [ebp - 0x14], 0x13449
mov dword [ebp - 0x20], 0x3896
mov dword [ebp - 0xc], 0x12019
mov dword [ebp - 0x58], 0x139ab
mov dword [ebp - 0x18], 0x3e4
mov dword [ebp - 0x34], 0xeb6e
mov dword [ebp - 0x3c], 0x2d83
mov dword [ebp - 0x5c], 0x18272
mov dword [ebp - 0x60], 0x6e14
mov dword [ebp - 0x1c], 0xcd4f
mov dword [ebp - 0x24], 0x16b79
mov dword [ebp - 0x28], 0x134c8
mov dword [ebp - 0x64], 0x4944
mov eax, dword [ebp - 0x28]
sub eax, 0x3df2
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x4033
push ecx
mov edx, dword [ebp - 0x24]
sub edx, 0xa6b
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x126d3
push eax
mov ecx, dword [ebp - 0xc]
sub ecx, 0xb7e9
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x164f
push edx
mov eax, dword [ebp - 0xc]
sub eax, 0xa202
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x26bc
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0xd23
push edx
call fcn.004087f0
add esp, 0x24
mov eax, dword [ebp - 0x30]
add eax, 0x534a
push eax
mov ecx, dword [ebp + 0x1c]
add ecx, 0x23f7
push ecx
mov edx, dword [ebp - 0x14]
sub edx, 0x4084
push edx
mov eax, dword [ebp - 0x34]
add eax, 0x1462
push eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0x1085f
push ecx
mov edx, dword [ebp - 8]
sub edx, 0x8432
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x6d44
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x17166
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0xb5a5
push edx
mov eax, dword [ebp - 8]
sub eax, 0x3dd6
push eax
call fcn.004123b0
add esp, 0x28
mov ecx, dword [ebp - 4]
and ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x1c]
jge 0x404b22
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0x20]
jne 0x404b22
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x404b22
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 8]
jne 0x404b22
mov edx, dword [ebp + 0x28]
cmp edx, dword [ebp + 0xc]
jne 0x404b22
push 0x7f71
push 0x4ec
push 0x16985
push 0xe426
push 0xd57e
call dword [sym.imp.KERNEL32.dll_TerminateThread]
add esp, 0x14
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
sub edx, 0x17f6
push edx
mov eax, dword [ebp - 0x3c]
sub eax, 0xa13
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xc6b9
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x650e
push edx
mov eax, dword [ebp - 4]
sub eax, 0xa13
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x8f00
push ecx
call fcn.00404e50
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x40b5b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x20], 0xd34c
mov dword [ebp - 0x18], 0x1488c
mov dword [ebp - 0x40], 0x77e3
mov dword [ebp - 0x44], 0x5559
mov dword [ebp - 0x30], 0xd7a8
mov dword [ebp - 0x1c], 0x142fb
mov dword [ebp - 0x34], 0x4e7c
mov dword [ebp - 0x24], 0x17c7f
mov dword [ebp - 0x48], 0x160b
mov dword [ebp - 0x4c], 0x21f3
mov dword [ebp - 0x50], 0x16527
mov dword [ebp - 0x2c], 0x68ba
mov dword [ebp - 0xc], 0x2d3a
mov dword [ebp - 0x54], 0xc3b2
mov dword [ebp - 0x14], 0xa00
mov dword [ebp - 0x58], 0x80b2
mov dword [ebp - 0x28], 0xa3b9
mov dword [ebp - 0x5c], 0xcfb4
mov dword [ebp - 0x3c], 0x17a3b
mov dword [ebp - 0x10], 0xaaae
mov dword [ebp - 0x38], 0x1560a
mov dword [ebp - 0x60], 0xe2cb
mov dword [ebp - 4], 0
jmp 0x40b662
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 0xd34b
cmp dword [ebp - 4], ecx
jge 0x40b6ac
mov edx, dword [ebp - 0x24]
or edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jge 0x40b6aa
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jne 0x40b6aa
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x30]
jne 0x40b6aa
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0xc]
jne 0x40b6aa
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x38]
jne 0x40b6aa
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40b659
mov dword [ebp - 8], 0
jmp 0x40b6be
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x3c]
sub eax, 0x17a3a
cmp dword [ebp - 8], eax
jge 0x40b6de
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0xc]
jge 0x40b6dc
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x40b6b5
mov esp, ebp
pop ebp
ret
Function at 0x413bf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x38], 0xbbf9
mov dword [ebp - 0x30], 0xebf8
mov dword [ebp - 0x34], 0xceb3
mov dword [ebp - 0x44], 0x10349
mov dword [ebp - 0x48], 0x8e9a
mov dword [ebp - 0x40], 0xb95f
mov dword [ebp - 0x4c], 0x17f93
mov dword [ebp - 0x50], 0x135dc
mov dword [ebp - 0x54], 0x14c62
mov dword [ebp - 0x3c], 0x526e
mov dword [ebp - 0x58], 0x50a9
mov dword [ebp - 0x5c], 0x18194
mov dword [ebp - 0x18], 0x15bc1
mov dword [ebp - 4], 0x141b0
mov dword [ebp - 0x1c], 0x7e7f
mov dword [ebp - 0x20], 0x3933
mov dword [ebp - 8], 0x374e
mov dword [ebp - 0x2c], 0xe4b0
mov dword [ebp - 0x60], 0x11430
mov dword [ebp - 0x24], 0x13459
mov dword [ebp - 0x28], 0x12317
mov dword [ebp - 0x64], 0x1516c
mov dword [ebp - 0x68], 0xac1d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x24]
jge 0x413d27
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x2c]
jne 0x413d27
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
jne 0x413d27
push 0xb89d
push 0x80d
push 0x195
push 0x171cb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
add esp, 0x10
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x3c]
jge 0x413ce6
mov dword [ebp - 0x10], 1
jmp 0x413ced
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x40]
jge 0x413cfe
mov dword [ebp - 0x14], 1
jmp 0x413d05
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0x14]
je 0x413d27
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x413d27
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], 0
jmp 0x413d42
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x1c]
sub eax, 0x7e7e
cmp dword [ebp - 0xc], eax
jge 0x413d5a
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x413d39
mov esp, ebp
pop ebp
ret
Function at 0x41beb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x38], 0xdf7d
mov dword [ebp - 0x20], 0x106cb
mov dword [ebp - 0x4c], 0xe69
mov dword [ebp - 0x50], 0x1495f
mov dword [ebp - 0x44], 0x4dcb
mov dword [ebp - 0x3c], 0xfff3
mov dword [ebp - 0x24], 0x699f
mov dword [ebp - 0x14], 0x101a3
mov dword [ebp - 0x34], 0x51fa
mov dword [ebp - 0x48], 0x7d36
mov dword [ebp - 0x28], 0xa79e
mov dword [ebp - 4], 0x1cd
mov dword [ebp - 0x2c], 0xd5e8
mov dword [ebp - 0x54], 0xdcbd
mov dword [ebp - 0x18], 0x11cec
mov dword [ebp - 0x10], 0x1220b
mov dword [ebp - 0xc], 0x168b9
mov dword [ebp - 0x58], 0x180b6
mov dword [ebp - 0x5c], 0xdd18
mov dword [ebp - 0x30], 0x16ecc
mov dword [ebp - 0x1c], 0x3c8c
mov dword [ebp - 8], 0xb066
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x28]
cmp ecx, dword [ebp - 0x20]
jge 0x41c047
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0xc]
jne 0x41c047
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x18]
jne 0x41c047
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x14]
jne 0x41c047
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jne 0x41c047
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x2c]
jne 0x41c047
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0xc]
jge 0x41c047
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0x28]
and eax, dword [ebp - 0x34]
xor eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp + 0x18]
or eax, ecx
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 0x28]
add edx, 1
mov dword [ebp + 0x28], edx
cmp dword [ebp - 0x40], 0
je 0x41c047
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x41c047
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jne 0x41c047
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x48]
jne 0x41c047
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x24]
jne 0x41c047
push 0xe05d
push 0x2576
call dword [sym.imp.KERNEL32.dll_HeapLock]
add esp, 8
mov ecx, dword [ebp + 0x18]
add ecx, 1
mov dword [ebp + 0x18], ecx
push 0xd17a
push 0xbe32
push 0x17a75
push 0x11dc7
push 0xd5fd
push 0x28a3
push 0x155f3
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x415468
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x415468
lcall 0x5de5, 0x8b10c483
jmp loc.0080b6d0