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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
mov ebx, ecx
mov dword [ebp - 8], 1
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push str.JavaHome
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402b4d
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040359e
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.JavaHome
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402b4c
push esi
mov ecx, edi
call fcn.00401fe4
push esi
call fcn.004035a7
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040354f
leave
ret

Function at 0x402bea
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
mov esi, 0x104
push edi
lea ecx, [ebp - 0x18]
mov edi, edx
call fcn.00402055
push eax
mov ecx, edi
call fcn.0040201d
lea ecx, [ebp - 0x18]
call fcn.004016f9
push ecx
push esi
mov ecx, edi
call fcn.00402ed3
push esi
push ecx
mov ecx, edi
call fcn.0040330b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jne 0x402c56
push ecx
add esi, 0x104
mov ecx, edi
push esi
call fcn.00402ed3
push esi
push ecx
mov ecx, edi
call fcn.0040330b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
je 0x402c32
test eax, eax
jne 0x402c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402c74
add eax, 0xfffffefc
push ecx
add eax, esi
mov ecx, edi
push eax
call fcn.00402ed3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402c79
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x78]
mov esi, edx
call fcn.00402066
push 0x44
pop eax
push eax
mov dword [ebp - 0x60], eax
xor edi, edi
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00405190
push 0x10
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00405190
add esp, 0x18
mov ecx, esi
call fcn.00401fcf
test al, al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
je 0x402ccf
push edi
jmp 0x402cd5
call fcn.00402abc
push eax
push edi
push 0x20
push edi
push edi
push edi
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040330b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
lea ecx, [ebp - 0x78]
setne bl
call fcn.004016f9
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040354f
leave
ret
Function at 0x402d48
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0
mov dword [ebp - 0x10], edx
mov ebx, ecx
call fcn.00402abc
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x402e03
push edi
call fcn.0040359e
pop ecx
mov esi, eax
mov ecx, ebx
push esi
push edi
push 0
call fcn.00402abc
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x402dfc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x41538c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x402dfc
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x20], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x1c], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402ebf
lea ecx, [ebp - 0x38]
push dword [eax + 4]
push dword [eax]
call fcn.0040312f
mov edi, dword [ebp - 0x10]
mov esi, eax
mov al, 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x402e05
push esi
call fcn.004035a7
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040354f
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x496336
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c5dd0]
jne 0x496340
repz ret
jmp fcn.0049a98f

Function at 0x498d20
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c5dd0]
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.00493202
and dword [ebp - 0x14], 0
cmp dword [0x4c8cdc], 0
mov dword [ebp - 0x18], eax
jne 0x498dd3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x498e7b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a3030
push ebx
call edi
test eax, eax
je 0x498e7b
mov esi, dword [fcn.0048f480]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c8cdc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c8ce0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c8ce4], eax
call edi
push eax
call esi
mov dword [0x4c8cec], eax
test eax, eax
je 0x498dd3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c8ce8], eax
mov eax, dword [0x4c8ce8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048f484]
cmp eax, ecx
je 0x498e2c
cmp dword [0x4c8cec], ecx
je 0x498e2c
push eax
call esi
push dword [0x4c8cec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x498e2c
test ebx, ebx
je 0x498e2c
call edi
test eax, eax
je 0x498e23
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x498e23
test byte [ebp - 8], 1
jne 0x498e2c
or dword [ebp + 0x10], 0x200000
jmp 0x498e5f
mov eax, dword [0x4c8ce0]
cmp eax, dword [ebp - 0x18]
je 0x498e5f
push eax
call esi
test eax, eax
je 0x498e5f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x498e5f
mov eax, dword [0x4c8ce4]
cmp eax, dword [ebp - 0x18]
je 0x498e5f
push eax
call esi
test eax, eax
je 0x498e5f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c8cdc]
call esi
test eax, eax
je 0x498e7b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x498e7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496336
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x405ae2
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x405afb
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041b9b0
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + esi - 0x44], 0
mov byte [ebp + esi - 0x43], 0
mov byte [ebp + esi - 0x42], 0
mov byte [ebp + esi - 0x41], 1
add esi, 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004059a5
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041b9b0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov dword [ebp + 0x4c], eax
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
xor edi, edi
mov eax, dword [ebp + edi + 0x4c]
test eax, eax
jbe 0x405bb2
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004059a5
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041b9b0
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x405ba0
dec dword [ebp + 0x6c]
jne 0x405b79
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.0041b9b0
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x405b6e
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040cb7e
push esi
lea eax, [ebp]
push eax
call fcn.0040cb7e
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040cb7e
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040cb7e
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20

Function at 0x405e79
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x405ecb
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
call fcn.004048b2
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004059a5
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x405eb0
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405ef3
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.004059a5
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041b9b0
add esp, 0xc
pop esi
leave
ret 8
Function at 0x410353
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4
Function at 0x419625
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x4280d8
push 1
xor ebx, ebx
push ebx
push 0x428188
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4196f6
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x428178
push eax
call dword [ecx]
test eax, eax
jl 0x4196ed
cmp byte [ebp + 8], bl
je 0x419678
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x419695
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4196a7
push 0x427554
jmp 0x4196aa
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x4196bf
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4196d0
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4196e4
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x419710
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x41debb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c2a0]
jne 0x41dec5
repz ret
jmp fcn.00422acb

Function at 0x424375
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041df3c
and dword [ebp - 4], 0
cmp dword [0x44c378], 0
mov ebx, eax
jne 0x424426
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4244d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4244d7
push eax
call fcn.0041deca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44c378], eax
call esi
push eax
call fcn.0041deca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44c37c], eax
call esi
push eax
call fcn.0041deca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44c380], eax
call esi
push eax
call fcn.0041deca
pop ecx
mov dword [0x44c388], eax
test eax, eax
je 0x424426
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041deca
pop ecx
mov dword [0x44c384], eax
mov eax, dword [0x44c384]
cmp eax, ebx
je 0x42447e
cmp dword [0x44c388], ebx
je 0x42447e
push eax
call fcn.0041df45
push dword [0x44c388]
mov esi, eax
call fcn.0041df45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42447e
test edi, edi
je 0x42447e
call esi
test eax, eax
je 0x424475
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424475
test byte [ebp - 0xc], 1
jne 0x42447e
or dword [ebp + 0x10], 0x200000
jmp 0x4244b7
mov eax, dword [0x44c37c]
cmp eax, ebx
je 0x4244b7
push eax
call fcn.0041df45
pop ecx
test eax, eax
je 0x4244b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4244b7
mov eax, dword [0x44c380]
cmp eax, ebx
je 0x4244b7
push eax
call fcn.0041df45
pop ecx
test eax, eax
je 0x4244b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c378]
call fcn.0041df45
pop ecx
test eax, eax
je 0x4244d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4244d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411b5a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [str.DH_]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x436588]
je 0x411b8f
inc eax
cmp eax, 0x13
jb 0x411b80
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x436588]
jne 0x411cb5
mov eax, dword [0x438f80]
cmp eax, 1
je 0x411c8d
cmp eax, edx
jne 0x411bbf
cmp dword [0x436004], 1
je 0x411c8d
cmp ecx, 0xfc
je 0x411cb5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411bf5
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004132f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040da90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411c29
mov eax, edi
push eax
call fcn.0040da90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42aa34
push edi
call fcn.00414a80
add esp, 0x10
push edi
call fcn.0040da90
push dword [esi + 0x43658c]
mov ebx, eax
call fcn.0040da90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040d0b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004132f0
push edi
push ebx
call fcn.00413300
push 0x42aa30
push ebx
call fcn.00413300
push dword [esi + 0x43658c]
push ebx
call fcn.00413300
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414981
add esp, 0x2c
jmp 0x411cb5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43658c]
push dword [esi]
call fcn.0040da90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040c82d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x415026
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [str.DH_]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x415057
xor eax, eax
jmp 0x4151e0
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43a4a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x415093
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00416708
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41516e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4151ac
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4150f7
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4150e8
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4150c8
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415137
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x415140
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4150b9
jmp 0x415142
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4151db
cmp dword [ebp - 0x6c], edi
je 0x4151ac
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4151a1
call fcn.0040ebaa
mov dword [eax], 9
call fcn.0040ebb3
mov dword [eax], esi
jmp 0x4151d6
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415196
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x415142
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x415142
push dword [ebp - 0x6c]
call fcn.0040ebbc
pop ecx
jmp 0x4151d6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4151c4
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4151c4
xor eax, eax
jmp 0x4151de
call fcn.0040ebaa
mov dword [eax], 0x1c
call fcn.0040ebb3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4151de
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040c82d
add ebp, 0x3a0
leave
ret
Function at 0x41884a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040d0b0
mov eax, dword [str.DH_]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00414f07
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41897d
push 2
push esi
push dword [ebp + 8]
call fcn.00414f07
add esp, 0xc
cmp eax, ebx
je 0x41897d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41891d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040db50
push 0x8000
push dword [ebp + 8]
call fcn.0041898b
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4188d3
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00415026
add esp, 0xc
cmp eax, 0xffffffff
je 0x4188f3
sub edi, eax
test edi, edi
jg 0x4188cb
jmp 0x41890b
call fcn.0040ebb3
cmp dword [eax], 5
jne 0x418908
call fcn.0040ebaa
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041898b
pop ecx
pop ecx
jmp 0x418965
jge 0x418965
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414f07
push dword [ebp + 8]
call fcn.00416489
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x418965
call fcn.0040ebaa
mov dword [eax], 0xd
call fcn.0040ebb3
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00414f07
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41897f
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040c82d
leave
ret

Function at 0x41d172
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41d1b5
call fcn.004234ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41d1b5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d1d0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041c2d7
test ebx, ebx
mov esi, eax
je 0x41d1ce
test edi, edi
je 0x41d1ce
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4