joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c17
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4407f0]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push ebx
call esi
test eax, eax
je 0x404c64
mov eax, dword [ebp - 0x18]
cmp eax, dword [str.RAB1]
je 0x404d2f
mov dword [ebp - 0x10], 0x570
cmp dword [ebp - 0x10], edi
pop edi
pop esi
pop ebx
jne 0x404c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, dword [ebp - 0x10]
call fcn.00410a94
leave
ret
cmp dword [ebp - 8], edi
je 0x404db0
push edi
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 0x14]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
call esi
test eax, eax
je 0x404da7
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x404db0
shr eax, 1
push edi
mov word [ebp + eax*2 - 0x228], di
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
test eax, eax
je 0x404da7
cmp dword [ebp - 8], edi
je 0x404db0
push edi
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
je 0x404da7
cmp dword [ebp - 8], edi
je 0x404db0
push dword [ebp + 0xc]
lea eax, [ebp - 0x228]
push eax
call fcn.0041c2c2
test eax, eax
pop ecx
pop ecx
je 0x404d47
mov eax, dword [ebp - 0xc]
push 1
push edi
add eax, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x404da7
push edi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
jne 0x404c8c
jmp 0x404da7
cmp dword [ebp + 0x10], edi
je 0x404da7
push dword [ebp - 0xc]
call fcn.00410d74
pop ecx
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push eax
push ebx
call esi
cmp eax, edi
je 0x404d9e
push edi
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push ebx
call esi
cmp eax, edi
je 0x404d9e
mov esi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0xc]
push esi
call fcn.004032ed
sub eax, dword [ebp - 0x18]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x28], eax
jne 0x404dbc
mov dword [ebp - 0x10], 0x17
push dword [ebp - 0x1c]
call fcn.00410c5c
pop ecx
cmp dword [ebp - 8], edi
jne 0x404c6b
mov dword [ebp - 0x10], 0x490
jmp 0x404c6b
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x404dcd
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x404ddf
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x404da7
mov dword [eax], 0x80
jmp 0x404da7
Function at 0x40edf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40ee47
call fcn.0042ccba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40ee47
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40ee3d
xor eax, eax
jmp 0x40ef5c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40ee76
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40ee76
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x40ef59
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x40eea5
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x40ef59
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40eee3
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40eee3
test edi, edi
mov dword [ebp - 8], edi
je 0x40eedd
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x40ef49
and dword [ebp + 0x10], 0
jmp 0x40ef49
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40ef49
push 0xc
call fcn.0042309b
mov esi, eax
test esi, esi
pop ecx
je 0x40ef28
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x40ef2a
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40ef44
push dword [ebp - 8]
call fcn.0041cff0
jmp 0x40ef49
call fcn.0041cfc7
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x40eeb1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410b49
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004145fe
xor esi, esi
inc esi
cmp dword [0x443b68], esi
pop ecx
jne 0x410b71
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x443b64], esi
mov byte [0x443b60], al
jne 0x410bd7
mov ecx, dword [0x44540c]
test ecx, ecx
je 0x410bb8
mov eax, dword [0x445408]
sub eax, 4
cmp eax, ecx
jmp 0x410bb1
mov eax, dword [eax]
test eax, eax
je 0x410ba3
call eax
mov eax, dword [0x445408]
sub eax, 4
cmp eax, dword [0x44540c]
mov dword [0x445408], eax
jae 0x410b9b
mov eax, 0x43f098
mov esi, 0x43f0a0
cmp eax, esi
mov edi, eax
jae 0x410bd7
mov eax, dword [edi]
test eax, eax
je 0x410bd0
call eax
add edi, 4
cmp edi, esi
jb 0x410bc8
mov eax, 0x43f0a4
mov esi, 0x43f0ac
cmp eax, esi
mov edi, eax
jae 0x410bf6
mov eax, dword [edi]
test eax, eax
je 0x410bef
call eax
add edi, 4
cmp edi, esi
jb 0x410be7
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x410c07
push 8
call fcn.0041456a
jmp 0x410c19
push dword [ebp + 8]
mov dword [0x443b68], 1
call fcn.00410aa2
pop ecx
pop ebp
ret
Function at 0x412324
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x437788
call fcn.004117e4
mov edi, 0x94
mov eax, edi
call fcn.00410d90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x443b28], ecx
mov eax, dword [esi + 4]
mov dword [0x443b34], eax
mov edx, dword [esi + 8]
mov dword [0x443b38], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x443b2c], esi
cmp ecx, 2
je 0x412384
or esi, 0x8000
mov dword [0x443b2c], esi
shl eax, 8
add eax, edx
mov dword [0x443b30], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4123bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4123bf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4123d7
cmp eax, 0x20b
je 0x4123c4
mov dword [ebp - 0x1c], esi
jmp 0x4123eb
cmp dword [ecx + 0x84], 0xe
jbe 0x4123bf
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4123e5
cmp dword [ecx + 0x74], 0xe
jbe 0x4123bf
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004146d1
pop ecx
test eax, eax
jne 0x4123ff
push 0x1c
call fcn.00412300
pop ecx
call fcn.00414266
test eax, eax
jne 0x412410
push 0x10
call fcn.00412300
pop ecx
call fcn.0041462f
mov dword [ebp - 4], esi
call fcn.00416668
test eax, eax
jge 0x412429
push 0x1b
call fcn.004122db
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x445400], eax
call fcn.00416546
mov dword [0x443b6c], eax
call fcn.004164a4
test eax, eax
jge 0x41244f
push 8
call fcn.004122db
pop ecx
call fcn.00416271
test eax, eax
jge 0x412460
push 9
call fcn.004122db
pop ecx
call fcn.00410ae4
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x412473
push eax
call fcn.004122db
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00416208
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x412494
movzx eax, word [ebp - 0x34]
jmp 0x412497
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041c28c
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4124b5
push edi
call fcn.00410c1c
call fcn.00410c3e
jmp 0x4124e7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041181f
ret
Function at 0x416058
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4407f0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x440e18]
je 0x416085
inc eax
cmp eax, 0x12
jb 0x416076
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x440e18]
jne 0x4161b9
mov eax, dword [0x443b74]
cmp eax, 1
je 0x416194
cmp eax, edx
jne 0x4160b5
cmp dword [0x440804], 1
je 0x416194
cmp ecx, 0xfc
je 0x4161b9
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4160ee
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00411c40
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00411130
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416130
lea eax, [ebp - 0x10c]
push eax
call fcn.00411130
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4378b4
push edi
call fcn.004116c0
add esp, 0x10
push edi
call fcn.00411130
push dword [esi + 0x440e1c]
mov ebx, eax
call fcn.00411130
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00410d90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00411c40
push edi
push ebx
call fcn.00411c50
push 0x4378b0
push ebx
call fcn.00411c50
push dword [esi + 0x440e1c]
push ebx
call fcn.00411c50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004188fa
add esp, 0x2c
jmp 0x4161b9
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x440e1c]
push dword [esi]
call fcn.00411130
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00410a94
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418bad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4407f0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x418bd6
xor eax, eax
jmp 0x418d44
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4450a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x418c09
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041a40f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x418cdb
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x418d16
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x418c64
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x418c55
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x418c38
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418ca4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x418cad
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x418c29
jmp 0x418caf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x418d3f
cmp dword [ebp - 8], edi
je 0x418d16
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x418d08
call fcn.004137ca
mov dword [eax], 9
call fcn.004137d3
mov dword [eax], esi
jmp 0x418d11
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418cfd
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x418caf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x418caf
push dword [ebp - 8]
call fcn.004137dc
pop ecx
or eax, 0xffffffff
jmp 0x418d42
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x418d2b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x418d2b
xor eax, eax
jmp 0x418d42
call fcn.004137ca
mov dword [eax], 0x1c
call fcn.004137d3
mov dword [eax], edi
jmp 0x418d11
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00410a94
leave
ret
Function at 0x4196eb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00410d90
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419780
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x443b28]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x419780
cmp eax, 1
je 0x419798
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419780
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x419755
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41977c
xor eax, eax
inc eax
jmp 0x4197b4
cmp esi, ebx
jae 0x419784
xor eax, eax
jmp 0x4197b4
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x443b28]
jmp 0x41979a
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a757
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41a91d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4450a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41a91d
test cl, 0x48
je 0x41a7bd
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41a7bd
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a80f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41a7f7
call fcn.004137ca
mov dword [eax], 9
call fcn.004137d3
mov dword [eax], esi
jmp 0x41a807
cmp eax, 0x6d
je 0x41a91d
push eax
call fcn.004137dc
pop ecx
or eax, 0xffffffff
jmp 0x41a91f
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41a918
test edx, edx
je 0x41a832
cmp byte [ebx], 0xa
jne 0x41a832
or al, 4
jmp 0x41a834
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41a912
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41a902
cmp al, 0xd
je 0x41a868
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41a8f4
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41a882
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41a87d
add dword [ebp + 0x10], 2
jmp 0x41a8d6
mov dword [ebp + 0x10], eax
jmp 0x41a8f0
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a8aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a8f0
cmp dword [ebp - 0xc], 0
je 0x41a8f0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41a8cb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41a8d6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41a8f3
cmp ebx, dword [ebp + 0xc]
jne 0x41a8db
cmp byte [ebp - 1], 0xa
jne 0x41a8db
mov byte [ebx], 0xa
jmp 0x41a8f3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a8e
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41a8f4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41a84c
jmp 0x41a912
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41a912
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41a91f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bb85
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x41bbf0
push 0x3d
push dword [ebp + 8]
call fcn.00412787
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41bbf0
cmp dword [ebp + 8], esi
je 0x41bbf0
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x443b48]
cmp eax, dword [0x443b4c]
jne 0x41bbd6
mov edi, eax
call fcn.0041bb24
mov dword [0x443b48], eax
cmp eax, ebx
jne 0x41bc2f
cmp dword [ebp + 0xc], ebx
je 0x41bbf8
cmp dword [0x443b50], ebx
je 0x41bbf8
call fcn.0041b2a9
test eax, eax
je 0x41bc2f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41bd33
push 4
call fcn.00410d74
cmp eax, ebx
pop ecx
mov dword [0x443b48], eax
je 0x41bbf0
mov dword [eax], ebx
cmp dword [0x443b50], ebx
jne 0x41bc2f
push 4
call fcn.00410d74
cmp eax, ebx
pop ecx
mov dword [0x443b50], eax
je 0x41bbf0
mov dword [eax], ebx
mov ebx, dword [0x443b48]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041bad7
mov edi, eax
test edi, edi
pop ecx
jl 0x41bc88
cmp dword [ebx], 0
je 0x41bc88
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00410c5c
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41bc70
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41bcbe
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41bc67
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004119b6
test eax, eax
pop ecx
pop ecx
je 0x41bcbe
jmp 0x41bcb9
cmp dword [ebp - 4], 0
jne 0x41bd2c
test edi, edi
jge 0x41bc98
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004119b6
test eax, eax
pop ecx
pop ecx
je 0x41bbf0
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x443b48], eax
cmp dword [ebp + 0xc], 0
je 0x41bd15
push dword [ebp + 8]
call fcn.00411130
inc eax
inc eax
push eax
call fcn.00410d74
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41bd15
push dword [ebp + 8]
push esi
call fcn.00411c40
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41bd0e
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00410c5c
pop ecx
cmp dword [ebp - 4], 0
je 0x41bd24
push dword [ebp + 8]
call fcn.00410c5c
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41bbf3
push esi
call fcn.00410c5c
pop ecx
xor eax, eax
jmp 0x41bbf3
Function at 0x41d7ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x41d7e2
call fcn.0042ccba
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d7f3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41d82c
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41d811
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41d819
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41d82a
test ax, ax
jne 0x41d82a
test si, si
je 0x41d82c
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41d83b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret