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

Disassembly:
mov eax, dword [0x432718]
mov byte [0x43271c], 0
test eax, eax
mov dword [0x431978], 0xffffffff
je 0x424e9d
push esi
mov esi, dword [sym.imp.WINMM.DLL_mciSendCommandA]
push 0
push 2
push 0x808
push eax
call esi
mov eax, dword [0x432718]
push 0
push 2
push 0x804
push eax
call esi
mov dword [0x432718], 0
mov dword [0x431970], 0x5265c00
mov dword [0x432720], 0
pop esi
mov eax, dword [0x432714]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x424ebd
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov ecx, 0x432714
jmp fcn.00406800
ret

Function at 0x42b270
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x150
lea ecx, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x160]
push edi
push esi
call fcn.00401020
lea ecx, [esp + 0x10]
call fcn.004069a0
lea ecx, [esp + 0x10]
call fcn.004069f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x42b2b6
mov edx, 0x4319d0
lea ecx, [esp + 0x10]
call fcn.004079a0
mov ecx, esi
call fcn.00406800
lea ecx, [esp + 0x14]
call fcn.00406370
mov ebp, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov dl, 0x3b
lea ecx, [esp + 0x10]
call fcn.00406710
mov ebx, eax
test ebx, ebx
jge 0x42b2e4
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 4]
push ebx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
call fcn.00406870
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.00407970
lea ecx, [esp + 0x18]
call fcn.004064c0
lea ecx, [esp + 0x14]
call fcn.004069a0
lea ecx, [esp + 0x14]
call fcn.004069f0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42b369
lea edx, [esp + 0x20]
add eax, 0xc
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42b369
lea edx, [esp + 0x4c]
mov ecx, esi
call fcn.00407ae0
mov dl, 0xd
mov ecx, esi
call fcn.00407b50
mov dl, 0xa
mov ecx, esi
call fcn.00407b50
lea eax, [esp + 0x20]
push eax
push edi
call ebp
test eax, eax
jne 0x42b339
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
inc ebx
push 0x7fffffff
push ebx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.004068e0
mov edx, eax
lea ecx, [esp + 0x10]
call fcn.00407970
lea ecx, [esp + 0x1c]
call fcn.004064c0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x42b2cc
lea ecx, [esp + 0x14]
call fcn.004064c0
lea ecx, [esp + 0x10]
call fcn.004064c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret

Function at 0x42b400
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push esi
push edi
mov edi, ecx
mov ecx, edx
call fcn.00416d10
mov eax, dword [0x4324c8]
mov edx, dword [0x431fd8]
add eax, 0xc
lea ecx, [esp + 8]
push eax
mov eax, dword [0x4323b4]
push 0x3ff
push ecx
mov ecx, dword [0x432344]
add edx, 0xc
add eax, 0xc
push edx
add ecx, 0xc
push eax
push ecx
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
jle 0x42b471
mov ecx, edi
call fcn.004064c0
lea edx, [esp + 8]
mov ecx, edi
push esi
push edx
call fcn.00406500
mov al, 1
pop edi
pop esi
add esp, 0x400
ret
pop edi
xor al, al
pop esi
add esp, 0x400
ret
Function at 0x53b565
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x53b582
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x53b573
add dl, dl
jne 0x53b58d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x53b5d9
xor eax, eax
add dl, dl
jne 0x53b59a
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x53b676
add dl, dl
jne 0x53b5a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x53b5b4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x53b5bf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x53b5ca
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x53b5d4
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x53b579
mov eax, 1
add dl, dl
jne 0x53b5e7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x53b5f2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x53b5de
sub eax, 2
jne 0x53b621
mov ecx, 1
add dl, dl
jne 0x53b607
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x53b612
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x53b5fe
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x53b579
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x53b638
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x53b643
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x53b62f
cmp eax, 0x7d00
jae 0x53b666
cmp eax, 0x500
jb 0x53b661
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x53b579
cmp eax, 0x7f
ja 0x53b669
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x53b579
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x53b692
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x53b579
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x404ee0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x38], 8
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x24], 9
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x404f5e
cmp dword [ebp - 8], 0
jne 0x404f51
mov dword [ebp - 0x10], 1
jmp 0x404f58
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 0x20], 0
je 0x404fa5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
sub edx, 0x30
mov dword [ebp - 0x14], edx
cmp dword [ebp - 8], 0
je 0x404f90
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x404f9a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + ecx*4 - 0x48]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x404f42
mov eax, dword [ebp - 0xc]
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x404fbd
mov dword [ebp - 0x1c], 1
jmp 0x404fc4
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x405650
Capabilities:
Delete file
Delete registry key
Persist via run registry key
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [0x407a88]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x405673
mov ecx, dword [0x407a88]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov edx, dword [0x407a84]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x405692
mov eax, dword [0x407a84]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, dword [0x407a80]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x4056b2
mov edx, dword [0x407a80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [0x4071d0]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405704
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4056f6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405702
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405704
jmp 0x4056b9
push str.SoftwareResilience_Software
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str..DEFAULTSOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000003
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0x407620
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x626225be
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7049112f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3d737e52
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x63e71411
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401b40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407008
push 0x403138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40a82c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40a828], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40a824], ecx
shr eax, 0x10
mov dword [0x40a820], eax
call fcn.00403000
test eax, eax
jne 0x401baa
push 0x1c
call fcn.00401ce0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402e00
call fcn.00402df0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ac4c], eax
call fcn.004029c0
mov dword [0x40a7f8], eax
test eax, eax
je 0x401bdd
mov eax, dword [0x40ac4c]
test eax, eax
jne 0x401be7
push 0xffffffffffffffff
call fcn.00402320
add esp, 4
call fcn.00402710
call fcn.00402620
call fcn.004022f0
mov esi, dword [0x40ac4c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401cc6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401c2e
test al, al
je 0x401c2e
and eax, 0xff
push eax
call fcn.004025c0
add esp, 4
test eax, eax
je 0x401c08
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401c08
cmp byte [esi], 0x22
jne 0x401c37
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401c47
cmp al, 0x20
ja 0x401c47
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401c37
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401c68
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401c6d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00402320
jmp 0x401cab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401c37
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401cc6

Function at 0x402360
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a85c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40237f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a858], 1
mov byte [0x40a854], bl
jne 0x4023d9
mov ecx, dword [0x40ac48]
test ecx, ecx
je 0x4023c7
mov esi, dword [0x40ac44]
sub esi, 4
cmp esi, ecx
jb 0x4023c7
mov eax, dword [esi]
test eax, eax
je 0x4023c0
call eax
mov ecx, dword [0x40ac48]
sub esi, 4
cmp esi, ecx
jae 0x4023b2
push 0x408014
push 0x408010
call fcn.00402410
add esp, 8
push 0x40801c
push 0x408018
call fcn.00402410
add esp, 8
test ebx, ebx
jne 0x402400
push ebp
mov dword [0x40a85c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4029c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40a970]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402a02
call edi
mov esi, eax
test esi, esi
je 0x4029ec
mov eax, 1
jmp 0x4029fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x402b0f
mov eax, 2
mov dword [0x40a970], eax
cmp eax, 1
jne 0x402aa2
test esi, esi
jne 0x402a1b
call edi
mov esi, eax
test esi, esi
je 0x402b0f
cmp word [esi], 0
mov eax, esi
je 0x402a35
add eax, 2
cmp word [eax], 0
jne 0x402a23
add eax, 2
cmp word [eax], 0
jne 0x402a23
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402a94
push edi
call fcn.00404200
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402a94
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402a86
push ebx
call fcn.004041b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402b0f
test ebx, ebx
jne 0x402ab3
call ebp
mov ebx, eax
test ebx, ebx
je 0x402b0f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402acb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402abb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402abb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404200
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402aed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x403250
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x408208
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x403274
add eax, 8
inc ebp
cmp eax, 0x408298
jb 0x403265
cmp ecx, dword [ebp*8 + 0x408208]
jne 0x40341b
mov eax, dword [0x40a800]
cmp eax, 1
je 0x4033dd
test eax, eax
jne 0x4032a0
cmp dword [0x408048], 1
je 0x4033dd
cmp ecx, 0xfc
je 0x40341b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4032db
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403324
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40732c
add ebx, ecx
push ebx
call fcn.00404a60
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40730c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40820c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004049d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40ab40]
test eax, eax
je 0x4033ee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4033f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40820c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x110d430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa58000]
add word [edi + 0xd0e87c], 0xd
push edi
or ebp, 0xffffffff
jmp 0x110d45a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x110d461
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x110d450
mov eax, 1
add ebx, ebx
jne 0x110d473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x110d484
jne 0x110d4a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x110d4a3
dec eax
add ebx, ebx
jne 0x110d490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x110d468
add ebx, ebx
jne 0x110d49f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x110d4f5
xor ecx, ecx
sub eax, 3
jb 0x110d4bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x110d52a
sar eax, 1
mov ebp, eax
jmp 0x110d4c6
add ebx, ebx
jne 0x110d4c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x110d494
inc ecx
add ebx, ebx
jne 0x110d4d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x110d494
add ebx, ebx
jne 0x110d4e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x110d4d6
jne 0x110d4f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x110d4d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x110d514
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x110d506
jmp 0x110d456
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x110d514
add edi, ecx
jmp 0x110d456
pop esi
mov edi, esi
mov ecx, 0x5492d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x110d532
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x110d537
lea edi, [esi + 0xd0a000]
mov eax, dword [edi]
or eax, eax
je 0x110d5a8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd0ed5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd0ee88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x110d55d
mov ecx, edi
jns 0x110d58c
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 + 0xd0ee8c]
or eax, eax
je 0x110d5a2
mov dword [ebx], eax
add ebx, 4
jmp 0x110d57a
call dword [esi + 0xd0ee9c]
mov ebp, dword [esi + 0xd0ee90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x110d5dc
sub esp, 0xffffff80
jmp 0xc643c5
Function at 0x6e6011e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], str.USB_DEBUG
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x6e601200
leave
jmp 0x6e603a80
mov dword [esp], str.USB_DEBUG
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [esp], eax
call sym.libusb0.dll_usb_set_debug
leave
jmp 0x6e603a80
push ebp
mov eax, 1
mov ebp, esp
push edi
mov edi, 0xc
push esi
mov esi, 1
push ebx
sub esp, 0x25c
xor ebx, ebx
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x238]
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov dword [esp], str.usb_os_init:_dll_version:__d._d._d._d
call fcn.6e601900
jmp 0x6e603aea
mov dword [esp], str.usb_os_init:_getting_driver_version_failed
call fcn.6e601870
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
inc ebx
cmp ebx, 0xff
jg 0x6e603c1e
mov dword [esp + 0x10], ebx
mov ecx, str..libusb0_
mov edx, str._s_04d
mov dword [esp + 0xc], ecx
mov eax, 0x1ff
xor esi, esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll__snprintf
mov dword [esp + 4], esi
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0x40000000
mov dword [esp + 0x14], eax
mov eax, 3
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
mov esi, eax
je 0x6e603add
lea eax, [ebp - 0x23c]
mov edx, 0x18
mov ecx, 0x18
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov edx, 0x222048
mov dword [esp], eax
mov eax, esi
mov dword [esp + 0xc], ecx
call fcn.6e602ec0
test eax, eax
je 0x6e603ac6
cmp dword [ebp - 0x23c], 0x17
jbe 0x6e603ac6
mov dword [esp], str.usb_os_init:_driver_version:__d._d._d._d
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x34]
mov dword [0x6e608414], ecx
mov dword [0x6e608418], edx
mov dword [0x6e60841c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [0x6e608410], ebx
mov dword [esp + 4], ebx
call fcn.6e601900
mov dword [ebp - 0x38], 0
mov eax, dword [0x6e60b034]
mov edx, 0x222044
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x18
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov eax, esi
call fcn.6e602ec0
test eax, eax
je 0x6e603c26
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.usb_os_init:_setting_debug_level_failed
call fcn.6e601870
jmp 0x6e603c13