joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440063
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x440087
cmp dword [edi + 0x54], 0
jne 0x440087
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00438e9f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00440024
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x445157
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x497d50]
jne 0x445161
repz ret
jmp fcn.0044cc7d

Function at 0x455308
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044c5e1
and dword [ebp - 4], 0
cmp dword [0x49c2f0], 0
mov ebx, eax
jne 0x4553b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45546a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45546a
push eax
call fcn.0044c56f
mov dword [esp], 0x465b88
push edi
mov dword [0x49c2f0], eax
call esi
push eax
call fcn.0044c56f
mov dword [esp], 0x465b74
push edi
mov dword [0x49c2f4], eax
call esi
push eax
call fcn.0044c56f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49c2f8], eax
call esi
push eax
call fcn.0044c56f
pop ecx
mov dword [0x49c300], eax
test eax, eax
je 0x4553b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c56f
pop ecx
mov dword [0x49c2fc], eax
mov eax, dword [0x49c2fc]
cmp eax, ebx
je 0x455411
cmp dword [0x49c300], ebx
je 0x455411
push eax
call fcn.0044c5ea
push dword [0x49c300]
mov esi, eax
call fcn.0044c5ea
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x455411
test edi, edi
je 0x455411
call esi
test eax, eax
je 0x455408
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455408
test byte [ebp - 0xc], 1
jne 0x455411
or dword [ebp + 0x10], 0x200000
jmp 0x45544a
mov eax, dword [0x49c2f4]
cmp eax, ebx
je 0x45544a
push eax
call fcn.0044c5ea
pop ecx
test eax, eax
je 0x45544a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45544a
mov eax, dword [0x49c2f8]
cmp eax, ebx
je 0x45544a
push eax
call fcn.0044c5ea
pop ecx
test eax, eax
je 0x45544a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49c2f0]
call fcn.0044c5ea
pop ecx
test eax, eax
je 0x45546a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45546c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001360
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10037403
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.100136a0
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.100023b0
push 0x1004d4a0
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0xc0], ebx
call fcn.100186b0
lea ecx, [esp + 0x3c]
test eax, eax
jne 0x10001479
mov dword [esp + 0xb8], 0xffffffff
call fcn.100166c0
xor eax, eax
jmp 0x1000156e
call fcn.100164a0
cmp eax, 0x32
jge 0x1000148e
lea ecx, [esp + 0x3c]
call fcn.100164a0
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.10016460
mov ecx, eax
call fcn.10019b20
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [esp + 0xc4], 1
call fcn.10002070
cmp dword [esp + 0x38], 0x10
mov byte [esp + 0xb8], bl
jb 0x100014ef
mov edx, dword [esp + 0x24]
push edx
call fcn.10023a80
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.100166c0
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.10023f90
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.10023f90
push 0x3c
lea edx, [esp + 0x14]
push 0
push edx
call fcn.10023f90
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.10023f90
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 0x10037439
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.10023f90
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.10023ae0
lea ecx, [ebp - 0x114]
sub eax, ecx
mov edx, ecx
test eax, eax
push str.explorer.exe
push edx
setg bl
call fcn.10023ae0
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.10010670
push str.HttpSendRequestW
lea ecx, [ebp - 0x9f4]
mov dword [ebp - 4], 0
call fcn.10010700
push 0x10039720
lea ecx, [ebp - 0x9f4]
call fcn.10010720
push 0x100017e0
lea ecx, [ebp - 0x9f4]
call fcn.10010740
lea ecx, [ebp - 0x584]
call fcn.10010670
push 0x1003972c
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 1
call fcn.10010700
push 0x10039740
lea ecx, [ebp - 0x584]
call fcn.10010720
push 0x100017b0
lea ecx, [ebp - 0x584]
call fcn.10010740
lea ecx, [ebp - 0x34c]
call fcn.10010670
mov bl, 2
push 0x1003974c
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.10010700
push 0x10039760
lea ecx, [ebp - 0x34c]
call fcn.10010720
push 0x10001710
lea ecx, [ebp - 0x34c]
call fcn.10010740
lea ecx, [ebp - 0x7bc]
call fcn.10010670
push str.HttpOpenRequestW
lea ecx, [ebp - 0x7bc]
mov byte [ebp - 4], 3
call fcn.10010700
push str.wininet.dll
lea ecx, [ebp - 0x7bc]
call fcn.10010720
push 0x10001760
lea ecx, [ebp - 0x7bc]
call fcn.10010740
lea edx, [ebp - 0x9f4]
push edx
mov ecx, 0x1004fd14
call fcn.10010b80
lea eax, [ebp - 0x584]
push eax
mov ecx, 0x1004fd14
call fcn.10010b80
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, 0x1004fd14
call fcn.10010b80
lea edx, [ebp - 0x7bc]
push edx
mov ecx, 0x1004fd14
call fcn.10010b80
mov ecx, 0x1004fd14
call fcn.10010a70
lea ecx, [ebp - 0x7bc]
mov byte [ebp - 4], bl
call fcn.100106f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34c]
call fcn.100106f0
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 0
call fcn.100106f0
lea ecx, [ebp - 0x9f4]
mov dword [ebp - 4], 0xffffffff
call fcn.100106f0
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.10010ae0
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 0x100027e0
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 0x10002800
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x10002814
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 0x10002840
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x10002856
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 0x10002863
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 0x10002dc0
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.10023f90
push 0x103
lea ecx, [esp + 0x115]
push 0
push ecx
mov byte [esp + 0x11c], 0
call fcn.10023f90
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 0x10002f00
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 0x100435c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10002fac
cmp dword [esp], 0
je 0x10002fac
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.10003360
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 0x10002fa1
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 0x10003400
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 0x1000346d
xor eax, eax
cmp ecx, ebx
je 0x10003455
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 0x10003483
cmp ecx, ebx
je 0x10003478
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 0x100034ea
jmp 0x100034b0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.10003400
mov edi, eax
cmp edi, ebx
jne 0x1000352a
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 0x100034b0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x100034fd
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.100026f0
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x1000351f
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 0x10003539
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 0x100059d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037613
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 0x10005a7b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
inc eax
cdq
push 2
push edx
push eax
call fcn.10024d10
mov edi, eax
add eax, 0x80000000
adc edx, esi
test edx, edx
ja 0x10005a79
jb 0x10005a3c
cmp eax, 0xffffffff
ja 0x10005a79
cmp edi, 0x400
jg 0x10005a5f
push edi
call fcn.100032c0
add esp, 4
test al, al
je 0x10005a5f
mov eax, edi
call fcn.10024ce0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10005a6b
push edi
lea ecx, [ebp - 0x14]
call fcn.100035f0
mov esi, dword [ebp - 0x14]
push 3
push edi
push ebx
push eax
call fcn.100024f0
test eax, eax
jne 0x10005ab3
xor edi, edi
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10005a94
lea ecx, [ebp - 0x420]
call fcn.10003250
cmp esi, edi
je 0x10005aa9
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.10024b31
add esp, 4
cmp esi, edi
jne 0x10005a98
mov eax, 0x8007000e
jmp 0x10005bf3
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 0x10005ad3
call fcn.10002650
mov edi, eax
jmp 0x10005bbf
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 0x10005af2
call fcn.10002650
jmp 0x10005bb6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10005b0b
call fcn.10002650
jmp 0x10005bb6
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 0x10005b4a
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10005b38
lea ecx, [ebp - 0x420]
call fcn.10003250
lea ecx, [ebp - 0x14]
call fcn.100031f0
mov eax, 0x8007000e
jmp 0x10005bf3
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10003d00
mov dword [ebp - 4], 1
jmp 0x10005b79
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x10005b8a
mov edi, 0x8007000e
jmp 0x10005bb8
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push edi
push eax
call fcn.10002620
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.100054a0
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x41c]
cmp dword [ebp - 0x420], edx
je 0x10005bd8
lea ecx, [ebp - 0x420]
call fcn.10003250
test esi, esi
je 0x10005bf1
lea esp, [esp]
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.10024b31
add esp, 4
test esi, esi
jne 0x10005be0
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 0x10007740
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 0x10007759
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007794
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10007790
lea ebx, [ebx]
cmp esi, eax
jae 0x10007794
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10007780
cmp esi, eax
jb 0x1000779a
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 0x10007bd0
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.10023f90
push 0xfe
lea ecx, [esp + 0x61]
push ebx
push ecx
mov byte [esp + 0x68], bl
call fcn.10023f90
push 0xfe
lea edx, [esp + 0x26d]
push ebx
push edx
mov byte [esp + 0x274], bl
call fcn.10023f90
push 0x1ff
lea eax, [esp + 0x379]
push ebx
push eax
mov byte [esp + 0x380], bl
call fcn.10023f90
push 0x3c
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.10023f90
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 0x10007c92
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.10023f6f
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.1000fa90
add esp, 0x28
cmp dword [esp + 8], ebx
je 0x10007d60
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.1001cee0
push edi
call fcn.1000c860
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 0x10007eb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x177c
call fcn.10024bc0
push ebx
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x1770
xor ebx, ebx
call fcn.100136a0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10007efa
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 0x10007f45
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 0x10007f9e
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 0x10007f87
test dl, dl
je 0x10007f83
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007f87
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007f67
xor eax, eax
jmp 0x10007f8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10007f91
inc ebx
add esi, 0x12c
sub edi, 1
jne 0x10007f60
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