joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41707e
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 0x417254
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x432e00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x417254
test cl, 0x48
je 0x4170e9
cmp byte [eax + 5], 0xa
je 0x4170e9
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x41713b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x417123
call fcn.004126c3
mov dword [eax], 9
call fcn.004126cc
mov dword [eax], esi
jmp 0x417133
cmp eax, 0x6d
je 0x417254
push eax
call fcn.004126d5
pop ecx
or eax, 0xffffffff
jmp 0x417256
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41724f
test eax, eax
je 0x417162
cmp byte [ebx], 0xa
jne 0x417162
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41716b
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x417249
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x417239
cmp al, 0xd
je 0x41719d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41722b
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4171b7
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4171b2
add dword [ebp + 0x10], 2
jmp 0x41720b
mov dword [ebp + 0x10], eax
jmp 0x417227
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 0x4171df
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417227
cmp dword [ebp - 0xc], 0
je 0x417227
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x417200
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41720b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41722a
cmp ebx, dword [ebp + 0xc]
jne 0x417210
cmp byte [ebp - 1], 0xa
jne 0x417210
mov byte [ebx], 0xa
jmp 0x41722a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a014
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41722b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x417181
jmp 0x417249
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x417249
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x417256
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417eaf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417edd
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417ee4
cmp ebx, dword [eax + 4]
jae 0x417ee4
xor eax, eax
jmp 0x4180d4
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x417ef5
xor eax, eax
inc eax
jmp 0x4180d3
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417f0b
cmp ecx, edx
jae 0x418050
cmp dword [eax + 4], 0
je 0x417f14
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417efc
cmp dword [ebp + 8], 0
je 0x417f36
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x418050
cmp eax, esi
jae 0x418050
mov eax, dword [0x432a98]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417f5b
cmp dword [esi*4 + 0x432aa0], edi
je 0x418054
inc esi
cmp esi, eax
jl 0x417f49
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4180d0
cmp dword [ebp - 8], 0x1000000
jne 0x4180d0
test byte [ebp - 0xc], 0xcc
je 0x417fd9
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4180d0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4180d0
cmp word [eax + 0x18], 0x10b
jne 0x4180d0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4180d0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417fd9
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417fd9
test byte [ecx + 0x27], 0x80
jne 0x418050
push 1
push 0x432ae0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417eed
mov ecx, dword [0x432a98]
test ecx, ecx
mov edx, ecx
jle 0x41800d
lea eax, [ecx*4 + 0x432a9c]
cmp dword [eax], edi
je 0x41800d
dec edx
sub eax, 4
test edx, edx
jg 0x418001
test edx, edx
jne 0x41803e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41801a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x418032
lea eax, [edx*4 + 0x432aa0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x418020
cmp ecx, 0x10
jge 0x41803e
inc ecx
mov dword [0x432a98], ecx
push 0
push 0x432ae0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417eed
xor eax, eax
jmp 0x4180d3
test esi, esi
jle 0x417eed
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x432ae0
call ebx
test eax, eax
jne 0x417eed
cmp dword [esi*4 + 0x432aa0], edi
je 0x4180aa
mov eax, dword [0x432a98]
lea esi, [eax - 1]
test esi, esi
jl 0x418098
cmp dword [esi*4 + 0x432aa0], edi
je 0x418094
dec esi
jns 0x418088
test esi, esi
jge 0x4180a8
cmp eax, 0x10
jge 0x4180a3
inc eax
mov dword [0x432a98], eax
lea esi, [eax - 1]
jmp 0x4180aa
je 0x4180c2
xor ecx, ecx
test esi, esi
jl 0x4180c2
lea eax, [ecx*4 + 0x432aa0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4180b0
push 0
push 0x432ae0
call ebx
jmp 0x417eed
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418aee
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42eb80]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42f5b0]
je 0x418b25
inc eax
cmp eax, 0x13
jb 0x418b16
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42f5b0]
jne 0x418c48
mov eax, dword [0x432900]
cmp eax, 1
je 0x418c23
cmp eax, edx
jne 0x418b55
cmp dword [0x42ee0c], 1
je 0x418c23
cmp ecx, 0xfc
je 0x418c48
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418b8b
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00410e20
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.0040f5c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x418bbf
mov eax, edi
push eax
call fcn.0040f5c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x429404
push edi
call fcn.00411550
add esp, 0x10
push edi
call fcn.0040f5c0
push dword [esi + 0x42f5b4]
mov ebx, eax
call fcn.0040f5c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00410320
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00410e20
push edi
push ebx
call fcn.00410e30
push 0x429400
push ebx
call fcn.00410e30
push dword [esi + 0x42f5b4]
push ebx
call fcn.00410e30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00419c39
add esp, 0x2c
jmp 0x418c48
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x42f5b4]
push dword [esi]
call fcn.0040f5c0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040f6e1
add ebp, 0x90
leave
ret

Function at 0x419340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41936e
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x419373
cmp eax, 1
je 0x419373
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419377
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42eb80]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x419409
push ebx
call fcn.00419340
test eax, eax
pop ecx
jne 0x4193de
call fcn.004126cc
mov dword [eax], 0xf
call fcn.004126c3
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040f6e1
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x419418
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4193c5
inc eax
cmp eax, 0x104
ja 0x4193c5
test edi, edi
mov ecx, edi
jne 0x419455
cmp eax, dword [ebp + 0xa0]
jg 0x419438
mov eax, dword [ebp + 0xa0]
push eax
call fcn.00411892
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41946d
call fcn.004126c3
mov dword [eax], 0xc
jmp 0x4193c5
cmp eax, dword [ebp + 0xa0]
jle 0x41946d
call fcn.004126c3
mov dword [eax], 0x22
jmp 0x4193c5
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00410e20
pop ecx
pop ecx
jmp 0x4193c7

Function at 0x419c39
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x432d58], ebx
push esi
push edi
jne 0x419cb9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x419cf4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a194
push edi
call esi
test eax, eax
mov dword [0x432d58], eax
je 0x419cf4
push str.GetActiveWindow
push edi
call esi
push 0x42a170
push edi
mov dword [0x432d5c], eax
call esi
cmp dword [0x4328ac], 2
mov dword [0x432d60], eax
jne 0x419cb9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x432d68], eax
je 0x419cb9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x432d64], eax
mov eax, dword [0x432d64]
test eax, eax
je 0x419cfe
call eax
test eax, eax
je 0x419ce5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x432d68]
test eax, eax
je 0x419ce5
test byte [ebp - 8], 1
jne 0x419cfe
cmp dword [0x4328b8], 4
jb 0x419cf8
or byte [ebp + 0x12], 0x20
jmp 0x419d1d
xor eax, eax
jmp 0x419d2d
or byte [ebp + 0x12], 4
jmp 0x419d1d
mov eax, dword [0x432d5c]
test eax, eax
je 0x419d1d
call eax
mov ebx, eax
test ebx, ebx
je 0x419d1d
mov eax, dword [0x432d60]
test eax, eax
je 0x419d1d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x432d58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ad86
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00410320
mov eax, dword [0x42eb80]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041955f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41aebb
push 2
push esi
push dword [ebp + 8]
call fcn.0041955f
add esp, 0xc
cmp eax, ebx
je 0x41aebb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41ae5b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040f650
push 0x8000
push dword [ebp + 8]
call fcn.0041b8b1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41ae11
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00416568
add esp, 0xc
cmp eax, 0xffffffff
je 0x41ae31
sub edi, eax
test edi, edi
jg 0x41ae09
jmp 0x41ae49
call fcn.004126cc
cmp dword [eax], 5
jne 0x41ae46
call fcn.004126c3
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041b8b1
pop ecx
pop ecx
jmp 0x41aea3
jge 0x41aea3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041955f
push dword [ebp + 8]
call fcn.00413325
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 0x41aea3
call fcn.004126c3
mov dword [eax], 0xd
call fcn.004126cc
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.0041955f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41aebd
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f6e1
leave
ret
Function at 0x41c035
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 0x41c04e
or eax, 0xffffffff
jmp 0x41c0af
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41c0ab
push 0x3d
push esi
call fcn.00410d0e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41c0ab
cmp esi, eax
je 0x41c0ab
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4328cc]
sete cl
cmp eax, dword [0x4328d0]
mov dword [ebp - 4], ecx
jne 0x41c091
mov edi, eax
call fcn.0041bfd4
mov dword [0x4328cc], eax
cmp eax, ebx
jne 0x41c0ea
cmp dword [ebp + 0xc], ebx
je 0x41c0b3
cmp dword [0x4328d4], ebx
je 0x41c0b3
call fcn.0041b7b7
test eax, eax
je 0x41c0ea
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41c0bc
xor eax, eax
jmp 0x41c0ae
push 4
call fcn.00411892
cmp eax, ebx
pop ecx
mov dword [0x4328cc], eax
je 0x41c0ab
mov dword [eax], ebx
cmp dword [0x4328d4], ebx
jne 0x41c0ea
push 4
call fcn.00411892
cmp eax, ebx
pop ecx
mov dword [0x4328d4], eax
je 0x41c0ab
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4328cc]
sub edi, esi
push esi
call fcn.0041bf87
mov edi, eax
test edi, edi
pop ecx
jl 0x41c151
cmp dword [ebx], 0
je 0x41c151
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004118a4
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41c131
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41c192
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x41c128
mov eax, edi
shl eax, 2
push eax
push dword [0x4328cc]
call fcn.004129d9
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x41c192
jmp 0x41c18d
cmp dword [ebp - 4], 0
jne 0x41c1f9
test edi, edi
jge 0x41c161
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4328cc]
call fcn.004129d9
test eax, eax
pop ecx
pop ecx
je 0x41c0ab
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4328cc], eax
cmp dword [ebp + 0xc], 0
je 0x41c1e4
push esi
call fcn.0040f5c0
inc eax
inc eax
push eax
call fcn.00411892
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41c1e4
push esi
push edi
call fcn.00410e20
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41c1dd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004118a4
pop ecx
cmp dword [ebp - 4], 0
je 0x41c1f1
push esi
call fcn.004118a4
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41c0ae
push esi
call fcn.004118a4
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x41c0b8
Function at 0x420b29
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42eb80]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x420b7c
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x420b7c
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x420b84
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f6e1
leave
ret 8
Function at 0x42169f
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x7c8]
sub esp, 0x848
mov eax, dword [0x42eb80]
mov ecx, dword [ebp + 0x7d4]
xor eax, ebp
mov dword [ebp + 0x7c4], eax
mov eax, dword [ebp + 0x7d8]
push ebx
mov ebx, dword [ebp + 0x7d0]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x7dc]
xor edx, edx
cmp ecx, edx
push esi
push edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], eax
je 0x4217c3
cmp ebx, edx
je 0x4217c3
mov eax, dword [ebp + 0x7e0]
mov esi, eax
mov edi, eax
and esi, 0x2e000000
and edi, 0x40000000
test eax, 0x90000000
mov dword [ebp - 0x6c], 0x824
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x74], edx
je 0x421738
cmp dword [ecx + 0x30], edx
je 0x421738
test eax, 0x2000000
je 0x421732
mov dword [ebp - 0x74], 1
jmp 0x421738
or edi, 0x80000000
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
call ebx
test eax, eax
jne 0x421784
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4217c3
push dword [ebp - 0x6c]
call fcn.0041cdb7
test eax, eax
pop ecx
mov dword [ebp - 0x78], eax
je 0x4217c3
push esi
lea ecx, [ebp - 0x6c]
push ecx
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x68], 1
call ebx
test eax, eax
jne 0x421789
push dword [ebp - 0x78]
jmp 0x4217bd
lea ebx, [ebp - 0x60]
jmp 0x42178c
mov ebx, dword [ebp - 0x78]
mov esi, dword [ebp - 0x70]
push esi
push edi
xor edi, edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0x74], edi
mov dword [ebp - 0x70], eax
je 0x4217eb
push 0x2100000
push edi
push edi
push dword [esi + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
test eax, eax
jge 0x4217df
cmp dword [ebp - 0x68], edi
je 0x4217c3
push ebx
call fcn.0041cde2
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x7c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f6e1
add ebp, 0x7c8
leave
ret 0x14
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi + 0x30], eax
cmp dword [ebp - 0x68], edi
je 0x4217f7
push ebx
call fcn.0041cde2
pop ecx
mov eax, dword [ebp - 0x70]
cmp eax, edi
jne 0x421809
mov ecx, dword [ebp - 0x64]
mov dword [ecx], 0x1000
jmp 0x4217c5
mov cx, word [esi + 0x18]
mov edx, dword [ebp - 0x7c]
mov word [edx], cx
mov esi, dword [esi + 0xc]
dec esi
mov ecx, dword [ebp - 0x64]
je 0x42186a
dec esi
je 0x42185f
dec esi
je 0x421854
dec esi
je 0x421849
dec esi
je 0x42183e
dec esi
je 0x421836
dec esi
jne 0x421801
mov dword [ecx], 0x1002
jmp 0x4217c5
mov dword [ecx], 0x1006
jmp 0x4217c5
mov dword [ecx], 0x1001
jmp 0x4217c5
mov dword [ecx], 0x100b
jmp 0x4217c5
mov dword [ecx], 3
jmp 0x4217c5
mov dword [ecx], 2
jmp 0x4217c5
mov dword [ecx], 1
jmp 0x4217c5
Function at 0x4226d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x422705
cmp edi, dword [esi + 0xc]
jge 0x422705
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422705
cmp edi, dword [eax + 8]
jge 0x422705
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x422707
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4227b3
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4227e7
jmp fcn.0041c69f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x422858
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x422951
cmp eax, dword [edi + 0xc]
jge 0x422951
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4228a9
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42293a
cmp dword [ebp + 0xc], ebx
je 0x42293a
jmp 0x4228d3
push 0x10
call fcn.0042259c
cmp eax, ebx
je 0x4228bf
mov ecx, eax
call fcn.004227aa
mov esi, eax
jmp 0x4228c1
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4228ea
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4228fa
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42290c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041c69f
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040f650
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42294c
cmp ecx, dword [esi + 8]
jge 0x42294c
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x422952
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x453728
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404714
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x453780
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4560b8]
mov dl, 1
mov eax, dword [0x4532f4]
call fcn.0040aa24
call fcn.00403cc4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045342c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8