joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469038
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00469e80
test byte [ebp + 0xd], 0xc0
jne 0x46905c
mov eax, dword [0x477d68]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x469069
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x469096
je 0x4690a8
sub ecx, 0x100
je 0x4690b6
sub ecx, 0x100
je 0x4690bd
sub ecx, 0x100
je 0x4690af
jmp 0x4690c4
sub ecx, 0x600
je 0x4690bd
sub ecx, 0x100
je 0x4690a8
jmp 0x4690c4
mov edi, 1
jmp 0x4690c9
mov edi, 2
jmp 0x4690c9
mov edi, 4
jmp 0x4690c9
mov edi, 5
jmp 0x4690c9
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4690f0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4777e0]
test al, 0x80
je 0x4690e9
mov ebx, 0x80
jmp 0x469102
mov ebx, 1
jmp 0x469102
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x469102
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x469114
je 0x46911d
dec eax
je 0x469126
jmp 0x46912f
mov dword [ebp - 4], 0x80000000
jmp 0x46913e
mov dword [ebp - 4], 0x40000000
jmp 0x46913e
mov dword [ebp - 4], 0xc0000000
jmp 0x46913e
push 1
call fcn.0046a278
pop ecx
mov ebx, eax
jmp 0x46922e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x46915a
sub eax, 0x10
je 0x469161
sub eax, 0x10
je 0x46916a
sub eax, 0x10
je 0x469173
jmp 0x469173
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x46917a
mov dword [ebp - 8], 1
jmp 0x46917a
mov dword [ebp - 8], 2
jmp 0x46917a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4691e7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4691dc
test byte [ebp + 0xd], 1
je 0x4691d7
mov ebx, 0x50
jmp 0x4691dc
mov ebx, 2
push ebx
call fcn.0046a278
pop ecx
mov ebx, eax
jmp 0x46922e
mov edi, esi
push edi
call fcn.00468f9c
pop ecx
test eax, eax
je 0x4691fb
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x469207
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00469fa0
add esp, 8
mov ebx, eax
inc eax
jne 0x46922e
push 4
call fcn.0046a278
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00469eb4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46dd40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x46dda2
call fcn.0046dcf0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00467ccc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00467ccc
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x46de20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x478c08], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46defa
cmp dword [0x478c04], 0
jne 0x46defa
cmp dword [0x478de8], 0
je 0x46deb4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0046dbf0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46de9a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0046dbf0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46de9a
lea ebx, [ebp - 0x84]
jmp 0x46de9b
inc ebx
call fcn.0046dddc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x46df35
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x478c0c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00467ccc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x478c0f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x46df35
cmp dword [0x478c04], 0
je 0x46df14
cmp dword [0x478c04], 0xffffffff
je 0x46df35
push esi
call dword [0x478c04]
pop ecx
mov eax, dword [0x478c08]
test eax, eax
je 0x46df35
cmp dword [0x478c08], 0xffffffff
je 0x46df35
cmp byte [eax], 0
je 0x46df35
push esi
push eax
call fcn.0046dd40
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e6cc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x47bba8], 0
jne 0x46e74d
cmp dword [0x47bbc8], 0
jne 0x46e6fc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x47bbc8], eax
test eax, eax
jne 0x46e6fc
push str.GetEnvironmentStrings_failed
call fcn.0046df4c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x47bbc8]
jmp 0x46e710
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00467ccc
pop ecx
mov edi, eax
test eax, eax
jne 0x46e708
lea edi, [ebp + 1]
push edi
call fcn.00467690
pop ecx
mov ebx, eax
mov dword [0x47bbac], ebx
test ebx, ebx
jne 0x46e73a
xor eax, eax
jmp 0x46e810
push edi
mov edx, dword [0x47bbc8]
push edx
push ebx
call fcn.00467b00
add esp, 0xc
jmp 0x46e76d
xor esi, esi
mov ebx, dword [0x47bba8]
jmp 0x46e767
push eax
call fcn.00467ccc
pop ecx
test eax, eax
jne 0x46e763
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46e757
lea ebx, [esi + 4]
push 4
mov dword [0x47bbb0], ebx
inc ebx
push ebx
call fcn.00467168
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x46e790
xor eax, eax
jmp 0x46e810
cmp dword [0x47bba8], 0
jne 0x46e7c1
xor esi, esi
mov ebx, dword [0x47bbac]
mov eax, dword [esp]
mov ebp, eax
jmp 0x46e7b2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00467ccc
pop ecx
mov edi, eax
test eax, eax
jne 0x46e7a8
jmp 0x46e7f2
xor esi, esi
mov ebx, dword [0x47bba8]
mov eax, dword [esp]
mov edi, eax
jmp 0x46e7ec
push eax
call fcn.00467ccc
pop ecx
test eax, eax
je 0x46e7e1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x46e7e5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46e7d0
mov eax, dword [0x47bba8]
test eax, eax
je 0x46e802
push eax
call fcn.004676a0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x47bba8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401390
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4014fd
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4014fd
lea eax, [esp + 0x26c]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4014fd
lea ecx, [esp + 0x168]
push str.__c__del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push str.___nul
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x50], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x288]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4014ef
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret

Function at 0x401900
Capabilities:
Create process on windows
Create process suspended
Read file on windows
Set registry value
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x368
push ebx
push ebp
push esi
push edi
jmp loc.0040f324
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x6b2a00e7
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x382a647c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100c830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x100c852
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100c859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100c848
mov eax, 1
add ebx, ebx
jne 0x100c86b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100c860
jne 0x100c87c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100c860
xor ecx, ecx
sub eax, 3
jb 0x100c890
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100c902
mov ebp, eax
add ebx, ebx
jne 0x100c89b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100c8a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100c8cc
inc ecx
add ebx, ebx
jne 0x100c8b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100c8ad
jne 0x100c8c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100c8ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100c8ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100c8dd
jmp 0x100c84e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100c8ec
add edi, ecx
jmp 0x100c84e
pop esi
mov edi, esi
mov ecx, 0xc9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100c90a
cmp byte [edi], 1
jne 0x100c90a
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 0x100c90f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x100c97e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc42c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc490]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100c93c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc498]
or eax, eax
je 0x100c978
mov dword [ebx], eax
add ebx, 4
jmp 0x100c959
call dword [esi + 0xc494]
mov ebp, dword [esi + 0xc49c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x100c9b2
sub esp, 0xffffff80
jmp 0x1004b55
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

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
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
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
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00431219
Function at 0x44a20b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44a239
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44a257
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044a175
jmp 0x44a257
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44a257
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044a175
test edi, edi
mov eax, edi
jne 0x44a241
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5747ec]
test ecx, ecx
je 0x44a30a
jmp 0x44a20a
ret 8

Function at 0x108a7108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.108a7258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108a712e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108a711a
add dl, dl
jne 0x108a7139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108a718c
xor eax, eax
add dl, dl
jne 0x108a7146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108a722d
add dl, dl
jne 0x108a7155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108a7160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108a716b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108a7176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108a7182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108a7125
mov eax, 1
add dl, dl
jne 0x108a719a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108a71a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108a7191
sub eax, ebx
mov ebx, 1
jne 0x108a71d8
mov ecx, 1
add dl, dl
jne 0x108a71be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108a71c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108a71b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108a7125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108a71ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108a71fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108a71e6
cmp eax, 0x7d00
jae 0x108a721d
cmp eax, 0x500
jb 0x108a7218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108a7125
cmp eax, 0x7f
ja 0x108a7220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108a7125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108a724e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x108a7125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x414e6d
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.0040cd6a
and dword [ebp - 4], 0
cmp dword [0x424430], 0
mov ebx, eax
jne 0x414f1e
push 0x41cbc4
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414fcf
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x41cbb8
push edi
call esi
test eax, eax
je 0x414fcf
push eax
call fcn.0040ccf8
mov dword [esp], 0x41cba8
push edi
mov dword [0x424430], eax
call esi
push eax
call fcn.0040ccf8
mov dword [esp], 0x41cb94
push edi
mov dword [0x424434], eax
call esi
push eax
call fcn.0040ccf8
mov dword [esp], 0x41cb78
push edi
mov dword [0x424438], eax
call esi
push eax
call fcn.0040ccf8
pop ecx
mov dword [0x424440], eax
test eax, eax
je 0x414f1e
push 0x41cb60
push edi
call esi
push eax
call fcn.0040ccf8
pop ecx
mov dword [0x42443c], eax
mov eax, dword [0x42443c]
cmp eax, ebx
je 0x414f76
cmp dword [0x424440], ebx
je 0x414f76
push eax
call fcn.0040cd73
push dword [0x424440]
mov esi, eax
call fcn.0040cd73
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414f76
test edi, edi
je 0x414f76
call esi
test eax, eax
je 0x414f6d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414f6d
test byte [ebp - 0xc], 1
jne 0x414f76
or dword [ebp + 0x10], 0x200000
jmp 0x414faf
mov eax, dword [0x424434]
cmp eax, ebx
je 0x414faf
push eax
call fcn.0040cd73
pop ecx
test eax, eax
je 0x414faf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414faf
mov eax, dword [0x424438]
cmp eax, ebx
je 0x414faf
push eax
call fcn.0040cd73
pop ecx
test eax, eax
je 0x414faf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424430]
call fcn.0040cd73
pop ecx
test eax, eax
je 0x414fcf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414fd1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
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
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x746d1219
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3d257f3b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402a30
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404870
test esi, esi
jne 0x402a66
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404960
jmp 0x402a84
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402944
mov edi, eax
test esi, esi
je 0x402a84
cmp dword [ebx], 0
je 0x402a84
dec esi
jmp 0x402a6d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402fdc
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x402ff2
sub ecx, 2
jne 0x403014
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40301b
cmp edx, dword [ebx + 8]
je 0x403025
mov eax, 0x64
jmp 0x403020
mov eax, 0x67
jmp 0x403020
call sub.kernel32.dll_GetLastError
call fcn.00402884
pop ebx
ret

Function at 0x4039b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x450020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a28
xor eax, eax
push ebp
push 0x403a21
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x450020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x450020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x452048], 0
je 0x404755
cmp word [0x45221c], 0xd7b2
jne 0x40471d
cmp dword [0x452224], 0
jbe 0x40471d
mov eax, 0x452218
call dword [0x452234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4500bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40477c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x450030], 0
jne 0x404771
push 0
push 0x4500b4
push 0x4500bc
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret