joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5825f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052c8
xor eax, eax
push ebp
push 0x582762
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e08
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004052d8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x582739
mov eax, ebx
call fcn.00402bac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x582732
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x58271c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x582770
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
je 0x5826c1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.004085d0
mov edx, dword [ebp - 0x10]
mov dx, word [edx]
call fcn.004085c4
lea ecx, [ebp - 0x18]
mov edx, 8
call fcn.0040a52c
mov eax, esi
call fcn.00404e08
push 0x582794
push dword [ebp - 0x18]
push 0x5827b0
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00405198
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
call fcn.0040ae64
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x58271c
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040affc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x582739
mov eax, dword [ebp - 0xc]
call fcn.00402bdc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x582769
lea eax, [ebp - 0x11c]
call fcn.00404e08
lea eax, [ebp - 0x18]
call fcn.00404e08
lea eax, [ebp - 4]
call fcn.00404e08
ret
Function at 0x587d3d
Capabilities:
Read file via mapping

Disassembly:
push 0x587dd8
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x5926d4], eax
cmp dword [0x5926d4], 0
jne 0x587da8
push 0x587dd8
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x5926d4], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x5926d4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x5926d8], eax
cmp dword [0x5926d8], 0
jne 0x587d9d
mov eax, dword [0x5926d4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [0x5926d8]
xor edx, edx
mov dword [eax], edx
jmp 0x587dd4
push 0
push 0
push 0
push 6
mov eax, dword [0x5926d4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x5926d8], eax
cmp dword [0x5926d8], 0
jne 0x587dd4
mov eax, dword [0x5926d4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x402c00
pop dword [ebp - 0x1c]
mov eax, 0x402c00
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xcb500a28
add dword [ebp - 0x2c], 0x83023b23
mov dword [ebp - 0x28], 0xaf7f9865
sub dword [ebp - 0x28], 0x7d4c4c20
mov dword [ebp - 0x24], 0x4292919e
sub dword [ebp - 0x24], 0xf6464d70
mov dword [ebp - 0x20], 0x2cab0f04
add dword [ebp - 0x20], 0xd354f0fc
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x85142c91
sub eax, 0x84d3ac05
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x27d4cdf2
sub dword [ebp - 0x2c], 0xb362649c
mov dword [ebp - 0x28], 0x6715b171
sub dword [ebp - 0x28], 0x25a94ffc
mov dword [ebp - 0x24], 0xaed00a41
add dword [ebp - 0x24], 0xb49f622b
mov dword [ebp - 0x20], 0x554276ed
sub dword [ebp - 0x20], 0x554276ed
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x143cbf14
sub eax, 0x13fc3e40
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3911e
push 0
call eax
mov ecx, 0x5186
xor edi, edi
add edi, eax
mov ebx, 0xa9a11cf5
add ebx, 0x569ff30b
add ebx, dword [ebp - 0x1c]
mov esi, 0xf11a877e
sub esi, 0x2e1de45a
sub dword [ebp - 8], edx
mov edx, dword [ebx]
mov dword [ebp - 0x10], 0x10a2220b
sub edx, esi
xor dword [ebp - 8], edx
mov dword [edi], edx
sub dword [ebp - 0x10], edx
add edi, 0x2c0e6bdf
add edi, 0xd3f19425
add ebx, 0x80298b14
add ebx, 0x7fd674f0
loop 0x402d19
add eax, 0xbaa6e9a1
add eax, 0x455a4f4a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x421500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
push 0x3e9
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x24], esi
call fcn.00423ae0
mov ebp, eax
push esi
mov ebx, dword [esp + 0xec]
push esi
mov dword [esp + 0x58], ebp
lea edi, [ebx + 0x14]
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.0041e510
cmp eax, esi
je 0x421a9a
cmp dword [esp + 0xec], esi
jne 0x421593
lea esi, [eax + 0x18]
push esi
call fcn.0045bc10
add esi, eax
push esi
call fcn.0045bc10
invalid
Function at 0x42cab0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x12d6f18]
xor edx, edx
cmp eax, edx
jne 0x42cad6
xor eax, eax
mov byte [eax + 0x12d6e18], al
inc eax
cmp eax, 0x100
jl 0x42cabe
mov dword [0x12d6f18], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x12d6e18
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42cb67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42cb3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x42cb08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42cbe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x42cc33
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42cc1a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446a24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043ec13
xor ebx, ebx
cmp dword [0x460558], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x446afa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x446bda
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x446bda
push eax
call fcn.0043eba5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x460558], eax
call esi
push eax
call fcn.0043eba5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46055c], eax
call esi
push eax
call fcn.0043eba5
mov dword [0x460560], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043e6ed
test eax, eax
pop ecx
pop ecx
je 0x446ac8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004375c5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x446afa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043eba5
cmp eax, ebx
pop ecx
mov dword [0x460568], eax
je 0x446afa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043eba5
pop ecx
mov dword [0x460564], eax
mov eax, dword [0x460564]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x446b7f
cmp dword [0x460568], ecx
je 0x446b7f
push eax
call fcn.0043ec1c
push dword [0x460568]
mov esi, eax
call fcn.0043ec1c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x446b7f
cmp edi, ebx
je 0x446b7f
call esi
cmp eax, ebx
je 0x446b4c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x446b4c
test byte [ebp - 0x18], 1
jne 0x446b7f
lea eax, [ebp - 0x10]
push eax
call fcn.0043e724
test eax, eax
pop ecx
je 0x446b67
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004375c5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x446b76
or dword [ebp + 0x10], 0x200000
jmp 0x446bba
or dword [ebp + 0x10], 0x40000
jmp 0x446bba
mov eax, dword [0x46055c]
cmp eax, dword [ebp - 8]
je 0x446bba
push eax
call fcn.0043ec1c
cmp eax, ebx
pop ecx
je 0x446bba
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x446bba
mov eax, dword [0x460560]
cmp eax, dword [ebp - 8]
je 0x446bba
push eax
call fcn.0043ec1c
cmp eax, ebx
pop ecx
je 0x446bba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460558]
call fcn.0043ec1c
cmp eax, ebx
pop ecx
je 0x446bda
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x446bdc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 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 0x421f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x421f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421f38
mov eax, 1
add ebx, ebx
jne 0x421f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421f50
jne 0x421f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421f50
xor ecx, ecx
sub eax, 3
jb 0x421f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421ff2
mov ebp, eax
add ebx, ebx
jne 0x421f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421fbc
inc ecx
add ebx, ebx
jne 0x421fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421f9d
jne 0x421fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421fcd
jmp 0x421f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421fdc
add edi, ecx
jmp 0x421f3e
pop esi
mov edi, esi
mov ecx, 0x558
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421ffa
cmp byte [edi], 5
jne 0x421ffa
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 0x421fff
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x422077
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22238]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x222a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42202c
mov ecx, edi
jns 0x42205b
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 + 0x222ac]
or eax, eax
je 0x422071
mov dword [ebx], eax
add ebx, 4
jmp 0x422049
call dword [esi + 0x222a8]
mov ebp, dword [esi + 0x222b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4220ab
sub esp, 0xffffff80
jmp 0x40473a
Function at 0x4014a3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x124]
push ebx
sub esp, 0x13c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 8], eax
call fcn.00407e57
sub esp, 0x10
test eax, eax
jne 0x4015ae
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x11d]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [ebp - 0x11d]
sub esp, 0x10
test eax, eax
jne 0x401564
cmp dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x124]
je 0x40154a
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4015ae
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.004014a3
sub esp, 0xc
test eax, eax
je 0x4014f4
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408b7f
push edx
test eax, eax
je 0x40159f
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
jmp 0x4015ae
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403a1c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 8], 0
mov eax, dword [0x41c460]
je 0x403a4b
test eax, eax
je 0x403a3c
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x41c460], 0
jmp 0x403afd
test eax, eax
je 0x403a61
mov dword [esp], 0
call fcn.00408bf1
push edx
jmp 0x403afd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x42c480]
jbe 0x403afd
cmp dword [0x42c4a8], 0
je 0x403ab4
test byte [0x42c414], 1
je 0x403afd
call fcn.00403948
lea ebx, [ebp - 0x48]
mov dword [esp + 4], str....__d__
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00407088
jmp 0x403afb
mov eax, dword [0x42c4ac]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40397a
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x41c460], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403d4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test eax, eax
js 0x403d90
add eax, dword [0x42c478]
mov dword [esp + 0xc], 0
mov dword [0x428518], eax
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.00403b5c
mov edi, eax
push ecx
test eax, eax
js 0x403ea8
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call fcn.00407c60
sub esp, 0xc
test eax, eax
jne 0x403dd4
mov edi, 0xfffffffd
jmp 0x403ea8
mov eax, dword [ebp - 0x1c]
add dword [0x428518], 4
mov dword [esp], eax
call fcn.00403b5c
mov edi, eax
push edx
test eax, eax
js 0x403ea8
test esi, esi
jne 0x403e61
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x403ea8
cmp eax, 0x4000
mov edx, 0x4000
mov dword [esp + 4], 0x424480
cmovg eax, edx
mov dword [ebp - 0x20], eax
mov dword [esp + 8], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call fcn.00407c60
sub esp, 0xc
test eax, eax
je 0x403dca
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x424480
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00407ca6
sub esp, 0xc
test eax, eax
je 0x403ea3
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
add dword [0x428518], eax
add edi, eax
jmp 0x403df5
lea eax, [ebp - 0x20]
cmp dword [ebp - 0x1c], ebx
cmovle ebx, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [0x40a010]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403dca
mov edi, dword [ebp - 0x20]
add dword [0x428518], edi
jmp 0x403ea8
mov edi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x407760
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40b670
mov dword [ebp - 0x24], 0x40b670
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40b660
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edx
push edx
test eax, eax
je 0x4077bd
xor eax, eax
jmp 0x4077ea
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4077ea
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
sub esp, 0xc
test eax, eax
jne 0x4077b9
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x407822
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x42bf40], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x42bf40
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x4078a0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x4078a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExA]

Function at 0x407b01
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
inc eax
push edx
je 0x407b2f
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407b3a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00407b01
push ecx
cmp eax, 0xffffffff
jne 0x407b5b
xor edi, edi
jmp 0x407b98
mov dword [esp], ebx
mov esi, eax
test edi, 1
je 0x407b90
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
test eax, eax
jne 0x407b89
and edi, 4
jne 0x407b57
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
jmp 0x407b98
mov edi, 1
jmp 0x407b98
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407b6e
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407ba4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
cmp eax, 0xffffffff
jne 0x407bbf
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x407bfc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x407c50
mov dword [ebp - 0xc], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov dword [esp + 8], 0
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add byte [ebp - 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x407c0c
jmp 0x407c55
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x407c9f
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407ca6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x407ce5
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc