joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405da6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x405e8f
cmp byte [edi + 0x4a], 0
je 0x405e8f
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x405de4
xor al, al
jmp 0x405e91
lea esi, [ebp - 0x20]
call fcn.0040575f
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405e31
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405e36
dec eax
je 0x405e3a
dec eax
dec eax
je 0x405e8b
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00405893
mov al, bl
pop ebx
jmp 0x405e91
mov edx, dword [ebp - 0x20]
jmp 0x405dfb
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405e46
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405e6c
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405e59
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040e231
add esp, 0x10
cmp esi, eax
jne 0x405e1e
cmp byte [edi + 0x4a], 0
je 0x405e8b
test esi, esi
jne 0x405ded
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.004057a3
jmp 0x405ded
mov bl, 1
jmp 0x405e20
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c14c
leave
ret
Function at 0x406bd1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x406c07
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406d20
push 0x423928
push edi
call fcn.0040131e
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x406c50
mov eax, dword [esi]
jmp 0x406c52
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406d20
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406ca1
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.0040131e
jmp 0x406d20
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x406cb6
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406d20
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x423cbc
push 0x40
push eax
call fcn.00406bb5
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012ca
mov edi, dword [ebp - 0x4bc]
call fcn.00401370
push ebx
push 1
mov ecx, esi
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040c14c
leave
ret 4

Function at 0x406d33
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040b546
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x406d75
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427548
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427548]
xor cx, word [edx*2 + 0x427548]
inc edx
mov word [edi + edx*2 + 0x427546], cx
cmp edx, dword [ebp + 0xc]
jl 0x406d55
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x4075e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
push 0x4238d8
mov edi, ecx
mov dword [ebp - 0x388], esi
call fcn.004012ca
xor esi, esi
add edi, 0xa0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x390], esi
mov dword [ebp - 0x380], esi
jb 0x40762e
mov eax, dword [edi]
jmp 0x407630
mov eax, edi
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x4076f3
push ebx
call fcn.0040b546
cmp dword [edi + 0x14], 8
pop ecx
mov dword [ebp - 0x384], eax
jb 0x40765d
mov edi, dword [edi]
push eax
push ebx
push dword [ebp - 0x38c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4076e7
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x380]
push eax
push 0x4238dc
push dword [ebp - 0x384]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4076e7
cmp dword [ebp - 0x390], esi
je 0x4076e7
mov eax, dword [ebp - 0x380]
cmp dword [eax], 0xfeef04bd
jne 0x4076e7
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xe]
push eax
push edx
push ecx
push 8
push str.nA
call fcn.00406d33
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x37c]
push eax
push dword [ebp - 0x388]
call fcn.0040131e
push dword [ebp - 0x384]
call fcn.0040dda0
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x388]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c14c
leave
ret

Function at 0x4078c3
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041b400
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov byte [ebp - 0x1005], 1
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x407935
push esi
mov esi, dword [ebp - 0x100c]
push edi
shr esi, 2
xor edi, edi
test esi, esi
je 0x407933
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x407925
push eax
push ebx
call fcn.00407947
test al, al
je 0x40792c
inc edi
cmp edi, esi
jb 0x40790f
jmp 0x407933
mov byte [ebp - 0x1005], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1005]
xor ecx, ebp
call fcn.0040c14c
leave
ret
Function at 0x407c6e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x407c76
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407c91
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x407c94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040e9fd
push eax
call fcn.0040e9ca
pop ecx
pop ecx
call fcn.0040e9dc
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407cee
mov eax, dword [esi]
jmp 0x407cf0
mov eax, esi
push dword [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push str._s_n_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.004012ca
mov esi, eax
call fcn.00401370
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00401455
cmp dword [edi + 0x14], 8
jb 0x407d3e
mov eax, dword [edi]
jmp 0x407d40
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407d61
shr eax, 4
and al, 1
je 0x407d61
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407ce4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040c14c
leave
ret
Function at 0x407d71
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4d8], ecx
call fcn.00404721
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x407db1
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407dea
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040c14c
leave
ret 4
push 0x423914
lea esi, [ebp - 0x284]
call fcn.004012ca
push 0x423918
lea esi, [ebp - 0x268]
call fcn.004012ca
test byte [ebp - 0x4d4], 0x10
je 0x407e69
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.004068ff
test eax, eax
je 0x407ecb
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.004068ff
test eax, eax
je 0x407ecb
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
mov ecx, dword [ebp - 0x4d8]
mov eax, esi
push eax
call fcn.00407d71
jmp 0x407ebc
cmp dword [edi + 0x14], 8
jb 0x407e73
mov eax, dword [edi]
jmp 0x407e75
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
lea eax, [ebp - 0x214]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x407eb5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401455
lea eax, [ebp - 0x4d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407e0a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x407ef0
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.00401455
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00401455
mov bl, 1
jmp 0x407dc8
Function at 0x40970c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x409717
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4097cb
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x423468]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x423468]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x423468]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x423468]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x423468]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x423468]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x423468]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x423468]
add ecx, 8
sub edi, 8
dec esi
jne 0x40972e
pop ebx
test edi, edi
je 0x4097e4
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x423468]
inc ecx
dec edi
jne 0x4097cf
pop esi
not eax
pop edi
ret

Function at 0x4097e9
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x423468]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x423468]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x409e4c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x409e7c
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409e77
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x409ea4
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x409e8d
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040eec0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret 0xc
Function at 0x40ac2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], 0
push esi
push edi
jne 0x40acd3
cmp dword [ebx + 4], 0xffffffff
jne 0x40acd3
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ac5e
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x40ac96
cmp eax, 0x2f
je 0x40ac96
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40ac82
mov edi, esi
mov esi, 0x4220a4
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.0040c7a3
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.0040a0c1
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x40acd8
mov eax, 0x1000000
pop edi
pop esi
pop ebp
ret 8

Function at 0x40c14c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4265d4]
jne 0x40c156
repz ret
jmp fcn.00410cdf
Function at 0x41c753
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411974
and dword [ebp - 0x14], 0
cmp dword [0x4299b4], 0
mov dword [ebp - 0x18], eax
jne 0x41c806
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c8ae
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x421fdc
push ebx
call edi
test eax, eax
je 0x41c8ae
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4299b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4299b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4299bc], eax
call edi
push eax
call esi
mov dword [0x4299c4], eax
test eax, eax
je 0x41c806
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4299c0], eax
mov eax, dword [0x4299c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c85f
cmp dword [0x4299c4], ecx
je 0x41c85f
push eax
call esi
push dword [0x4299c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c85f
test ebx, ebx
je 0x41c85f
call edi
test eax, eax
je 0x41c856
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c856
test byte [ebp - 8], 1
jne 0x41c85f
or dword [ebp + 0x10], 0x200000
jmp 0x41c892
mov eax, dword [0x4299b8]
cmp eax, dword [ebp - 0x18]
je 0x41c892
push eax
call esi
test eax, eax
je 0x41c892
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c892
mov eax, dword [0x4299bc]
cmp eax, dword [ebp - 0x18]
je 0x41c892
push eax
call esi
test eax, eax
je 0x41c892
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4299b4]
call esi
test eax, eax
je 0x41c8ae
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c8b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c14c
leave
ret
Function at 0x100025c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push eax
call fcn.100023e0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x100025e1
or eax, eax
pop esi
add esp, 0xc
ret 4
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
mov al, 0x10
test byte [esp + 4], al
je 0x1000264d
lea edx, [esp + 8]
mov byte [esp + 0x14], al
push 0
push edx
lea eax, [esp + 0x1c]
push 3
push eax
push esi
mov byte [esp + 0x29], 4
mov byte [esp + 0x2a], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000263c
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x1c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000263c
test byte [esp + 0x14], 8
je 0x1000264d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0xc
ret 4

Function at 0x10002660
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call fcn.100023e0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x1000267d
pop edi
or eax, eax
pop esi
ret 0xc
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000269f
cmp dword [esp + 0xc], edi
je 0x100026ae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x10002c80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebp, ebp
cmp edi, ebp
jne 0x10002c9d
pop edi
pop esi
pop ebp
mov ax, 0x14
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
push ebp
push 0x8000080
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10002cca
pop edi
pop esi
pop ebp
mov ax, 4
pop ebx
add esp, 0x10
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebp
jne 0x10002cea
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x10
ret
cmp dword [esi], 0x28
je 0x10002d08
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x10
ret
push esi
mov word [esp + 0x14], 0x4d42
call fcn.10001060
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 0x10]
add esp, 4
add edi, edx
cmp eax, 1
je 0x10002d49
cmp eax, 2
je 0x10002d49
xor eax, eax
mov ax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
shr eax, 5
imul eax, dword [esi + 8]
shl eax, 2
add edi, eax
mov dword [esi + 0x14], eax
jmp 0x10002d4c
add edi, dword [esi + 0x14]
lea ecx, [edi + 0xe]
push esi
mov dword [esp + 0x16], ecx
mov word [esp + 0x1a], bp
mov word [esp + 0x1c], bp
call fcn.10001060
mov edx, dword [esi]
add esp, 4
lea ecx, [esp + 0x28]
lea eax, [eax + edx + 0xe]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
lea edx, [esp + 0x18]
push 0xe
push edx
push ebx
mov dword [esp + 0x2e], eax
call ebp
lea eax, [esp + 0x28]
push 0
push eax
push edi
push esi
push ebx
call ebp
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xfc
pop ebp
add eax, 4
pop ebx
add esp, 0x10
ret
Function at 0x10002dc0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x428
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x10002f44
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x10002f3d
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 0xe
push ecx
push edi
call ebx
test eax, eax
je 0x10002f36
cmp dword [esp + 0x10], 0xe
jne 0x10002f36
cmp word [esp + 0x18], 0x4d42
jne 0x10002f36
lea edx, [esp + 0x10]
push 0
push edx
push 0x28
push esi
push edi
call ebx
test eax, eax
je 0x10002f36
cmp dword [esp + 0x10], 0x28
jne 0x10002f36
cmp dword [esi], 0xc
je 0x10002f36
mov eax, dword [esi + 0x20]
mov edi, eax
test edi, edi
jne 0x10002e76
mov cx, word [esi + 0xe]
cmp cx, 0x18
je 0x10002e76
mov edi, 1
shl edi, cl
test eax, eax
jne 0x10002e7d
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x10002ea0
xor eax, eax
mov ax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
shr eax, 3
and eax, 0x1ffffffc
imul eax, dword [esi + 8]
mov dword [esi + 0x14], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi]
mov ebx, dword [esi + 0x14]
shl edi, 2
add ecx, edi
push 0
add ecx, ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ebx, eax
test ebx, ebx
je 0x10002f3d
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x2c]
mov esi, eax
lea edx, [esp + 0x10]
push 0
mov eax, dword [esi]
push edx
add eax, esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esi]
mov eax, dword [esp + 0x22]
add ebp, edi
test eax, eax
je 0x10002f04
mov edx, dword [esp + 0x2c]
push 0
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push 0
push eax
add ebp, esi
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002f32
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x41cb08
Capabilities:
Identify system language via api

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.004ac4d0
push dword [esp + 0xc]
call fcn.0043d6e0
push edx
call fcn.004ac330
pop edx
push eax
push edx
call fcn.004ac330
pop edx
push eax
call sub.KERNEL32.dll_GetUserDefaultLangID
cdq
push edx
push eax
call fcn.004aaa10
lea eax, [esp + 4]
push eax
call fcn.004ac3d0
push dword [esp]
call fcn.004aa470
mov ebx, eax
cmp ebx, 3
jne 0x41cb77
push edx
call fcn.004ac330
pop edx
push eax
mov edx, 0x5600aa
push edx
call fcn.004ac370
mov edx, dword [esp + 4]
push edx
call fcn.004ac370
lea eax, [esp + 4]
push eax
call fcn.004ac3d0
mov edx, dword [esp]
push edx
call fcn.004ac330
pop edx
push eax
push edx
call fcn.004ac370
pop eax
push eax
call fcn.0043d6b0
pop edx
add eax, edx
jmp 0x41cb9e
push dword [esp]
call fcn.004ac530
add esp, 4
pop ebx
ret

Function at 0x4219c0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.004ac4d0
mov dword [esp], 0
mov eax, str.GlobalMyApplication1
push eax
push 0
push 0
call sub.KERNEL32.dll_CreateMutexW
mov dword [0xc06548], eax
mov ebx, dword [0xc06548]
and ebx, ebx
je 0x421a0a
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x421a0a
mov eax, 1
jmp 0x421a0c
xor eax, eax
and eax, eax
je 0x421a25
push dword [0xc06548]
call sub.KERNEL32.dll_CloseHandle
mov dword [0xc06548], 0
cmp dword [0xc06548], 0
je 0x421a34
xor eax, eax
jmp 0x421a3d
mov eax, 1
jmp 0x421a3d
add esp, 4
pop ebx
ret