joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404304
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40436a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403854
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402740
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404354
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404371
lea eax, [ebp - 0x10]
call fcn.0040360c
ret

Function at 0x4062c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4062f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004036fc
jmp 0x406302
mov eax, ebx
mov edx, esi
call fcn.00403660
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40630c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40632d
mov al, byte [esp]
jmp 0x40632f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40682c
mov eax, dword [0x4093b8]
cmp byte [eax], 0
je 0x406a30
mov eax, dword [0x409310]
call fcn.004026dc
call fcn.004025ec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004057b4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406a78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406a66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.00403d54
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407424
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407488
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403854
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405688
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40748f
lea eax, [ebp - 0xc]
call fcn.0040360c
ret
Function at 0x1002ec30
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002edfc
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
mov dword [edi + 0x25538], 0x45c43551
push edi
jmp 0x1002ec62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002ec69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002ec58
mov eax, 1
add ebx, ebx
jne 0x1002ec7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002ec70
jne 0x1002ec8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002ec70
xor ecx, ecx
sub eax, 3
jb 0x1002eca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002ed12
mov ebp, eax
add ebx, ebx
jne 0x1002ecab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002ecb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002ecdc
inc ecx
add ebx, ebx
jne 0x1002ecc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002ecbd
jne 0x1002ecd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002ecbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002ecfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002eced
jmp 0x1002ec5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002ecfc
add edi, ecx
jmp 0x1002ec5e
pop esi
mov edi, esi
mov ecx, 0x927
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002ed1a
cmp byte [edi], 0xa
jne 0x1002ed1a
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 0x1002ed1f
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x1002ed8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e248]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002ed4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e24c]
or eax, eax
je 0x1002ed88
mov dword [ebx], eax
add ebx, 4
jmp 0x1002ed69
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002edbf
cmp al, 0xef
ja 0x1002edb2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002ed94
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002eda1
mov ebp, dword [esi + 0x2e250]
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 0x1002edf3
sub esp, 0xffffff80
jmp 0x100086e1
Function at 0x403edc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x64
mov dword [ebp - 0xc], 0
call fcn.0042b640
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0042b6d0
sub esp, 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call fcn.0042b6d0
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.0042b6d0
sub esp, 8
lea edx, [ebp - 0x50]
mov eax, 0
mov ecx, 0xf
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x50], 0x3c
mov eax, str.runas
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.SHELL32.dll_ShellExecuteExW
sub esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0042b7b0
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042b7b0
sub esp, 4
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0042b7b0
sub esp, 4
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
leave
ret 0xc
Function at 0x4193ac
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x419447
push edi
push 0x4e7160
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4e7158]
test edi, edi
je 0x41941a
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x419413
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x4e7158
call fcn.0042bc65
pop ecx
pop ecx
jmp 0x419415
mov edi, dword [edi]
test edi, edi
jne 0x4193e8
pop ebp
mov esi, dword [0x4e6540]
push 0x10
push 0x4e7158
lea eax, [esi + 1]
mov dword [0x4e6540], eax
call fcn.0042bc36
pop ecx
pop ecx
push 0x4e7160
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x41a158
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x4e73c8]
call fcn.0042b430
mov esi, eax
or ebp, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [esp + 0x28]
mov ecx, eax
movzx edx, word [ecx]
test dx, dx
je 0x41a28b
mov eax, dword [esi]
mov esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop edi
movzx eax, si
cmp si, word [esp + 0x18]
jne 0x41a1be
push 0x20
pop esi
add ecx, 2
movzx eax, word [ecx]
cmp ax, si
je 0x41a1b3
mov dword [esp + 0x10], 1
cmp ax, di
jne 0x41a1f8
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
je 0x41a256
push 0x22
mov edx, eax
pop ebx
movzx esi, dx
cmp dx, bx
je 0x41a252
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x41a1df
jmp 0x41a252
test ax, ax
je 0x41a266
push 0x22
pop ebx
push 0x20
mov edi, ecx
movzx eax, ax
pop ebp
movzx esi, ax
cmp ax, bp
je 0x41a24e
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x41a243
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x41a243
mov esi, eax
movzx edx, si
cmp si, bx
je 0x41a243
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
test ax, ax
jne 0x41a22c
movzx eax, dx
movzx esi, dx
test dx, dx
jne 0x41a208
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, ecx
test si, si
je 0x41a260
add ecx, 2
mov eax, dword [esp + 0x10]
jmp 0x41a26a
xor eax, eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
jne 0x41a274
test ebx, ebx
jne 0x41a293
test eax, eax
je 0x41a27d
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x41a1a3
test ebx, ebx
jne 0x41a2a7
mov eax, ebp
jmp 0x41a2ac
test edi, edi
je 0x41a2a7
mov eax, dword [esp + 0x20]
sub edx, edi
sar edx, 1
mov dword [ebx], edx
inc dword [eax]
mov eax, edi
jmp 0x41a2ac
and dword [ebx], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x41ca8b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x41c9de
push 0x10
push 0x2c
call fcn.0042c6fb
push 0
push 0
push 8
mov dword [0x4e7490], eax
call fcn.0042b49b
cmp word [0x4e7488], 0
mov dword [0x4e7498], eax
jne 0x41cb64
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x4e7488], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4e7494], eax
test eax, eax
je 0x41cb64
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x4e7494]
mov dword [0x4e7478], eax
call esi
push str.getnameinfo
push dword [0x4e7494]
mov dword [0x4e747c], eax
call esi
push str.WSAStringToAddressA
push dword [0x4e7494]
mov dword [0x4e7480], eax
call esi
cmp dword [0x4e7478], 0
mov dword [0x4e7484], eax
pop esi
je 0x41cb64
cmp dword [0x4e747c], 0
je 0x41cb64
cmp dword [0x4e7480], 0
je 0x41cb64
test eax, eax
je 0x41cb64
mov dword [0x4e748c], 1
add esp, 0x190
ret

Function at 0x41cb70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x41cbac
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x41cbc0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x41cbd9
push dword [0x4e749c]
call fcn.0043a42c
pop edi
ret 4
push esi
push edi
push dword [0x4e749c]
call fcn.0042c617
mov esi, eax
test esi, esi
je 0x41cc43
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41cc2f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x41cc1e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x4e749c]
call fcn.0042c6ac
pop esi
pop edi
ret 4
Function at 0x41cee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4e749c]
call fcn.0042c617
mov esi, eax
test esi, esi
je 0x41cf5f
cmp dword [esi + 4], 0
je 0x41cf30
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00448410
test eax, eax
je 0x41cf24
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cf6a
cmp dword [esp + 8], 0
je 0x41cf6a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x41d050
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x41d0b5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41d0ad
push dword [esp + 0x10]
push dword [0x4e749c]
call fcn.0042c617
test eax, eax
je 0x41d0a3
cmp dword [eax + 4], 0
je 0x41d092
push edi
push esi
push eax
call fcn.00448a10
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x41d0c0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x41d1bf
cmp word [edx], 0
je 0x41d1bf
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x41d0ee
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x41d144
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d100
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x41d126
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00448a10
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
xor eax, eax
cmp ecx, 2
push edx
setne al
dec eax
and eax, 0xfde9
push eax
call fcn.00448b30
mov edi, eax
test edi, edi
je 0x41d13a
cmp dword [esi + 4], 0
je 0x41d192
push dword [esp + 0x14]
push edi
push esi
call fcn.00448a10
push edi
push 0
push dword [0x4e6f0c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x41df4d
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
call fcn.00449084
mov edi, eax
test edi, edi
je 0x41e02f
cmp dword [edi + 0x14], esi
je 0x41e02f
cmp dword [edi], 0xf
jne 0x41e02f
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41e02f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41e024
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call fcn.0043b210
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x41e024
push ebp
lea edi, [eax - 1]
mov ebp, esi
push esi
push esi
push ebp
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add edi, eax
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x41dfc9
push dword [esp + 0x20]
mov dword [esp + 0x1c], edi
push edi
call fcn.0042c230
lea ecx, [edi + 1]
mov ebp, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push ecx
push ebp
push esi
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
pop ecx
lea ebp, [ebp + eax*2]
mov word [ebp], cx
mov eax, ebp
mov ecx, dword [esp + 0x14]
add ebp, 2
inc esi
cmp esi, edi
jl 0x41dff7
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jne 0x41e03a
pop edi
pop esi
pop ebx
add esp, 0xc
jmp fcn.0042c2c0
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x41e321
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x4e8b7c]
call fcn.0042b430
xor ebx, ebx
mov esi, eax
cmp dword [0x4e7604], ebx
jne 0x41e3f3
xor ebp, ebp
inc ebp
mov dword [0x4e7604], ebp
call fcn.0044923b
mov edi, 0xa8
push edi
push ebx
push 0x4e7558
call fcn.0042bcb0
add esp, 0xc
mov dword [0x4e7558], 0x13
lea eax, [esp + 0x10]
mov dword [0x4e755c], edi
mov dword [0x4e7568], 0x41e1b0
mov dword [0x4e756c], 0x41e189
push eax
mov dword [0x4e75c0], 0x41e4fb
mov dword [0x4e75c4], 0x41e523
mov dword [0x4e7564], 0x41e4d6
mov dword [0x4e75e8], 0x41e5de
mov dword [0x4e7608], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41e3f3
cmp dword [esp + 0x20], ebp
je 0x41e3ed
cmp dword [esp + 0x20], 2
jne 0x41e3f3
cmp dword [esp + 0x14], 5
jb 0x41e3ed
jne 0x41e3f3
cmp dword [esp + 0x18], ebx
jne 0x41e3f3
mov dword [0x4e7608], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0044909f
mov eax, dword [esp + 0x140]
push ebx
push dword [0x4e6f10]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x41e4c7
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x4e8b78]
call fcn.0042c583
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x41e498
push esi
call fcn.00429086
test eax, eax
je 0x41e498
push 0
push 0
push esi
call fcn.00429165
jmp 0x41e49a
xor eax, eax
push 0x41e8f3
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x4e7558
push edi
push ebx
push ebp
mov dword [0x4e7600], eax
call fcn.00448f11
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x4229e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4e8b78]
call fcn.0042c617
mov ebx, eax
test ebx, ebx
je 0x422a4c
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x422a11
push dword [esp + 0xc]
push ebx
call eax
jmp 0x422a4c
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0042c230
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0042be2c
pop ecx
sub edi, eax
push edi
call fcn.0042c500
pop edi
pop esi
pop ebx
ret 8

Function at 0x425942
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x425962
cmp dword [esp + 8], 0
je 0x425962
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x425964
xor eax, eax
ret 8

Function at 0x425967
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4259df
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042c4c0
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042be2c
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4259c0
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4259bd
cmp ecx, 0x5c
je 0x4259bd
cmp ecx, 0x2f
jne 0x4259ca
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4259aa
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4259e1
xor eax, eax
leave
ret 4
Function at 0x425d22
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x425d4b
test byte [esp + 8], 2
je 0x425d3f
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x425d4d
xor eax, eax
ret 8

Function at 0x425e02
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x4e9000]
push esi
test eax, eax
jne 0x425e27
push fcn.00425dd0
push 0x10
push 0x258
call fcn.0042c6fb
mov dword [0x4e9000], eax
push dword [esp + 0xc]
push eax
call fcn.0042c583
mov esi, eax
test esi, esi
je 0x425f28
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x425e49
mov edi, 0x4a6494
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x425e59
xor eax, eax
cmp word [ebx], ax
jne 0x425e5e
mov ebx, 0x4a6450
push edi
call fcn.0042be2c
push ebx
mov dword [esp + 0x24], eax
call fcn.0042be2c
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x425f0f
push edi
push eax
call fcn.0042be0a
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x425ebf
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x425ec3
push 0x4a5764
push edi
call fcn.0042c48f
pop ecx
pop ecx
jmp 0x425ec3
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.0042c48f
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x425ee7
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x425efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x425efb
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x425f26
cmp dword [esp + 0x14], 0xffffffff
je 0x425f1a
mov esi, dword [esp + 0x14]
push esi
push dword [0x4e9000]
call fcn.0042c6ac
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc