joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008b80
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
push edi
je 0x1008b94
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_remove]
test eax, eax
pop ecx
je 0x1008bbe
push dword [esi + 4]
push dword [esi + 8]
push 0x1001afc
push 0x1002f74
push dword [esp + 0x20]
call fcn.010087a6
add esp, 0x14
mov eax, dword [esi + 8]
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_free]
je 0x1008bcf
push eax
call edi
pop ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1008bda
push eax
call edi
pop ecx
push esi
call edi
pop ecx
xor eax, eax
pop edi
inc eax
pop esi
ret 8
Function at 0x1009122
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
push esi
push esi
push 3
push esi
push esi
mov ebx, 0x40000000
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1009168
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push 3
push esi
push esi
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10091e4
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
xor eax, eax
mov ax, word [edi + 2]
push eax
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
or ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
or ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ax, word [edi + 4]
push eax
call fcn.01008cbb
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, ebx
jne 0x10091e4
push dword [ebp + 8]
push 0x1001850
push 0x10030f0
push dword [ebp + 0x10]
call fcn.010087a6
add esp, 0x10
xor eax, eax
jmp 0x10091e7
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10091ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.msvcrt.dll__open]
push edi
mov edi, dword [ebp + 0xc]
push 0x8000
push edi
call esi
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x1009234
push edi
push 0x1001850
push 0x100317c
push dword [ebp + 0x20]
call fcn.010087a6
add esp, 0x10
jmp 0x100935d
push ebx
mov ebx, dword [ebp + 0x20]
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.010090b8
test eax, eax
je 0x1009342
cmp dword [ebp + 0x18], 0
je 0x1009264
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push eax
call dword [ebp + 0x18]
test eax, eax
je 0x1009342
cmp dword [ebp + 0x10], 0
jne 0x1009276
mov dword [ebp - 0xc], 1
jmp 0x1009342
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x10092a3
push dword [ebp + 8]
push edi
push 0x1001afc
push 0x1003150
push ebx
call fcn.010087a6
add esp, 0x14
jmp 0x1009342
push 0x180
push 0x8301
push dword [ebp + 8]
call esi
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x10092cf
push dword [ebp + 8]
push 0x1001850
push 0x100317c
push ebx
jmp 0x1009385
mov ebx, dword [sym.imp.msvcrt.dll__eof]
jmp 0x1009306
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1009366
test esi, esi
je 0x1009306
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
cmp eax, esi
jne 0x1009375
push dword [ebp - 8]
call ebx
test eax, eax
pop ecx
je 0x10092d7
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.01009122
test eax, eax
je 0x1009342
mov dword [ebp - 0xc], 1
cmp edi, 0xffffffff
je 0x1009342
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__close]
cmp dword [ebp - 4], 0
pop ecx
pop ebx
je 0x100935d
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 0x1c
push dword [ebp + 0xc]
push 0x1001850
push 0x1003138
jmp 0x1009382
push dword [ebp + 0xc]
push 0x1001850
push 0x1003120
push dword [ebp + 0x20]
call fcn.010087a6
add esp, 0x10
jmp 0x1009335
Function at 0x100999e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_toupper]
push esi
mov esi, dword [esp + 0xc]
mov al, byte [esi]
movzx eax, al
push edi
push eax
inc esi
call ebx
pop ecx
jmp 0x10099d7
movzx eax, al
push eax
inc esi
call ebx
pop ecx
mov ecx, edi
and ecx, 0xff
shl ecx, 3
shr edi, 8
or ecx, edi
and ecx, 0xffffff
xor eax, ecx
mov edi, eax
mov al, byte [esi]
test al, al
jne 0x10099b7
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x1009f9e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1014ab0]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01008af1
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01008afb
mov edi, 0x800
push edi
mov dword [ebp - 0x224], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x100a017
push dword [ebp + 0xc]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push 0x1001a34
push 0x1003510
push dword [ebp + 0x18]
call fcn.010087a6
add esp, 0x18
jmp 0x100a0d9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call fcn.01008b3f
test eax, eax
je 0x100a0d0
push dword [ebp + 0x18]
push esi
call fcn.01008ae8
mov esi, eax
jmp 0x100a069
push esi
push edi
push 1
push ebx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test byte [esi + 0xc], 0x20
jne 0x100a094
test eax, eax
jle 0x100a069
push dword [ebp + 8]
push eax
push 1
push ebx
call dword [sym.imp.msvcrt.dll_fwrite]
mov eax, dword [ebp + 8]
add esp, 0x10
test byte [eax + 0xc], 0x20
jne 0x100a0b2
test byte [esi + 0xc], 0x10
je 0x100a038
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.01008b05
push ebx
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c7cd
leave
ret 0x14
push dword [ebp + 0xc]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push 0x1001a34
push 0x10034f0
jmp 0x100a007
push dword [ebp + 0xc]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push 0x1001a34
push 0x10034cc
jmp 0x100a007
push 0
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x100a085
Function at 0x100bd08
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
sub eax, ebx
je 0x100bd43
dec eax
je 0x100bd37
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x10018b0
push 0x10039a0
push dword [ebp + 0x14]
call fcn.010087a6
add esp, 0x14
jmp 0x100bd78
mov eax, 0x8102
mov ecx, 0x180
jmp 0x100bd4a
mov eax, 0x8000
xor ecx, ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__open]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x100bd7f
push dword [ebp + 8]
push 0x1001850
push 0x1003988
push dword [ebp + 0x14]
call fcn.010087a6
add esp, 0x10
xor eax, eax
jmp 0x100be7e
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push 0x128
call edi
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x100bdb2
push dword [ebp + 8]
push 0x1001850
push 0x1003968
push dword [ebp + 0x14]
call fcn.010087a6
add esp, 0x10
jmp 0x100bebe
push dword [ebp + 0x10]
call edi
cmp eax, ebx
pop ecx
mov dword [esi + 0xc], eax
jne 0x100bde3
push esi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp + 8]
push 0x1001850
push 0x1003968
push dword [ebp + 0x14]
call fcn.010087a6
add esp, 0x14
jmp 0x100bebe
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__strdup]
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x100be1e
push dword [esi + 0xc]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push esi
call edi
push dword [ebp + 8]
push 0x1001850
push 0x1003968
push dword [ebp + 0x14]
call fcn.010087a6
add esp, 0x18
jmp 0x100bebe
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], ebx
mov dword [esi + 4], edi
sete al
cmp dword [ebp + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], eax
jne 0x100be7a
push 3
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, 3
jne 0x100be83
cmp byte [ebp - 4], 0xef
jne 0x100be83
cmp byte [ebp - 3], 0xbb
jne 0x100be83
cmp byte [ebp - 2], 0xbf
jne 0x100be83
mov dword [esi + 0x24], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
push ebx
push ebx
push edi
call dword [sym.imp.msvcrt.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100be7a
push dword [esi]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [esi + 0xc]
call edi
push esi
call edi
push dword [ebp + 8]
push 0x1001850
push 0x1003988
push dword [ebp + 0x14]
call fcn.010087a6
add esp, 0x1c
xor eax, eax
jmp 0x100be7c
Function at 0x100bec2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x100bef1
push dword [esi]
push 0x1001850
push 0x10039c4
push dword [ebp + 0x14]
call fcn.010087a6
add esp, 0x10
xor eax, eax
jmp 0x100bfa4
cmp dword [ebp + 0x10], 0
push ebx
jle 0x100bfa1
xor ebx, ebx
inc ebx
jmp 0x100bf26
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0xa
je 0x100bf88
cmp al, 0xd
je 0x100bf22
cmp al, 0x1a
je 0x100bf68
cmp dword [ebp + 0x10], ebx
jle 0x100bf63
dec dword [ebp + 0x10]
mov byte [edi], al
inc edi
inc dword [esi + 0x10]
jmp 0x100bf26
inc ecx
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jbe 0x100bf01
cmp dword [esi + 0x18], 0
jne 0x100bf96
push dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, dword [esi + 8]
je 0x100bf4e
mov dword [esi + 0x18], ebx
cmp dword [ebp + 0x10], 0
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax - 1]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jg 0x100bf26
jmp 0x100bfa1
mov byte [edi], 0
jmp 0x100bfa1
mov eax, dword [esi + 0xc]
and dword [esi + 0x14], 0
cmp edi, dword [ebp + 0xc]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], eax
mov byte [edi], 0
ja 0x100bf80
mov dword [esi + 0x1c], ebx
inc edi
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x100bfa3
inc dword [esi + 0x10]
mov byte [edi], 0
mov eax, edi
sub eax, dword [ebp + 0xc]
inc eax
jmp 0x100bfa3
cmp edi, dword [ebp + 0xc]
mov byte [edi], 0
ja 0x100bf8e
mov dword [esi + 0x1c], ebx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x100c7cd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1014ab0]
jne 0x100c7d6
ret
jmp 0x100c7db
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1014ab0]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1014ed8]
test eax, eax
je 0x100c7ff
call eax
cmp dword [0x1014edc], 0
je 0x100c846
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1014edc]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0100c7cd
add ebp, 0x2a8
leave
ret

Function at 0x100c86b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1003b48
call fcn.0100ca88
cmp word [0x1000000], 0x5a4d
jne 0x100c8aa
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x100c8aa
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x100c8c3
cmp ecx, 0x20b
je 0x100c8b0
and dword [ebp - 0x1c], 0
jmp 0x100c8da
cmp dword [eax + 0x1000084], 0xe
jbe 0x100c8aa
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x100c8d4
cmp dword [eax + 0x1000074], 0xe
jbe 0x100c8aa
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1014ee0], 0xffffffff
or dword [0x1014ee4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1014ed4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1014ed0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1014ee8], eax
call fcn.0100ca84
cmp dword [0x1014ac0], 0
jne 0x100c937
push fcn.0100ca84
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100ca72
push 0x1014010
push 0x101400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1014ecc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1014ec8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1014008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100859e
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x100c9af
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100c9e4
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100cac3
ret
Function at 0x100ec3d
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x100ec78
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100ec55
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x100ec94
dec esi
je 0x100ec8d
dec esi
jne 0x100ec99
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x1010039
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], al
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
jne 0x1010081
mov ecx, 0x2000
lea edi, [esi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], eax
call fcn.0100fab7
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], 0
mov ecx, 0x8000
push 2
mov word [ebx + 0x3c], cx
mov dword [ebx + 0x34], ecx
add eax, ecx
pop edx
movzx edi, byte [eax]
mov esi, dword [ebx + 0x20]
shl esi, 5
xor esi, edi
and esi, 0x7fff
inc eax
dec edx
mov dword [ebx + 0x20], esi
jne 0x10100a5
cmp byte [ebp + 0x24], 0
je 0x10100cc
mov edi, ebx
call fcn.0100f919
jmp 0x10100db
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x10100ce
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.0100ed9d
push 0x4b
pop edx
call fcn.0100ed9d
call fcn.0100fddc
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x1010115
mov edi, dword [ebx + 0x14]
mov ecx, 0x2000
lea esi, [edi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x10169ed
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [reloc.msvcrt.dll___p__commode]
cmp eax, ebx
je 0x1016a09
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x10169df
push 0x973
push 0x100372c
push 0x10036c8
call fcn.01007320
push dword [0x101a9a4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x1016a03
push 0x974
push 0x100372c
push 0x10036c8
call fcn.01007320
mov dword [reloc.msvcrt.dll___p__commode], ebx
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 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 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [0x40dd40], 0
push edi
je 0x401022
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [0x40dd40]
jmp 0x401078
push 0x3f
mov byte [ebp - 0x100], 0
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x409124
call fcn.0040188c
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401a6a
add esp, 0xc
push 0
push 0x409118
call fcn.0040188c
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.00401a2a
int3