joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041b8
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4041f4
cmp dword [esp + 0xc], 0
je 0x4041f4
push 0x25
push esi
call fcn.00404525
pop ecx
test eax, eax
pop ecx
je 0x4041e8
push 0x103
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
pop esi
ret
push esi
push dword [esp + 0x10]
call fcn.004043f5
pop ecx
pop ecx
pop esi
ret

Function at 0x404680
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4046a9
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4046a1
cmp al, 0x22
jne 0x404695
cmp byte [esi], 0x22
jne 0x4046b3
inc esi
jmp 0x4046b3
cmp al, 0x20
jle 0x4046b3
inc esi
cmp byte [esi], 0x20
jg 0x4046ad
mov al, byte [esi]
test al, al
je 0x4046bd
cmp al, 0x20
jle 0x4046a6
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040472d
push 0x406004
push section..data
call fcn.00404713
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4046ed
movzx eax, word [ebp - 0x14]
jmp 0x4046f0
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00404745
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401159
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call 0x401159
pop ecx
push 0x8b04c483
inc ebp
or al, 0x8b
dec ebp
or byte [ebx + 0x4598d10], cl
mov dword [ecx], edx
mov edi, dword [eax]
lea esi, [eax + 4]
mov dword [ebp + 0xc], ebx
xor ecx, ecx
sub ebx, esi
mov eax, dword [esi]
add esi, 4
mov edx, eax
sub eax, ecx
xor edx, edi
add eax, edi
mov edi, ecx
mov dword [ebx + esi - 4], edx
imul edi, ecx
xor eax, edi
inc ecx
cmp ecx, 7
mov edi, eax
jl 0x401175
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x4e4e4f4b
je 0x4011a7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
jmp 0x4011ab
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x4011f6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x4011f6
push 0x8b04c483
inc ebp
or byte [ebp + 0x5e0375c0], al
pop ebp
ret
Function at 0x587dbd
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00587f6d
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x587ebb
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x587e5e
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x587ea1
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x587e75
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x587e90
test al, 0x40
je 0x587e87
mov ecx, dword [edi + 0x20]
jmp 0x587e8e
test al, 0x80
je 0x587ea1
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x587ea1
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x587e2d
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x406887
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406895
call 0x8566818
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44ee30], eax
sub eax, eax
je 0x4068ba
call 0xa8d651ad
invalid
call 0x401154
call 0x40664a
pop edi
xor eax, eax
pop esi
ret

Function at 0x407505
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407544
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407544
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407544
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407544
cmp dword [ecx + 0x74], 0xe
jbe 0x407544
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5db
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d60f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d615
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d659
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d690
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4054cf
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x45cc48], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40550f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4524f8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4524fc]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004054c8
mov eax, dword [0x452500]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x452504]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x45cc48], 0xc
mov dword [ebp - 4], eax
jne 0x4055a5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x45cc48]
cmp eax, 0xfa9
jne 0x4055c1
mov dword [0x45c1e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4055ce
mov dword [0x45bb90], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x45c1e0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x45cc48], 0x213
mov dword [ebp - 0x14], edx
jne 0x405608
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004054c2
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x40554b
cmp dword [0x45cc48], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x405671
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x40567a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x45cc48]
mov ecx, dword [0x45bb98]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4056ea
mov edi, ecx
mov ebx, eax
cmp dword [0x45cc48], 0x959
jne 0x4056de
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004054cf
add edi, 8
dec ebx
jne 0x40569e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4059f1
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x45cc48], 0x400
push edi
jne 0x405a56
push esi
push esi
call fcn.00405fcb
push esi
push esi
call fcn.00405fcb
push esi
push esi
call fcn.0040622e
push esi
push esi
push esi
call fcn.004067a8
add esp, 0x20
mov dword [esp], esi
call fcn.00405446
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00405404
fstp st(0)
push esi
call fcn.0040685e
pop ecx
push esi
call fcn.004065bf
pop ecx
mov eax, dword [0x452b84]
mov dword [0x45cc48], eax
mov eax, dword [0x452b5c]
mov dword [0x45cc4c], eax
call fcn.00405709
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x405abd
cmp dword [esp + 0x18], 0x785074d5
jne 0x405acb
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x405a78
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x405184
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x405afc
cmp dword [esp + 0x18], 0x785074d5
jne 0x405b05
inc edi
cmp edi, 0x11915
jl 0x405acd
mov eax, dword [0x45bb98]
mov dword [0x45c1dc], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4071d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x451118]
jne 0x4071da
repz ret
jmp fcn.0040bce2
Function at 0x40ba05
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.00408da0
and dword [ebp - 4], 0
cmp dword [0x453440], 0
mov ebx, eax
jne 0x40bab6
push 0x4025d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bb67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4025c4
push edi
call esi
test eax, eax
je 0x40bb67
push eax
call fcn.00408d2e
mov dword [esp], 0x4025b4
push edi
mov dword [0x453440], eax
call esi
push eax
call fcn.00408d2e
mov dword [esp], 0x4025a0
push edi
mov dword [0x453444], eax
call esi
push eax
call fcn.00408d2e
mov dword [esp], 0x402584
push edi
mov dword [0x453448], eax
call esi
push eax
call fcn.00408d2e
pop ecx
mov dword [0x453450], eax
test eax, eax
je 0x40bab6
push 0x40256c
push edi
call esi
push eax
call fcn.00408d2e
pop ecx
mov dword [0x45344c], eax
mov eax, dword [0x45344c]
cmp eax, ebx
je 0x40bb0e
cmp dword [0x453450], ebx
je 0x40bb0e
push eax
call fcn.00408da9
push dword [0x453450]
mov esi, eax
call fcn.00408da9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bb0e
test edi, edi
je 0x40bb0e
call esi
test eax, eax
je 0x40bb05
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bb05
test byte [ebp - 0xc], 1
jne 0x40bb0e
or dword [ebp + 0x10], 0x200000
jmp 0x40bb47
mov eax, dword [0x453444]
cmp eax, ebx
je 0x40bb47
push eax
call fcn.00408da9
pop ecx
test eax, eax
je 0x40bb47
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bb47
mov eax, dword [0x453448]
cmp eax, ebx
je 0x40bb47
push eax
call fcn.00408da9
pop ecx
test eax, eax
je 0x40bb47
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453440]
call fcn.00408da9
pop ecx
test eax, eax
je 0x40bb67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bb69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10019f7
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x5e
push edi
jne 0x1001a08
inc esi
mov ebx, dword [ebp + 0xc]
push 8
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
jmp 0x1001a9e
xor ecx, ecx
cmp al, 5
mov dword [ebp + 8], ecx
jne 0x1001a2a
mov dword [ebp + 8], 1
inc esi
movzx eax, byte [esi]
inc esi
sub eax, ecx
je 0x1001a41
dec eax
je 0x1001a7d
dec eax
je 0x1001a89
dec eax
je 0x1001a6d
dec eax
je 0x1001a49
dec eax
jne 0x1001a98
push 2
call dword [sym.imp.msvcrt.dll_exit]
push 8
pop ecx
push 0
push 0xd
push 0xd
or eax, 0xffffffff
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
call fcn.0100151c
push 0
push 0xa
push 0xa
push ebx
call fcn.0100151c
jmp 0x1001a98
xor eax, eax
mov cl, byte [esi]
or byte [eax + ebx], cl
inc esi
inc eax
cmp eax, 0x20
jl 0x1001a6f
jmp 0x1001a98
cmp dword [ebp + 8], ecx
jne 0x1001a41
mov al, byte [esi]
inc esi
test al, al
je 0x1001a41
xor eax, eax
mov al, byte [esi]
push 1
push eax
push eax
push ebx
call fcn.0100151c
inc esi
cmp dword [ebp + 8], 0
je 0x1001aab
mov al, byte [esi]
test al, al
mov dword [ebp + 0xc], esi
jne 0x1001a19
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1001bfe
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
cmp dword [0x10089e0], 0x1001aba
mov eax, dword [0x10060b0]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x1001cfa
push esi
push edi
call fcn.010018f8
test eax, eax
je 0x1001c40
push esi
push edi
call fcn.01001ad2
jmp 0x1001cfa
cmp byte [edi], 0x5e
push ebx
mov ebx, dword [0x1007774]
mov byte [ebp - 0x127], 0
jne 0x1001c56
or ebx, 8
lea ecx, [esi - 1]
push 0xfffffffffffffffe
xor eax, eax
test ecx, ecx
pop edx
jle 0x1001c70
cmp byte [edi + eax], 0x5c
jne 0x1001c6b
mov edx, eax
inc eax
inc eax
cmp eax, ecx
jl 0x1001c62
test esi, esi
jle 0x1001c87
cmp byte [esi + edi - 1], 0x24
jne 0x1001c87
lea eax, [esi - 2]
cmp edx, eax
je 0x1001c87
mov esi, ecx
or ebx, 0x10
push esi
lea eax, [ebp - 0x124]
push edi
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
test bl, 0x10
je 0x1001ca7
mov byte [ebp + esi - 0x124], 0xd
inc esi
lea eax, [ebp - 0x124]
push eax
mov byte [ebp + esi - 0x124], 0
call fcn.0100158f
test eax, eax
mov dword [ebp - 0x130], eax
je 0x1001cf9
inc dword [0x10089b8]
test bl, 8
jne 0x1001ce0
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.010019f7
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.010019f7
cmp byte [eax], 0
jne 0x1001d08
mov dword [0x10089e0], 0x1001aba
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01004a3d
leave
ret 8
xor ebx, ebx
xor eax, eax
mov ecx, ebx
and ecx, 7
inc eax
shl eax, cl
mov ecx, ebx
sar ecx, 3
movsx ecx, byte [ebp + ecx - 0x24]
test ecx, eax
je 0x1001dd9
push 8
call fcn.01002c1a
mov esi, eax
mov eax, dword [ebp - 0x130]
mov dword [esi + 4], eax
movzx eax, byte [ebx + 0x10088b8]
xor ecx, ecx
cmp eax, ecx
jne 0x1001dcc
mov eax, dword [0x1006020]
inc dword [0x1006020]
mov edx, eax
cmp edx, 0x100
mov dword [ebp - 0x12c], eax
jge 0x1001deb
cmp dword [0x1006060], ecx
mov dword [eax*4 + 0x10060c8], ecx
mov byte [ebx + 0x10088b8], al
jne 0x1001dc6
push ebx
call dword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
pop ecx
je 0x1001dc6
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 0x128], bl
call dword [sym.imp.msvcrt.dll__strlwr]
cmp byte [eax], bl
pop ecx
jne 0x1001db3
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.msvcrt.dll__strupr]
cmp byte [eax], bl
pop ecx
je 0x1001dc6
movzx eax, byte [ebp - 0x128]
mov cl, byte [ebp - 0x12c]
mov byte [eax + 0x10088b8], cl
mov eax, dword [ebp - 0x12c]
lea eax, [eax*4 + 0x10060c8]
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [eax], esi
inc ebx
cmp ebx, 0x100
jl 0x1001d0a
jmp 0x1001cf9
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ecx
add eax, 0x40
push 0xa
push eax
call fcn.010029e1
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x10029e1
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x300c
call fcn.01004d40
mov eax, dword [0x10060b0]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x300c], eax
lea eax, [ebp - 0x300c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0
push dword [ebp + 0xc]
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
mov dword [ebp - 0x3008], eax
je 0x1002ac7
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0x2000
lea eax, [ebp - 0x3004]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
jl 0x1002ab9
push dword [ebp - 0x3008]
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0xfff
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToOemN]
test eax, eax
jl 0x1002aab
mov eax, dword [ebp - 0x3008]
mov byte [ebp + eax - 0x1004], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1001248
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
jmp 0x1002ada
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001220
jmp 0x1002ad3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10011f0
jmp 0x1002ad3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10011d4
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.01004a3d
leave
ret

Function at 0x1002bed
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1007778]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push eax
call fcn.010029e1
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1002c1a
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
jne 0x1002c4e
push dword [0x1007778]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 2
push eax
call fcn.010029e1
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003091
test al, 0x10
jne 0x100308c
test ah, 0x10
je 0x1003091
test byte [0x1007775], 2
jne 0x1003091
mov byte [0x10089db], 1
or eax, 0xffffffff
jmp 0x10030d3
push esi
push 0
push 0x100000
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10030d0
push dword [ebp + 8]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [0x1007778]
add eax, 0x40
push 4
push eax
call fcn.010029e1
add esp, 0x10
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x401a09
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.00401641

Function at 0x405640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4000]
push edi
or ebp, 0xffffffff
jmp 0x405662
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x405669
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x405658
mov eax, 1
add ebx, ebx
jne 0x40567b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x405670
jne 0x40568c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405670
xor ecx, ecx
sub eax, 3
jb 0x4056a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x405712
mov ebp, eax
add ebx, ebx
jne 0x4056ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4056b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4056dc
inc ecx
add ebx, ebx
jne 0x4056c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4056bd
jne 0x4056d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4056bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4056fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4056ed
jmp 0x40565e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4056fc
add edi, ecx
jmp 0x40565e
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40571a
cmp byte [edi], 1
jne 0x40571a
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 0x40571f
lea edi, [esi + 0x3000]
mov eax, dword [edi]
or eax, eax
je 0x405797
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x58b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x58ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40574c
mov ecx, edi
jns 0x40577b
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 + 0x58f0]
or eax, eax
je 0x405791
mov dword [ebx], eax
add ebx, 4
jmp 0x405769
call dword [esi + 0x58f8]
mov ebp, dword [esi + 0x58f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4057cb
sub esp, 0xffffff80
jmp 0x401174