joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fbb0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x340
push esi
mov esi, ecx
mov eax, dword [esi + 0x960]
test eax, eax
jne 0x43fbcb
pop esi
add esp, 0x340
ret
mov eax, dword [eax + 0x1c]
push ebx
push edi
push 0
push 0
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str..prt
push 0x5c
push str.PROTOKOL
push 0x49b7b8
lea ecx, [esp + 0x15c]
push str._s_s_c_s
push ecx
call fcn.0045d67e
add esp, 0x18
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
xor edi, edi
cmp ebx, 0xffffffff
jne 0x43fc2e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x43fce3
lea ecx, [esp + 0x38]
push ecx
call fcn.00429920
add esp, 4
test eax, eax
je 0x43fc7a
mov ecx, dword [esi + 0x960]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x48]
push edx
push 0
push 1
call fcn.00469e56
mov ecx, dword [esi + 0x960]
push 1
push 0
push 0
push 0
push 0
push 4
push 0
push eax
call fcn.00469ea2
mov edi, 1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
cmp eax, 1
jne 0x43fcd7
lea ecx, [esp + 0x3c]
push ecx
call fcn.00429920
add esp, 4
test eax, eax
je 0x43fc81
mov ecx, dword [esi + 0x960]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
push edi
push 1
call fcn.00469e56
mov ecx, dword [esi + 0x960]
push 1
push 0
push 0
push 0
push 0
push 4
push 0
push eax
call fcn.00469ea2
inc edi
jmp 0x43fc81
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
pop ebp
jne 0x43fd3d
mov ecx, dword [esi + 0x960]
push 0
push 0
push 0
push 0
push 0x480618
push 0
push 1
call fcn.00469e56
mov ecx, dword [esi + 0x960]
push 0
push 0
push 0
push 0
push 0
push 4
push 0
push eax
call fcn.00469ea2
mov ecx, dword [esi + 0x91c]
call fcn.00451f70
mov ecx, dword [esi + 0x80]
push 0
call fcn.0046eb9f
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x340
ret
mov ecx, dword [esi + 0x960]
call fcn.0046ebc0
mov ecx, dword [esi + 0x960]
push 2
push 2
push 0
call fcn.00469d2d
mov ecx, dword [esi + 0x91c]
call fcn.00451f30
mov ecx, dword [esi + 0x80]
push 1
call fcn.0046eb9f
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x340
ret
Function at 0x4489c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x80
push esi
mov esi, ecx
cmp dword [esi + 0x8b0], 1
jne 0x43f43e
lea eax, [esp + 4]
push 0x481f20
push eax
call fcn.0045d67e
add esp, 8
push 0
push 0x34
lea ecx, [esp + 0xc]
push ecx
call fcn.004727d9
cmp eax, 6
jne 0x43f43e
mov ecx, esi
call fcn.0043c700
mov ecx, esi
mov dword [esi + 0x8b0], 0
call fcn.0043ea50
push 0
call fcn.0045eaf7
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
mov esi, ecx
mov dword [esi + 0x9a0], 0
call fcn.0043ce40
mov ecx, esi
call fcn.0043c920
mov dword [esi + 0x990], 0
call fcn.0043d470
mov eax, dword [0x49d828]
test eax, eax
je 0x4489f6
call fcn.0043d470
mov ecx, esi
call fcn.0046ebc0
mov ecx, esi
call fcn.0046d812
mov ecx, dword [esi + 0x918]
call fcn.00451f70
mov ecx, dword [esi + 0x95c]
push 1
call fcn.0046eb9f
mov ecx, dword [esi + 0x934]
call fcn.00451f30
mov ecx, dword [esi + 0x90c]
call fcn.00451f30
cmp dword [esi + 0x8b0], 1
mov ecx, dword [esi + 0x924]
jne 0x448a48
call fcn.00451f30
jmp 0x448a4d
call fcn.00451f70
mov ecx, dword [esi + 0x920]
call fcn.00451f30
mov eax, dword [esi + 0x8bc]
test eax, eax
mov ecx, dword [esi + 0x920]
jle 0x448a7a
call fcn.00451f30
mov ecx, dword [esi + 0x91c]
call fcn.00451f30
jmp 0x448a8a
call fcn.00451f70
mov ecx, dword [esi + 0x91c]
call fcn.00451f70
mov ecx, dword [esi + 0x92c]
call fcn.00451f30
mov ecx, dword [esi + 0x928]
call fcn.00451f30
mov ecx, dword [esi + 0x84]
push 1
call fcn.0046eb9f
mov ecx, dword [esi + 0x88]
push 1
call fcn.0046eb9f
mov ecx, dword [esi + 0x910]
call fcn.00451f30
mov ecx, dword [esi + 0x914]
call fcn.00451f30
mov ecx, dword [esi + 0x904]
test ecx, ecx
je 0x448ae1
push 0
call fcn.0046eb63
mov ecx, dword [esi + 0x900]
push 0
call fcn.00430120
mov eax, dword [esi + 0x95c]
mov eax, dword [eax + 0x1c]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov ecx, dword [esi + 0x950]
push 1
jne 0x448b1a
push 0x482124
jmp 0x448b1f
push 0x482110
call fcn.00451da0
cmp dword [0x49d828], 1
mov ecx, esi
jne 0x448b35
pop esi
jmp 0x43f400
call fcn.00445e40
mov ecx, esi
call fcn.0043c920
mov ecx, esi
pop esi
jmp fcn.0043ff60
Function at 0x449307
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x49d810]
test eax, eax
push esi
mov esi, ecx
je 0x44947e
mov dword [0x49d828], 0
call fcn.0043f460
test eax, eax
je 0x44947e
mov eax, dword [0x49d4e8]
mov ecx, dword [0x49d4ec]
mov edx, dword [0x49d4e0]
mov dword [0x49d618], eax
mov eax, dword [0x49d4e4]
mov dword [0x49d61c], ecx
mov ecx, dword [0x49d4f0]
mov dword [0x49d620], edx
mov edx, dword [0x49d4f4]
mov dword [0x49d624], eax
mov dword [0x49d628], ecx
mov dword [0x49d62c], edx
mov ecx, dword [esi + 0x93c]
call int.004224a0
mov ecx, dword [esi + 0x940]
call int.004224a0
mov ecx, dword [esi + 0x944]
call int.004224a0
mov ecx, dword [esi + 0x948]
call int.004224a0
mov ecx, dword [esi + 0x934]
call fcn.00451f70
mov ecx, dword [esi + 0x910]
call fcn.00451f70
mov ecx, dword [esi + 0x914]
call fcn.00451f70
mov ecx, dword [esi + 0x91c]
call fcn.00451f70
mov ecx, dword [esi + 0x920]
call fcn.00451f70
mov ecx, dword [esi + 0x924]
call fcn.00451f70
mov ecx, dword [esi + 0x928]
call fcn.00451f30
mov ecx, dword [esi + 0x928]
call fcn.00451f70
mov ecx, esi
call fcn.0043f8f0
mov ecx, dword [esi + 0x92c]
call fcn.00451f70
mov ecx, dword [esi + 0x90c]
call fcn.00451f70
mov ecx, dword [esi + 0x84]
push 0
call fcn.0046eb9f
mov ecx, dword [esi + 0x88]
push 0
call fcn.0046eb9f
mov eax, dword [0x49d814]
test eax, eax
jne 0x44946b
mov dword [0x49d6b0], 0
mov dword [0x49d6b4], 0
mov dword [0x49d6b8], 0
mov dword [0x49d6bc], 0
mov dword [0x49d6a8], 0
mov dword [0x49d6ac], 0
mov ecx, esi
call fcn.00448fe0
test eax, eax
jne 0x44947e
mov ecx, esi
pop esi
jmp fcn.004489c0
pop esi
ret
Function at 0x453da0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4782b8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xc
test eax, eax
je 0x453dcd
cmp dword [eax], 0
je 0x453dcd
lea ecx, [eax + 8]
cmp dword [ecx], 0
jne 0x453dde
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
fld dword [esp + 0x20]
fcomp qword [0x479a20]
fnstsw ax
test ah, 5
jp 0x453df7
mov dword [esp + 0x20], 0
fld dword [esp + 0x24]
fcomp qword [0x479a20]
fnstsw ax
test ah, 5
jp 0x453e10
mov dword [esp + 0x20], 0
fld dword [esp + 0x28]
fcomp qword [0x479a20]
fnstsw ax
test ah, 5
jp 0x453e29
mov dword [esp + 0x20], 0
fld dword [esp + 0x2c]
fcomp qword [0x479a20]
fnstsw ax
test ah, 5
jp 0x453e42
mov dword [esp + 0x20], 0
push esi
mov esi, dword [esp + 0x34]
test esi, esi
je 0x453e52
cmp esi, 1
je 0x453e52
xor esi, esi
push 0
lea eax, [esp + 0x24]
push eax
push 9
push 2
push 0x44d
push ecx
call fcn.00476baa
mov ecx, dword [esp + 0x38]
add esp, 0x18
push 1
push ecx
lea ecx, [esp + 0x10]
call fcn.00476430
mov eax, dword [esp + 8]
test eax, eax
mov dword [esp + 0x18], 0
jne 0x453eae
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.0047653d
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push esi
push 0x4967a0
push 0
push 0
push 4
lea edx, [esp + 0x1c]
push 0x6b
push edx
call fcn.00476baa
fld dword [esp + 0x40]
fmul dword [0x484398]
add esp, 0x18
lea ecx, [esp + 0xc]
fstp dword [esp]
call fcn.00452de0
fld dword [esp + 0x2c]
fmul dword [0x484398]
push ecx
lea ecx, [esp + 0xc]
fstp dword [esp]
call fcn.00452e10
fld dword [esp + 0x28]
fmul dword [0x484398]
push ecx
lea ecx, [esp + 0xc]
fstp dword [esp]
call fcn.00452d80
fld dword [esp + 0x30]
fmul dword [0x484398]
push ecx
lea ecx, [esp + 0xc]
fstp dword [esp]
call fcn.00452db0
push 0
lea eax, [esp + 8]
push eax
push 4
push 2
lea ecx, [esp + 0x18]
push 0x69
push ecx
call fcn.00476baa
fld dword [esp + 0x1c]
fmul dword [0x4843d0]
mov edx, dword [esp + 0x50]
push 0
lea eax, [esp + 0x20]
push eax
fstp dword [edx]
push 4
push 2
lea ecx, [esp + 0x30]
push 0x6a
push ecx
call fcn.00476baa
fld dword [esp + 0x34]
fmul dword [0x4843d0]
mov edx, dword [esp + 0x6c]
add esp, 0x30
lea ecx, [esp + 8]
fstp dword [edx]
mov dword [esp + 0x18], 0xffffffff
call fcn.0047653d
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4556c0
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 0x455713
call fcn.0047415a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x455713
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x455709
xor eax, eax
jmp 0x455828
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 0x455742
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 0x455742
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 0x455825
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 0x455771
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 0x455825
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4557af
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4557af
test edi, edi
mov dword [ebp - 8], edi
je 0x4557a9
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 0x455815
and dword [ebp + 0x10], 0
jmp 0x455815
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x455815
push 0xc
call fcn.0046f564
mov esi, eax
test esi, esi
pop ecx
je 0x4557f4
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 0x4557f6
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x455810
push dword [ebp - 8]
call fcn.0046a6a4
jmp 0x455815
call fcn.0046a67b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x45577d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x465a6f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x497808]
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 0x465a98
xor eax, eax
jmp 0x465c06
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 + 0x4a0cc0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x465acb
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004681b8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x465b9d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x465bd8
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 0x465b26
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x465b17
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 0x465afa
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 0x465b66
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x465b6f
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x465aeb
jmp 0x465b71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x465c01
cmp dword [ebp - 8], edi
je 0x465bd8
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x465bca
call fcn.0045f9ca
mov dword [eax], 9
call fcn.0045f9d3
mov dword [eax], esi
jmp 0x465bd3
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 0x465bbf
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x465b71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x465b71
push dword [ebp - 8]
call fcn.0045f9dc
pop ecx
or eax, 0xffffffff
jmp 0x465c04
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x465bed
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x465bed
xor eax, eax
jmp 0x465c04
call fcn.0045f9ca
mov dword [eax], 0x1c
call fcn.0045f9d3
mov dword [eax], edi
jmp 0x465bd3
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0045ef61
leave
ret
Function at 0x46714f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49fc10], ebx
push esi
push edi
jne 0x4671cf
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46720a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4883a8
push edi
call esi
test eax, eax
mov dword [0x49fc10], eax
je 0x46720a
push 0x488398
push edi
call esi
push 0x488384
push edi
mov dword [0x49fc14], eax
call esi
cmp dword [0x49f7d8], 2
mov dword [0x49fc18], eax
jne 0x4671cf
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x49fc20], eax
je 0x4671cf
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49fc1c], eax
mov eax, dword [0x49fc1c]
test eax, eax
je 0x467214
call eax
test eax, eax
je 0x4671fb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49fc20]
test eax, eax
je 0x4671fb
test byte [ebp - 8], 1
jne 0x467214
cmp dword [0x49f7e4], 4
jb 0x46720e
or byte [ebp + 0x12], 0x20
jmp 0x467233
xor eax, eax
jmp 0x467243
or byte [ebp + 0x12], 4
jmp 0x467233
mov eax, dword [0x49fc14]
test eax, eax
je 0x467233
call eax
mov ebx, eax
test ebx, ebx
je 0x467233
mov eax, dword [0x49fc18]
test eax, eax
je 0x467233
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49fc10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x467d7a
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.0045e6f0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x467e0f
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 [0x49f7d8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x467e0f
cmp eax, 1
je 0x467e27
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 0x467e0f
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x467de4
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x467e0b
xor eax, eax
inc eax
jmp 0x467e43
cmp esi, ebx
jae 0x467e13
xor eax, eax
jmp 0x467e43
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49f7d8]
jmp 0x467e29
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 0x468e0b
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 0x468fd1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4a0cc0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x468fd1
test cl, 0x48
je 0x468e71
mov al, byte [eax + 5]
cmp al, 0xa
je 0x468e71
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 0x468ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x468eab
call fcn.0045f9ca
mov dword [eax], 9
call fcn.0045f9d3
mov dword [eax], esi
jmp 0x468ebb
cmp eax, 0x6d
je 0x468fd1
push eax
call fcn.0045f9dc
pop ecx
or eax, 0xffffffff
jmp 0x468fd3
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 0x468fcc
test edx, edx
je 0x468ee6
cmp byte [ebx], 0xa
jne 0x468ee6
or al, 4
jmp 0x468ee8
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 0x468fc6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x468fb6
cmp al, 0xd
je 0x468f1c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x468fa8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x468f36
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x468f31
add dword [ebp + 0x10], 2
jmp 0x468f8a
mov dword [ebp + 0x10], eax
jmp 0x468fa4
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 0x468f5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x468fa4
cmp dword [ebp - 0xc], 0
je 0x468fa4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x468f7f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x468f8a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x468fa7
cmp ebx, dword [ebp + 0xc]
jne 0x468f8f
cmp byte [ebp - 1], 0xa
jne 0x468f8f
mov byte [ebx], 0xa
jmp 0x468fa7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00465950
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x468fa8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x468f00
jmp 0x468fc6
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x468fc6
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x468fd3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x469695
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 0x469700
push 0x3d
push dword [ebp + 8]
call fcn.0045f72c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x469700
cmp dword [ebp + 8], esi
je 0x469700
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x49f7f8]
cmp eax, dword [0x49f7fc]
jne 0x4696e6
mov edi, eax
call fcn.00469634
mov dword [0x49f7f8], eax
cmp eax, ebx
jne 0x46973f
cmp dword [ebp + 0xc], ebx
je 0x469708
cmp dword [0x49f800], ebx
je 0x469708
call fcn.00468adc
test eax, eax
je 0x46973f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x469843
push 4
call fcn.0045e1f2
cmp eax, ebx
pop ecx
mov dword [0x49f7f8], eax
je 0x469700
mov dword [eax], ebx
cmp dword [0x49f800], ebx
jne 0x46973f
push 4
call fcn.0045e1f2
cmp eax, ebx
pop ecx
mov dword [0x49f800], eax
je 0x469700
mov dword [eax], ebx
mov ebx, dword [0x49f7f8]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004695e7
mov edi, eax
test edi, edi
pop ecx
jl 0x469798
cmp dword [ebx], 0
je 0x469798
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0045df2d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x469780
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4697ce
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x469777
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0045df9e
test eax, eax
pop ecx
pop ecx
je 0x4697ce
jmp 0x4697c9
cmp dword [ebp - 4], 0
jne 0x46983c
test edi, edi
jge 0x4697a8
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0045df9e
test eax, eax
pop ecx
pop ecx
je 0x469700
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x49f7f8], eax
cmp dword [ebp + 0xc], 0
je 0x469825
push dword [ebp + 8]
call fcn.0045f450
inc eax
inc eax
push eax
call fcn.0045e1f2
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x469825
push dword [ebp + 8]
push esi
call fcn.004650f0
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 0x46981e
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0045df2d
pop ecx
cmp dword [ebp - 4], 0
je 0x469834
push dword [ebp + 8]
call fcn.0045df2d
pop ecx
mov eax, dword [ebp - 8]
jmp 0x469703
push esi
call fcn.0045df2d
pop ecx
xor eax, eax
jmp 0x469703
Function at 0x46b07e
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 0x46b0b5
call fcn.0047415a
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 0x46b0c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x46b0ff
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x46b0e4
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x46b0ec
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x46b0fd
test ax, ax
jne 0x46b0fd
test si, si
je 0x46b0ff
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x46b10e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret