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

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x450448]
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 0x424db8
xor eax, eax
jmp 0x424f41
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 + 0x6e5f20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x424df4
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00427ccd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x424ecf
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x424f0d
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 0x424e58
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x424e49
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 0x424e29
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 0x424e98
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x424ea1
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x424e1a
jmp 0x424ea3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x424f3c
cmp dword [ebp - 0x6c], edi
je 0x424f0d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x424f02
call fcn.0041ddee
mov dword [eax], 9
call fcn.0041ddf7
mov dword [eax], esi
jmp 0x424f37
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 0x424ef7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x424ea3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x424ea3
push dword [ebp - 0x6c]
call fcn.0041de00
pop ecx
jmp 0x424f37
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x424f25
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x424f25
xor eax, eax
jmp 0x424f3f
call fcn.0041ddee
mov dword [eax], 0x1c
call fcn.0041ddf7
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x424f3f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041ced8
add ebp, 0x3a0
leave
ret
Function at 0x42775c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6e5e94], ebx
push esi
push edi
jne 0x4277dc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x427817
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x445498
push edi
call esi
test eax, eax
mov dword [0x6e5e94], eax
je 0x427817
push 0x445488
push edi
call esi
push 0x445474
push edi
mov dword [0x6e5e98], eax
call esi
cmp dword [0x6e59d0], 2
mov dword [0x6e5e9c], eax
jne 0x4277dc
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6e5ea4], eax
je 0x4277dc
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6e5ea0], eax
mov eax, dword [0x6e5ea0]
test eax, eax
je 0x427821
call eax
test eax, eax
je 0x427808
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6e5ea4]
test eax, eax
je 0x427808
test byte [ebp - 8], 1
jne 0x427821
cmp dword [0x6e59dc], 4
jb 0x42781b
or byte [ebp + 0x12], 0x20
jmp 0x427840
xor eax, eax
jmp 0x427850
or byte [ebp + 0x12], 4
jmp 0x427840
mov eax, dword [0x6e5e98]
test eax, eax
je 0x427840
call eax
mov ebx, eax
test ebx, ebx
je 0x427840
mov eax, dword [0x6e5e9c]
test eax, eax
je 0x427840
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6e5e94]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427ea7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041c290
mov eax, dword [0x450448]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00424901
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x427fda
push 2
push esi
push dword [ebp + 8]
call fcn.00424901
add esp, 0xc
cmp eax, ebx
je 0x427fda
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x427f7a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041de80
push 0x8000
push dword [ebp + 8]
call fcn.0042887f
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x427f30
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00424d87
add esp, 0xc
cmp eax, 0xffffffff
je 0x427f50
sub edi, eax
test edi, edi
jg 0x427f28
jmp 0x427f68
call fcn.0041ddf7
cmp dword [eax], 5
jne 0x427f65
call fcn.0041ddee
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0042887f
pop ecx
pop ecx
jmp 0x427fc2
jge 0x427fc2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424901
push dword [ebp + 8]
call fcn.0041f315
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 0x427fc2
call fcn.0041ddee
mov dword [eax], 0xd
call fcn.0041ddf7
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.00424901
add esp, 0xc
mov eax, esi
pop edi
jmp 0x427fdc
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041ced8
leave
ret
Function at 0x428d39
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x428d52
or eax, 0xffffffff
jmp 0x428db3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x428daf
push 0x3d
push esi
call fcn.0041e1cd
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x428daf
cmp esi, eax
je 0x428daf
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x6e59f0]
sete cl
cmp eax, dword [0x6e59f4]
mov dword [ebp - 8], ecx
jne 0x428d95
mov edi, eax
call fcn.00428cd8
mov dword [0x6e59f0], eax
cmp eax, ebx
jne 0x428dee
cmp dword [ebp + 0xc], ebx
je 0x428db7
cmp dword [0x6e59f8], ebx
je 0x428db7
call fcn.00428036
test eax, eax
je 0x428dee
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x428dc0
xor eax, eax
jmp 0x428db2
push 4
call fcn.0041c55d
cmp eax, ebx
pop ecx
mov dword [0x6e59f0], eax
je 0x428daf
mov dword [eax], ebx
cmp dword [0x6e59f8], ebx
jne 0x428dee
push 4
call fcn.0041c55d
cmp eax, ebx
pop ecx
mov dword [0x6e59f8], eax
je 0x428daf
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x6e59f0]
call fcn.00428c8b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x428e4f
cmp dword [esi], ebx
je 0x428e4f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041c56f
cmp dword [ebp - 8], ebx
pop ecx
jne 0x428e32
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x428e90
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x428e29
mov eax, edi
shl eax, 2
push eax
push dword [0x6e59f0]
call fcn.0041dc2b
cmp eax, ebx
pop ecx
pop ecx
je 0x428e90
jmp 0x428e8b
cmp dword [ebp - 8], ebx
jne 0x428efb
cmp edi, ebx
jge 0x428e5e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x6e59f0]
call fcn.0041dc2b
cmp eax, ebx
pop ecx
pop ecx
je 0x428daf
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x6e59f0], eax
cmp dword [ebp + 0xc], ebx
je 0x428ee5
push dword [ebp - 4]
call fcn.0041db80
inc eax
inc eax
push eax
call fcn.0041c55d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x428ee5
push dword [ebp - 4]
push esi
call fcn.00421220
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
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 0x428ede
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041c56f
pop ecx
cmp dword [ebp - 8], ebx
je 0x428ef3
push dword [ebp - 4]
call fcn.0041c56f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x428db2
push dword [ebp - 4]
call fcn.0041c56f
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x428dbc
Function at 0x42b0bb
Capabilities:
Get disk information

Disassembly:
mov eax, 0x439c82
call fcn.0041dc0c
sub esp, 0x150
mov eax, dword [0x450448]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x42b103
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x42b107
cmp eax, esi
jb 0x42b10e
xor eax, eax
jmp 0x42b1e3
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.0042b079
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x42b1d3
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x42b162
xor esi, esi
jmp 0x42b1d6
test byte [ebp - 0x158], 2
jne 0x42b172
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x42b1d3
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x42b1d3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x42b15e
cmp dword [ebp - 0x154], edi
jbe 0x42b15e
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x42b15e
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004013c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041ced8
leave
ret 8

Function at 0x42d360
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42d399
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004127dd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00411d88
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x42e587
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 0x42e5ca
call fcn.0043629f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42e5ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42e5e5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042d6ec
test ebx, ebx
mov esi, eax
je 0x42e5e3
test edi, edi
je 0x42e5e3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42ef51
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x439d77
call fcn.0041dc0c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42ef6b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42efb7
call fcn.0042a828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42fe8b
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.0041de80
add esp, 0xc
call fcn.0043628f
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x42ff5b
cmp dword [ebp - 8], ebx
je 0x42ff56
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x42fd5d
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0041e142
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x42ff65
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x42ff2e
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x42ff48
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x42ff60
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x42ff67
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x42ff65
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ff6e
Capabilities:
Resume thread

Disassembly:
mov eax, 0x439e41
call fcn.0041dc0c
push ecx
push esi
push 0x40
call fcn.0042a7f3
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x42ff9d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00435f00
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.0042fe8b
test eax, eax
jne 0x42ffc4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x42ffe1
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x42ffdf
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4304a6
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 0x4304dd
call fcn.0043629f
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 0x4304ee
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x430527
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x43050c
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x430514
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x430525
test ax, ax
jne 0x430525
test si, si
je 0x430527
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x430536
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x430788
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x439e89
call fcn.0041dc0c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0043629f
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4307d6
call fcn.0043629f
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4307e7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4307f3
or eax, 0xffffffff
jmp 0x4308f6
mov ecx, esi
call fcn.004302c8
mov dword [ebp - 0x14], eax
call fcn.0042c98b
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x430836
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x430836
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x430836
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.0042dc1b
push dword [ebp - 0x14]
call fcn.0042c8e3
push edi
push eax
push ebx
mov ecx, esi
call fcn.0043057b
xor ebx, ebx
cmp eax, ebx
je 0x4308aa
test byte [esi + 0x38], 0x10
je 0x430878
push 4
pop edi
mov ecx, esi
call fcn.0042e897
test ah, 1
je 0x430870
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042c387
cmp dword [esi + 0x1c], ebx
je 0x4308aa
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0042eae5
jmp 0x4308aa
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4308be
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4308d7
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4308d7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00430302
cmp dword [esi + 0x54], ebx
je 0x4308f3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x430b42
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0041de80
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x440f34]
je 0x430c49
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x430bb2
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x430bb9
cmp ebx, ebx
jne 0x430bb9
xor eax, eax
jmp 0x430c4c
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x430bc6
mov byte [esi + 0x20], bl
jmp 0x430bda
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00413692
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00413692
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00413692
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x430c35
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x430c49
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x432c4b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x450448]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x432c9a
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x432c9a
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x432ca6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041ced8
leave
ret 8
Function at 0x43328e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x450448]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x4332db
push dword [ebp + 8]
call fcn.00436399
mov esi, eax
test esi, esi
je 0x433303
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x433303
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x442058
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041ced8
leave
ret 0xc

Function at 0x43417f
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4341a8
call fcn.0043629f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4341cb
push eax
push dword [esi + 4]
call fcn.0043410c
push esi
push eax
mov ecx, 0x6e566c
call fcn.00433f98
mov eax, esi
pop esi
pop ebp
ret 0x18