joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003bf7
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10055b4]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
mov word [ebp - 0x20c], si
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x210], esi
stosw word es:[edi], ax
call fcn.01003955
lea eax, [ebp - 0x214]
push eax
push 1
push esi
push 0x1001698
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003c5f
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003c73
call fcn.010038e0
call fcn.010032df
call fcn.01003a01
call fcn.01003b7e
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10019d8
push eax
call edi
mov ebx, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x20c]
push 0x10019c8
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x20c]
push 0x10019d8
push eax
call edi
lea eax, [ebp - 0x20c]
push 0x10019b4
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x218]
push eax
push 0x20006
push 0
push 0x1001630
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x1003d10
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
call fcn.01003d98
leave
ret

Function at 0x100ce30
Capabilities:
Encode data using xor

Disassembly:
sub ecx, 0x20
sub ch, 0xd6
not edx
lea eax, [ebp + 0xdc]
not dl
not edi
push eax
and edi, edx
mov dword [esi + 0x18], esi
dec dl
xchg edi, ecx
sub byte [esi + 2], 0xfc
not cl
push 4
not ch
push 3
dec edi
mov ecx, 0xf6a198eb
lea esi, [esi + 0x14]
push esi
lea esi, [edi]
or cl, cl
mov edx, 0x656b6aa2
not edi
add dword [ebp + 0x8f], ebp
call dword [0x67c1]
not edx
sub dword [ebp + 0x8f], ebp
ret
push 0x5b591c06
cmp ecx, 0xd90db951
call fcn.0100cd8a
mov dword [ebp + 0x67c1], esi
xchg edi, edi
push 0x83f37629
call fcn.0100cd8a
lea eax, [esp + 0x28]
mov dword [esp + 0x4c], esi
dec edx
xchg esi, eax
push 0x3c
mov edi, dword [esp + 0x4c]
sub eax, eax
not dl
push esp
xor al, 0xec
dec eax
inc dword [esp]
push dword [esp]
mov dword [esp + 4], 1
push dword [esp]
call edi
xchg edx, eax
not ch
dec byte [esp]
jne 0x100ce66
mov edx, ecx
xchg edx, eax
inc ecx
pop eax
xchg dh, ah
sbb edx, ebp
push 1
call fcn.01006574
pop dword [esi + 0x1c]
mov dword [esi + 0x14], 0xc
jmp 0x100646c
Function at 0x10001360
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10037473
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp byte [0x1004fd04], bl
jne 0x10001522
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 3
call fcn.10013640
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x100396e0
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x100013ef
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1000156e
add eax, 0x10
push eax
push 8
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov esi, eax
push esi
lea eax, [esp + 0x24]
push eax
push ebx
push 0x100396e4
push ecx
call edi
cmp eax, ebx
je 0x10001430
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1000156e
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x3c]
call fcn.10002360
push 0x1004d4a0
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0xc0], ebx
call fcn.10018650
lea ecx, [esp + 0x3c]
test eax, eax
jne 0x10001479
mov dword [esp + 0xb8], 0xffffffff
call fcn.10016660
xor eax, eax
jmp 0x1000156e
call fcn.10016440
cmp eax, 0x32
jge 0x1000148e
lea ecx, [esp + 0x3c]
call fcn.10016440
jmp 0x10001493
mov eax, 0x32
xor esi, esi
mov dword [0x1004fd08], eax
cmp eax, ebx
jbe 0x10001507
mov edi, 0x1004fd30
lea ebp, [esi + 0xf]
push 0x1004d4dc
lea ecx, [esp + 0x24]
push ecx
push esi
lea ecx, [esp + 0x48]
call fcn.10016400
mov ecx, eax
call fcn.10019ac0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [esp + 0xc4], 1
call fcn.10002050
cmp dword [esp + 0x38], 0x10
mov byte [esp + 0xb8], bl
jb 0x100014ef
mov edx, dword [esp + 0x24]
push edx
call fcn.10023b00
add esp, 4
inc esi
add edi, 0x1c
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp esi, dword [0x1004fd08]
jb 0x100014a6
lea ecx, [esp + 0x3c]
mov byte [0x1004fd04], 1
mov dword [esp + 0xb8], 0xffffffff
call fcn.10016660
xor edi, edi
mov byte [esp + 0x13], bl
cmp dword [0x1004fd08], ebx
jbe 0x10001569
mov ebp, dword [esp + 0xc0]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov esi, 0x1004fd34
cmp dword [esi + 0x14], 0x10
jb 0x1000154c
mov eax, dword [esi]
jmp 0x1000154e
mov eax, esi
push eax
push ebp
call ebx
test eax, eax
jne 0x10001564
inc edi
add esi, 0x1c
cmp edi, dword [0x1004fd08]
jb 0x10001542
jmp 0x10001569
mov byte [esp + 0x13], 1
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x10001590
Capabilities:
Parse url

Disassembly:
sub esp, 0xb40
push 0x7ff
lea eax, [esp + 0x345]
push 0
push eax
mov byte [esp + 0x34c], 0
call fcn.10024010
mov eax, dword [esp + 0xb50]
add esp, 0xc
lea ecx, [esp]
push ecx
lea edx, [esp + 0x344]
push edx
push 0x22
push eax
mov dword [esp + 0x10], 0x800
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
push 0xfe
lea ecx, [esp + 0x45]
push 0
push ecx
mov byte [esp + 0x4c], 0
call fcn.10024010
push 0x3c
lea edx, [esp + 0x14]
push 0
push edx
call fcn.10024010
lea eax, [esp + 0x58]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x358]
add esp, 0x18
mov dword [esp + 4], 0x3c
mov dword [esp + 0x18], 0xff
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001622
lea ecx, [esp + 4]
push ecx
sub eax, edx
push 0
push eax
lea edx, [esp + 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x10001707
push edi
push 4
lea edi, [esp + 0x48]
push 0x100396e8
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x10001666
lea edi, [esp + 0x48]
push ebp
push esi
push edi
call fcn.10001360
add esp, 4
test eax, eax
jne 0x100016b6
xor esi, esi
cmp dword [0x1004c004], esi
je 0x10001704
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov eax, 0x1004c004
mov edi, edi
mov ecx, dword [eax]
push ecx
push edi
call ebp
test eax, eax
je 0x100016b6
inc esi
cmp dword [esi*4 + 0x1004c004], 0
lea eax, [esi*4 + 0x1004c004]
jne 0x10001690
pop esi
pop ebp
pop edi
add esp, 0xb40
ret
push 0x1ff
lea edx, [esp + 0x151]
push 0
push edx
mov byte [esp + 0x158], 0
call fcn.10024010
lea eax, [esp + 0x158]
push 0x200
push eax
call fcn.10001130
mov edx, dword [esp + 0xb64]
add esp, 0x14
push 0x10000000
push 0xffffffffffffffff
lea ecx, [esp + 0x154]
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
pop esi
pop ebp
pop edi
add esp, 0xb40
ret
Function at 0x10001810
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100374a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9e8
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, ecx
sub eax, 0
push edi
mov dword [ebp - 0x10], esp
je 0x10001a71
sub eax, 1
jne 0x10001ab7
mov eax, dword [ebp + 8]
push 0x103
lea ecx, [ebp - 0x113]
push 0
push ecx
mov dword [0x1004fd00], eax
mov byte [ebp - 0x114], 0
call fcn.10024010
add esp, 0xc
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push str.rundll32
push eax
call fcn.10023b60
lea ecx, [ebp - 0x114]
sub eax, ecx
mov edx, ecx
test eax, eax
push str.explorer.exe
push edx
setg bl
call fcn.10023b60
lea ecx, [ebp - 0x114]
sub eax, ecx
add esp, 0x10
test eax, eax
setg al
test al, al
jne 0x10001a99
test bl, bl
jne 0x10001a99
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [0x1004fd0c], eax
call esi
lea ecx, [ebp - 0x9f4]
mov dword [0x1004fd10], eax
call fcn.10010610
push str.HttpSendRequestW
lea ecx, [ebp - 0x9f4]
mov dword [ebp - 4], 0
call fcn.100106a0
push 0x10039720
lea ecx, [ebp - 0x9f4]
call fcn.100106c0
push 0x100017e0
lea ecx, [ebp - 0x9f4]
call fcn.100106e0
lea ecx, [ebp - 0x584]
call fcn.10010610
push 0x1003972c
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 1
call fcn.100106a0
push 0x10039740
lea ecx, [ebp - 0x584]
call fcn.100106c0
push 0x100017b0
lea ecx, [ebp - 0x584]
call fcn.100106e0
lea ecx, [ebp - 0x34c]
call fcn.10010610
mov bl, 2
push 0x1003974c
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.100106a0
push 0x10039760
lea ecx, [ebp - 0x34c]
call fcn.100106c0
push 0x10001710
lea ecx, [ebp - 0x34c]
call fcn.100106e0
lea ecx, [ebp - 0x7bc]
call fcn.10010610
push str.HttpOpenRequestW
lea ecx, [ebp - 0x7bc]
mov byte [ebp - 4], 3
call fcn.100106a0
push str.wininet.dll
lea ecx, [ebp - 0x7bc]
call fcn.100106c0
push 0x10001760
lea ecx, [ebp - 0x7bc]
call fcn.100106e0
lea edx, [ebp - 0x9f4]
push edx
mov ecx, 0x1004fd14
call fcn.10010b20
lea eax, [ebp - 0x584]
push eax
mov ecx, 0x1004fd14
call fcn.10010b20
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, 0x1004fd14
call fcn.10010b20
lea edx, [ebp - 0x7bc]
push edx
mov ecx, 0x1004fd14
call fcn.10010b20
mov ecx, 0x1004fd14
call fcn.10010a10
lea ecx, [ebp - 0x7bc]
mov byte [ebp - 4], bl
call fcn.10010690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34c]
call fcn.10010690
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 0
call fcn.10010690
lea ecx, [ebp - 0x9f4]
mov dword [ebp - 4], 0xffffffff
call fcn.10010690
jmp 0x10001abc
mov eax, dword [0x1004fd0c]
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
push eax
mov dword [ebp - 4], 4
call esi
mov ecx, dword [0x1004fd10]
push ecx
call esi
mov ecx, 0x1004fd14
call fcn.10010a80
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 1
jne 0x10001a99
cmp byte [0x100502d4], 0
je 0x10001a99
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002790
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x100027b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x100027c4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x100027f0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x10002806
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10002813
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x10002d80
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
sub esp, 0x208
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.10024010
push 0x103
lea ecx, [esp + 0x115]
push 0
push ecx
mov byte [esp + 0x11c], 0
call fcn.10024010
add esp, 0x18
lea edx, [esp]
push edx
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, dword [esp + 0x20c]
push eax
lea ecx, [esp + 4]
push ecx
push str.__sInternet_ExplorerIEXPLORE.exe___s
lea edx, [esp + 0x110]
push 0x104
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 5
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
seta al
add esp, 0x208
ret 4
Function at 0x10002ec0
Capabilities:
Initialize iwebbrowser2

Disassembly:
sub esp, 0x24
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x1003bf30
push 4
push 0
push 0x100435b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10002f6c
cmp dword [esp], 0
je 0x10002f6c
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov eax, 8
push ecx
mov word [esp + 0xc], dx
mov word [esp + 0x1c], ax
call fcn.10003320
add esp, 4
lea ecx, [esp + 8]
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xd0]
lea ecx, [esp + 0x28]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push 0xffffffffffffffff
push eax
call edx
test esi, esi
pop esi
jge 0x10002f61
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x80]
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
add esp, 0x24
ret 4
Function at 0x100033c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x1000342d
xor eax, eax
cmp ecx, ebx
je 0x10003415
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
and esi, 0x300
mov edi, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
cmp eax, ebx
je 0x10003443
cmp ecx, ebx
je 0x10003438
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push ebx
push ecx
mov dword [esp + 0x34], pe_nt_image_headers32
call esi
test eax, eax
jne 0x100034aa
jmp 0x10003470
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.100033c0
mov edi, eax
cmp edi, ebx
jne 0x100034ea
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
mov dword [esp + 0x34], pe_nt_image_headers32
call esi
test eax, eax
je 0x10003470
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x100034bd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x14], ebx
call fcn.100026a0
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x100034df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x100034f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100059a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037683
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x420], edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp ebx, edi
je 0x10005a4b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
inc eax
cdq
push 2
push edx
push eax
call fcn.10024d90
mov edi, eax
add eax, 0x80000000
adc edx, esi
test edx, edx
ja 0x10005a49
jb 0x10005a0c
cmp eax, 0xffffffff
ja 0x10005a49
cmp edi, 0x400
jg 0x10005a2f
push edi
call fcn.10003280
add esp, 4
test al, al
je 0x10005a2f
mov eax, edi
call fcn.10024d60
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10005a3b
push edi
lea ecx, [ebp - 0x14]
call fcn.100035c0
mov esi, dword [ebp - 0x14]
push 3
push edi
push ebx
push eax
call fcn.100024a0
test eax, eax
jne 0x10005a83
xor edi, edi
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10005a64
lea ecx, [ebp - 0x420]
call fcn.10003210
cmp esi, edi
je 0x10005a79
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.10024bb1
add esp, 4
cmp esi, edi
jne 0x10005a68
mov eax, 0x8007000e
jmp 0x10005bc3
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x10005aa3
call fcn.10002600
mov edi, eax
jmp 0x10005b8f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10005ac2
call fcn.10002600
jmp 0x10005b86
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10005adb
call fcn.10002600
jmp 0x10005b86
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp + 0x10], edi
cmp eax, edi
jae 0x10005b1a
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10005b08
lea ecx, [ebp - 0x420]
call fcn.10003210
lea ecx, [ebp - 0x14]
call fcn.100031b0
mov eax, 0x8007000e
jmp 0x10005bc3
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10003cd0
mov dword [ebp - 4], 1
jmp 0x10005b49
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x10005b5a
mov edi, 0x8007000e
jmp 0x10005b88
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push edi
push eax
call fcn.100025d0
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov byte [edx + edi], 0
mov ecx, dword [ebp - 0x420]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10005470
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x41c]
cmp dword [ebp - 0x420], edx
je 0x10005ba8
lea ecx, [ebp - 0x420]
call fcn.10003210
test esi, esi
je 0x10005bc1
lea esp, [esp]
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.10024bb1
add esp, 4
test esi, esi
jne 0x10005bb0
mov eax, edi
lea esp, [ebp - 0x42c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10007729
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007764
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10007760
lea ebx, [ebx]
cmp esi, eax
jae 0x10007764
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10007750
cmp esi, eax
jb 0x1000776a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10007ba0
Capabilities:
Parse url

Disassembly:
sub esp, 0x548
push ebx
push esi
xor ebx, ebx
push 0xfe
lea eax, [esp + 0x155]
push ebx
push eax
mov byte [esp + 0x15c], bl
call fcn.10024010
push 0xfe
lea ecx, [esp + 0x61]
push ebx
push ecx
mov byte [esp + 0x68], bl
call fcn.10024010
push 0xfe
lea edx, [esp + 0x26d]
push ebx
push edx
mov byte [esp + 0x274], bl
call fcn.10024010
push 0x1ff
lea eax, [esp + 0x379]
push ebx
push eax
mov byte [esp + 0x380], bl
call fcn.10024010
push 0x3c
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.10024010
mov esi, dword [esp + 0x590]
mov eax, 0xff
lea edx, [esp + 0x18c]
add esp, 0x3c
mov dword [esp + 0x24], edx
lea edx, [esp + 0x250]
add esi, 0x24
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x50]
mov eax, esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x40], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007c62
lea ecx, [esp + 0x14]
push ecx
push ebx
sub eax, edx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
lea edx, [esp + 0x250]
push edx
lea eax, [esp + 0x54]
push eax
push 0x1003bd04
lea ecx, [esp + 0x35c]
push 0x200
push ecx
call fcn.10023fef
add esp, 0x14
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x35c]
push ecx
push 0x50
lea edx, [esp + 0x164]
push edx
push ebx
push ebx
push ebx
push 0x1003bd0c
call fcn.1000fa30
add esp, 0x28
cmp dword [esp + 8], ebx
je 0x10007d30
mov eax, dword [esp + 0xc]
push edi
lea eax, [eax + eax*4]
add eax, eax
push eax
push 8
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.1001cf60
push edi
call fcn.1000c820
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push esi
call edi
mov eax, dword [esp + 0xc]
push eax
push ebx
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x548
ret
Function at 0x10007e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x177c
call fcn.10024c40
push ebx
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x1770
xor ebx, ebx
call fcn.10013640
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10007eca
mov edx, dword [esp + 0x1788]
xor ecx, ecx
mov word [edx], cx
mov eax, 0x80004005
pop ebx
add esp, 0x177c
ret 8
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.hlpreg
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10007f15
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x1788]
xor ecx, ecx
push eax
mov word [edx], cx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
add esp, 0x177c
ret 8
mov eax, 0x1b4e81b5
mul dword [esp + 8]
shr edx, 5
test edx, edx
jle 0x10007f6e
push esi
push edi
lea esi, [esp + 0x18]
mov edi, edx
lea ecx, [ecx]
mov ecx, 0x1003bb53
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007f57
test dl, dl
je 0x10007f53
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007f57
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007f37
xor eax, eax
jmp 0x10007f5c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10007f61
inc ebx
add esi, 0x12c
sub edi, 1
jne 0x10007f30
pop edi
pop esi
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x1788]
push edx
mov word [ecx], bx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
add esp, 0x177c
ret 8