joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410e96
Capabilities:
Query or enumerate registry key

Disassembly:
pop esi
pop ecx
xor eax, eax
pop esi
pop ecx
push 0xffffffffffffffff
push 0x41a372
pop edx
push edx
push 0x32
push 0xffffffffffffff83
push 0x3fd406
call fcn.0040379d
mov byte [esp + 0x17], cl
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x410f23
mov al, byte [esp + 0xa]
mov cl, byte [esp + 9]
mov byte [edi], al
push 0xffffffffffffffff
push 0x41ab8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx

Function at 0x410eec
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, ecx
call fcn.0040ec39
call fcn.0040c078
xchg dword [esp], ebx
push 0x7e
push dword [esp + 4]
push dword [esp + 4]
push 0x3fd552
call fcn.00403a9a
mov edx, dword [esp + 0x14]
push esi
push edx
push eax
sub esp, 0x10
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
call dword [0xffffffff]
push 0x4009f5
push dword [esp + 8]
push 0xffffffffffffff8a
push 0x3fbee3
call fcn.00403650
push ebp
mov ebp, esp
and esp, 0xfffffff8
push eax
push esi
push 0x41a1a9
call fcn.00406559
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
push esi
push ebx
push 0x401830
push 0x402a28
push 0x405d68
call 0x410f7e
mov eax, esi
pop esi
lea esp, [esp + 0x14]
mov esi, dword [esp + 8]
push dword [esp + 0x16]
push dword [esp + 0x70]
call 0x410f95
pop esi
pop ebx
lea esp, [esp + 0xc]
add dword [esp + 4], esi
push esi
push 0x402078
push esp
call 0x410fbf
stosw word es:[edi], ax
mov eax, dword [edx]
push edx
call dword [eax + 0x10]
xor edx, edx
test eax, eax
setge dl
mov dword [esi + 0x1c], 0
lea esp, [esp + 0x10]
pop esi
ret 4

Function at 0x411560
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x1c], bl
je fcn.004115a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi]
push esi
cmp eax, dword [ebx + 0x4c]
jbe 0x404c7c
push 0xfffffffffffffff2
push dword [esp + 8]
push ebx
push 0x4028b6
call fcn.004034ec
mov ecx, dword [esp + 4]
call fcn.004053a0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 8
mov ecx, dword [esp + 0x10]
xor eax, eax
Function at 0x41168c
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push edi
mov eax, dword [esi + 0x20]
test eax, eax
push eax
push 0x4002d8
push 0x31
push 0x400116
push 0x401e16
call fcn.00402e08
mov eax, dword [0x41b2a5]
mov dword [esp + 0xac], ecx
mov ecx, dword [0x41b129]
jne 0x4116f6
xor eax, eax
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x411640
mov eax, dword [ecx]
push 1
call dword [eax]
push esi
push 0x402810
push dword [esp + 0x73]
push dword [esp - 0x8c]
push 0x403718
push dword [esp - 0x46]
call 0x4116cb
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x41165e
dec dword [eax]
mov eax, dword [esi + 4]
lea esp, [esp + 0x18]
mov esi, dword [esp + 8]
push 0x4044e8
push dword [esp + 0xa]
call 0x4116fa
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je fcn.0041168c
xor eax, eax
lea esp, [esp + 0xc]
add dword [esp + 4], esi
push dword [esp - 0x33]
push dword [esp - 0x1a]
push esi
push dword [esp - 0x83]
call 0x41172c
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x411777
lea edx, [esp]
push edx
lea edx, [esp + 8]
lea esp, [esp + 0x14]
pop esi
ret 8
push 0x41a523
sub esp, 8
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push 0xffffffffffffff8f
push 0x404af0
push eax
push dword [esp - 0x29]
call 0x4117ac
lea edx, [esp + 0x14]
push edx
call esi
push 0x41a5a0
lea eax, [esp + 0x14]
push eax
call esi
lea esp, [esp + 0x18]
mov ebx, dword [esp + 8]
push dword [esp - 0x37]
push ecx
push dword [esp + 0x21]
push 0x403a00
push dword [esp - 0x66]
call 0x4117e2
push esi
lea ecx, [esp + 0x34]
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test esi, esi
jne 0x41181f
mov dword [esp + 0x34], esi
lea edx, [esp + 8]
lea esp, [esp + 0x18]
add dword [esp + 4], ebx
push esi
call 0x4117fd
push ecx
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x411817
mov edx, dword [ecx + 0x1c]
test edx, edx
lea esp, [esp + 8]
pop ebx
ret 8
xor eax, eax
push esp
push 0x1bee
push 0x1c
push sym.imp.USER32.dll_EndDialog
call fcn.0040c44f
push 0xffffffffffffffab
push 8
push dword [esp + 0xc]
push 0x3fb852
call fcn.00402f20
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push 0x1013
push sym.imp.WININET.dll_HttpOpenRequestA
push 0x17bf
push 0x41ae02
push 0x41a650
call fcn.00409309
push 0xffffffffffffff87
push dword [esp + 8]
push 0xffffffffffffffb4
push 0x3f5920
call fcn.00403091
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ea0f
mov eax, dword [esi + 0x18]
test eax, eax
push 0xffffffffffffffdd
push 0x2a3
push 0x52
push 0x23
call fcn.00406ffd
push 0xc
call fcn.0040737c
mov eax, dword [esp]
add esp, 8
ret
Function at 0x4116cb
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push edi
mov eax, dword [esi + 0x20]
test eax, eax
push eax
push 0x4002d8
push 0x31
push 0x400116
push 0x401e16
call fcn.00402e08
mov eax, dword [0x41b2a5]
mov dword [esp + 0xac], ecx
mov ecx, dword [0x41b129]
jne 0x4116f6
xor eax, eax
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x411640
mov eax, dword [ecx]
push 1
call dword [eax]
push esi
push 0x402810
push dword [esp + 0x73]
push dword [esp - 0x8c]
push 0x403718
push dword [esp - 0x46]
call 0x4116cb
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x41165e
dec dword [eax]
mov eax, dword [esi + 4]
lea esp, [esp + 0x18]
mov esi, dword [esp + 8]
push 0x4044e8
push dword [esp + 0xa]
call 0x4116fa
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je fcn.0041168c
xor eax, eax
lea esp, [esp + 0xc]
add dword [esp + 4], esi
push dword [esp - 0x33]
push dword [esp - 0x1a]
push esi
push dword [esp - 0x83]
call 0x41172c
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x411777
lea edx, [esp]
push edx
lea edx, [esp + 8]
lea esp, [esp + 0x14]
pop esi
ret 8
push 0x41a523
sub esp, 8
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push 0xffffffffffffff8f
push 0x404af0
push eax
push dword [esp - 0x29]
call 0x4117ac
lea edx, [esp + 0x14]
push edx
call esi
push 0x41a5a0
lea eax, [esp + 0x14]
push eax
call esi
lea esp, [esp + 0x18]
mov ebx, dword [esp + 8]
push dword [esp - 0x37]
push ecx
push dword [esp + 0x21]
push 0x403a00
push dword [esp - 0x66]
call 0x4117e2
push esi
lea ecx, [esp + 0x34]
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test esi, esi
jne 0x41181f
mov dword [esp + 0x34], esi
lea edx, [esp + 8]
lea esp, [esp + 0x18]
add dword [esp + 4], ebx
push esi
call 0x4117fd
push ecx
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x411817
mov edx, dword [ecx + 0x1c]
test edx, edx
lea esp, [esp + 8]
pop ebx
ret 8
xor eax, eax
push esp
push 0x1bee
push 0x1c
push sym.imp.USER32.dll_EndDialog
call fcn.0040c44f
push 0xffffffffffffffab
push 8
push dword [esp + 0xc]
push 0x3fb852
call fcn.00402f20
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push 0x1013
push sym.imp.WININET.dll_HttpOpenRequestA
push 0x17bf
push 0x41ae02
push 0x41a650
call fcn.00409309
push 0xffffffffffffff87
push dword [esp + 8]
push 0xffffffffffffffb4
push 0x3f5920
call fcn.00403091
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ea0f
mov eax, dword [esi + 0x18]
test eax, eax
push 0xffffffffffffffdd
push 0x2a3
push 0x52
push 0x23
call fcn.00406ffd
push 0xc
call fcn.0040737c
mov eax, dword [esp]
add esp, 8
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x3f9814f5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x7e562a56
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40a843
Capabilities:
Parse pe header

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

Function at 0x40af90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
nop
push edx
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, 7
mov dword [ebp - 0xc], 0xa
mov esi, 0xe
mov dword [ebp - 8], 9
mov eax, esi
add eax, dword [ebp - 8]
sub eax, 0x17
mov dword [ebp - 0x24], eax
and dword [ebp - 0x28], 0
jmp 0x40b035
add dword [ebp - 0x28], 0x708b
mov dword [ebp - 0x20], 0xefd9791
mov dword [ebp - 0x24], 0x41d1
jmp 0x40b03e
dec dword [ebp - 0x20]
mov eax, dword [ebp - 8]
sub eax, 9
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], 0x45f000
mov dword [ebp - 0x2c], 0x43b6c0
mov eax, edi
add eax, esi
sub eax, 0x12
mov dword [ebp - 0x10], eax
jmp 0x40b01c
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x20]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x10], eax
jb 0x40b008
jmp 0x40b08a
mov eax, dword [ebp - 8]
add eax, esi
sub eax, 0x14
cmp eax, dword [ebp - 0x44]
jbe 0x40b047
invalid
jmp 0x40afee
mov dword [ebp - 0x28], 0x434235
jmp 0x40afcb
add dword [ebp - 0x24], 0x1f82f
jmp 0x40afe2
mov eax, esi
sub eax, 0xe
mov dword [ebp - 4], eax
jmp 0x40b063
invalid
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x19d34
jb 0x40b051
mov dword [ebp - 0x48], 0x4554c0
mov dword [ebp - 0x4c], 0x492000
inc ebp
mov ah, 0
and byte [ecx], cl
mov dword [ebp - 0x14], 0x45c0c0
mov dword [ebp - 0x30], 0x10000000
jmp 0x40b092
inc dword [ebp - 0x44]
jmp 0x40b1a9
invalid
mov eax, dword [ebp - 8]
sub eax, 9
mov dword [ebp - 0x3c], eax
mov eax, esi
add eax, dword [ebp - 0xc]
sub eax, 0x16
cmp eax, dword [ebp - 0x44]
jne 0x40b026
inc dword [ebp - 0x20]
jmp 0x40b026
Function at 0x406a06
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 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
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 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
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 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
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 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40915c
nop
mov ecx, 0x4e5d02b7
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc_1
mov ebx, 0x42f3f8
nop
mov ecx, 0x371303cb
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov dword [ebp - 4], 0
call fcn.00403763
mov dword [ebp - 4], eax
push 0x64
push 0x42e31c
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x42e2b8
push 0xbb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x4010a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x715
jne 0x4010a1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0x715
jne 0x4010a1
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4010a1
mov edx, dword [0x42e0e0]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401141
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004011c1
add esp, 8
test eax, eax
jne 0x4010c5
xor eax, eax
jmp 0x40113b
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
push 1
push 0
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 8]
jbe 0x401120
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowCaret]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4011c1
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x42e380], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x42e31c
push 0x42e2b8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401209
xor eax, eax
jmp 0x401232
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x4014ce
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.00401430
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x40148a
mov byte [ebp - 0x114], 0
jmp 0x4014cc
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x4014ae
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4014cc
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x4014cc
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x4014d7
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x402fe5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x184], 0
mov ecx, 5
mov esi, 0x42dbdc
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xec], eax
push 0x94
push 0
lea eax, [ebp - 0x180]
push eax
call fcn.004261c0
add esp, 0xc
mov word [ebp - 0x32], 0x66
lea ecx, [ebp - 0x38]
push ecx
call fcn.004014f1
add esp, 4
mov dword [ebp - 0xc], eax
mov word [ebp - 0x2a], 0x37
mov word [ebp - 0x28], 0x32
push 0xa8
push 0
lea edx, [ebp - 0xe0]
push edx
call fcn.004261c0
add esp, 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov eax, dword [ebp - 0xec]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xec], 0
lea ecx, [ebp - 0x20]
push ecx
push 0x65
call fcn.0040152a
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x184], 0
jne 0x40310d
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
cmp eax, 0x41
je 0x40310d
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx + 1]
cmp edx, 0x42
je 0x40310d
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00426220
add esp, 0xc
push 0
push 0x402fc0
push 0
mov edx, dword [ebp - 0xec]
push edx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42dbc4]
mov dword [eax + 0x14c], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00401590
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xec]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x150], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x150], 0
je 0x403185
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc8], 0
push 0x8000
push 0
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xec]
mov dword [0x42e0e0], ecx
mov eax, dword [ebp - 4]
jmp 0x4031a1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4031a7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x42a864]
mov dword [ecx + 0xbc], edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x42dbc0]
mov dword [eax + 0xb4], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 4]
mov dword [edx + 0xd4], eax
push 0x8000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd4], 0
je 0x40323c
mov ecx, dword [ebp - 8]
add ecx, 0x7c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1b4], 0x42a86c
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0x1c8], ecx
jmp 0x4032dc
mov edx, dword [str.appinitcmd.ini]
mov dword [ebp - 0x20], edx
mov eax, dword [0x42dbf4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x42dbf8]
mov dword [ebp - 0x18], ecx
mov dx, word [0x42dbfc]
mov word [ebp - 0x14], dx
mov al, byte [0x42dbfe]
mov byte [ebp - 0x12], al
push 0
push 0
push 4
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4032dc
push 4
push 0x1000
push 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4032dc
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x4032dc
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
add eax, 0x750
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xd4]
mov dword [edx + 0xc0], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x42a868]
mov dword [edx + 0xb8], eax
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov edx, dword [0x42dbbc]
mov dword [ecx + 0xb0], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x198], 0x42a030
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040395c
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x403763
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.004033b9
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x4037ac
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x4037cc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x403958
mov dword [ebp - 0x484], 0
mov edx, dword [str.setting.ini]
mov dword [ebp - 0x47c], edx
mov eax, dword [0x42dc04]
mov dword [ebp - 0x478], eax
mov ecx, dword [0x42dc08]
mov dword [ebp - 0x474], ecx
mov edx, dword [str.existing]
mov dword [ebp - 0x470], edx
mov eax, dword [0x42dc10]
mov dword [ebp - 0x46c], eax
mov cl, byte [0x42dc14]
mov byte [ebp - 0x468], cl
push 0
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea ecx, [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40385e
xor eax, eax
jmp 0x403958
cmp dword [ebp - 0x484], 0xffffffff
jne 0x40389a
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.setini.xml
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
jne 0x40389a
xor eax, eax
jmp 0x403958
push 0
lea edx, [ebp - 0x48c]
push edx
push 0x448
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40392f
push 2
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x488], eax
push 0
mov eax, dword [ebp - 0x48c]
push eax
push 0
mov ecx, dword [ebp - 0x488]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ecx, dword [ebp - 0x48c]
push ecx
push 0
mov edx, dword [ebp - 0x488]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x48c], 0x448
je 0x40385e
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret