joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4369e2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004284a0
add esp, 0xc
cmp dword [0x457f1c], 0
jne 0x436aef
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 0xa]
shl eax, 0x10
or eax, ecx
cmp dword [ebp - 0x11c], 4
mov dword [0x457f20], eax
jne 0x436a61
mov dword [0x457f1c], 1
jmp 0x436aef
cmp dword [ebp - 0x11c], 5
jne 0x436aae
cmp dword [ebp - 0x118], 0
jne 0x436a7f
mov dword [0x457f1c], 2
jmp 0x436aef
cmp dword [ebp - 0x118], 1
jne 0x436a94
mov dword [0x457f1c], 3
jmp 0x436aef
xor eax, eax
cmp dword [ebp - 0x118], 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
mov dword [0x457f1c], eax
jmp 0x436aef
cmp dword [ebp - 0x11c], 6
jne 0x436ae5
cmp dword [ebp - 0x118], 0
jne 0x436ace
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x436aa7
cmp dword [ebp - 0x118], 1
jne 0x436ae5
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x436aa7
mov dword [0x457f1c], 9
mov eax, dword [0x457f1c]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [0x457f20]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.0042851a
leave
ret 8

Function at 0x436b8a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call fcn.00436b0d
cmp dword [ebp - 0x14], ebx
je 0x436bc6
mov dword [esi], 1
jmp 0x436bfa
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
cmp eax, ebx
je 0x436bfa
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x436bfa
mov dword [esi], ebx
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x436c09
push dword [ebp - 0x10]
call fcn.00430858
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042851a
leave
ret 4

Function at 0x436c19
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436c3d
test al, 0x10
je 0x436c3d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x436c3a
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x436c44
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x436d0c
cmp eax, 3
je 0x436c85
push edi
push ebx
call fcn.00436c19
test eax, eax
jne 0x436d0c
movzx eax, word [ebx]
push esi
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x436ca9
cmp ax, 0x5c
jne 0x436c9a
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x436c92
test esi, esi
jne 0x436cbd
mov edi, 0x80070003
push edi
push 0x7a
push str.dirutil.cpp
call fcn.00432f68
jmp 0x436d0b
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.00436c44
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x436d0b
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436d09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x436cf7
xor edi, edi
inc edi
jmp 0x436d0b
test eax, eax
jle 0x436d05
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x436d0b
xor edi, edi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x438055
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4380a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x438092
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x4380a7
push esi
push 0x20
push str.inetutil.cpp
call fcn.00432f68
jmp 0x4380b3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x4382f9
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2470
call fcn.0042ef30
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x241c], 0
mov dword [ebp - 0x2434], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2430], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2424], eax
mov eax, dword [ebp + 0x20]
push 0x3c
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x24]
pop esi
push esi
mov dword [ebp - 0x2420], eax
lea eax, [ebp - 0x2470]
push 0
push eax
call fcn.004284a0
mov dword [ebp - 0x2470], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x43838d
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2460], eax
mov dword [ebp - 0x245c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x2428], esi
je 0x4383ac
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x2454], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x4383c6
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2448], eax
mov eax, 0x801
cmp dword [ebp - 0x242c], esi
je 0x4383e5
lea ecx, [ebp - 0x1414]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2440], eax
cmp dword [ebp - 0x2420], esi
je 0x4383ff
lea ecx, [ebp - 0x2418]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x2470]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2434]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x43845b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x438430
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x438444
mov dword [ebp - 0x241c], 0x80004005
push dword [ebp - 0x241c]
push 0x5e
push str.uriutil.cpp
call fcn.00432f68
jmp 0x43853f
cmp ebx, esi
je 0x438467
mov eax, dword [ebp - 0x2464]
mov dword [ebx], eax
cmp edi, esi
je 0x43848b
push dword [ebp - 0x245c]
push dword [ebp - 0x2460]
push edi
call fcn.0043178b
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x43853f
mov eax, dword [ebp - 0x2430]
cmp eax, esi
je 0x43849f
mov cx, word [ebp - 0x2458]
mov word [eax], cx
cmp dword [ebp - 0x2428], esi
je 0x4384c8
push dword [ebp - 0x2450]
push dword [ebp - 0x2454]
push dword [ebp - 0x2428]
call fcn.0043178b
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x43853f
cmp dword [ebp - 0x2424], esi
je 0x4384f1
push dword [ebp - 0x2448]
push dword [ebp - 0x244c]
push dword [ebp - 0x2424]
call fcn.0043178b
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x43853f
cmp dword [ebp - 0x242c], esi
je 0x43851a
push dword [ebp - 0x2440]
push dword [ebp - 0x2444]
push dword [ebp - 0x242c]
call fcn.0043178b
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x43853f
cmp dword [ebp - 0x2420], esi
je 0x43853f
push dword [ebp - 0x2438]
push dword [ebp - 0x243c]
push dword [ebp - 0x2420]
call fcn.0043178b
mov dword [ebp - 0x241c], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x241c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042851a
leave
ret 0x20
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00408287
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6bdf8
jne 0x40101c
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp - 4]
cmp eax, 0x6bdf8
jne 0x4010b7
mov byte [ebp - 0x28], 0x41
mov byte [ebp - 0x27], 0x54
mov byte [ebp - 0x26], 0x6b
mov byte [ebp - 0x25], 0x42
mov byte [ebp - 0x24], 0x31
mov byte [ebp - 0x23], 0x75
mov byte [ebp - 0x22], 0x57
mov byte [ebp - 0x21], 0x6d
mov byte [ebp - 0x20], 0x5a
mov byte [ebp - 0x1f], 0x67
mov byte [ebp - 0x1e], 0x47
mov byte [ebp - 0x1d], 0x68
mov byte [ebp - 0x1c], 0x4a
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x4d
mov byte [ebp - 0x19], 0x61
mov byte [ebp - 0x18], 0x4b
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x4b
mov byte [ebp - 0x15], 0x77
mov byte [ebp - 0x14], 0x53
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x49
mov byte [ebp - 0x11], 0x68
mov byte [ebp - 0x10], 0x41
mov byte [ebp - 0xf], 0x79
mov byte [ebp - 0xe], 0x4c
mov byte [ebp - 0xd], 0x68
mov byte [ebp - 0xc], 0x54
mov byte [ebp - 0xb], 0x70
mov byte [ebp - 0xa], 0x58
mov byte [ebp - 9], 0x52
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x7a
mov byte [ebp - 6], 0
pop eax
call fcn.00402c20
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401ae0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x401b96
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4a65c8
call sub.KERNEL32.DLL_WinExec
cmp byte [0x4a604d], 0
je 0x401b0e
push 0x4a65c8
call sub.KERNEL32.DLL_WriteFile
mov eax, 0x4a65e8
call fcn.004014a4
mov eax, 0x4a65f8
call fcn.004014a4
mov eax, 0x4a6624
call fcn.004014a4
push 0xff8
push 0
call sub.KERNEL32.DLL_VerLanguageNameA
mov dword [0x4a6620], eax
cmp dword [0x4a6620], 0
je 0x401b75
mov eax, 3
mov edx, dword [0x4a6620]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401b4b
mov eax, 0x4a6608
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x4a6614], eax
mov byte [0x4a65c0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401b9d
cmp byte [0x4a604d], 0
je 0x401b95
push 0x4a65c8
call sub.KERNEL32.DLL_lstrcpyA
ret

Function at 0x401ba4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4a65c0], 0
je 0x401c81
xor edx, edx
push ebp
push 0x401c7a
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x4a604d], 0
je 0x401bd6
push 0x4a65c8
call sub.KERNEL32.DLL_WriteFile
mov byte [0x4a65c0], 0
mov eax, dword [0x4a6620]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
xor eax, eax
mov dword [0x4a6620], eax
mov ebx, dword [0x4a65e8]
jmp 0x401c09
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebx]
cmp ebx, 0x4a65e8
jne 0x401bf7
mov eax, 0x4a65e8
call fcn.004014a4
mov eax, 0x4a65f8
call fcn.004014a4
mov eax, 0x4a6624
call fcn.004014a4
mov eax, dword [0x4a65e0]
test eax, eax
je 0x401c4f
mov edx, dword [eax]
mov dword [0x4a65e0], edx
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov eax, dword [0x4a65e0]
test eax, eax
jne 0x401c38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401c81
cmp byte [0x4a604d], 0
je 0x401c6f
push 0x4a65c8
call sub.KERNEL32.DLL_lstrcpyA
push 0x4a65c8
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret
Function at 0x4021cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4a65c0], 0
jne 0x4021e9
call fcn.00401ae0
test al, al
je 0x4021f1
cmp ebx, 0x7ffffff8
jle 0x4021fb
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40234f
xor ecx, ecx
push ebp
push 0x402348
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x4a604d], 0
je 0x40221c
push 0x4a65c8
call sub.KERNEL32.DLL_WriteFile
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x40222c
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x4022cb
mov eax, ebx
test eax, eax
jns 0x402241
add eax, 3
sar eax, 2
mov edx, dword [0x4a6620]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x4022cb
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x40227c
mov eax, ebx
test eax, eax
jns 0x40226b
add eax, 3
sar eax, 2
mov ecx, dword [0x4a6620]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x4022a2
mov ecx, ebx
test ecx, ecx
jns 0x402285
add ecx, 3
sar ecx, 2
mov edi, dword [0x4a6620]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4a65b4]
sub ebx, 4
add dword [0x4a65b8], ebx
call fcn.0040415c
jmp 0x40234f
cmp ebx, dword [0x4a6618]
jg 0x40231d
sub dword [0x4a6618], ebx
cmp dword [0x4a6618], 0xc
jge 0x4022ef
add ebx, dword [0x4a6618]
xor eax, eax
mov dword [0x4a6618], eax
mov eax, dword [0x4a661c]
add dword [0x4a661c], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4a65b4]
sub ebx, 4
add dword [0x4a65b8], ebx
call fcn.0040415c
jmp 0x40234f
mov eax, ebx
call fcn.004020d8
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40234f
cmp byte [0x4a604d], 0
je 0x402347
push 0x4a65c8
call sub.KERNEL32.DLL_lstrcpyA
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40235c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4a65c4], eax
cmp byte [0x4a65c0], 0
jne 0x402394
call fcn.00401ae0
test al, al
jne 0x402394
mov dword [0x4a65c4], 8
mov dword [ebp - 4], 8
jmp 0x4024f5
xor ecx, ecx
push ebp
push 0x4024ee
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x4a604d], 0
je 0x4023b5
push 0x4a65c8
call sub.KERNEL32.DLL_WriteFile
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x4023d0
mov dword [0x4a65c4], 9
jmp 0x4024c5
dec dword [0x4a65b4]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4a65b8], eax
test bl, 1
je 0x402430
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402400
test edx, 0x80000003
je 0x40240f
mov dword [0x4a65c4], 0xa
jmp 0x4024c5
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x402427
mov dword [0x4a65c4], 0xa
jmp 0x4024c5
add ebx, edx
mov esi, eax
call fcn.00401c84
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x4a661c]
jne 0x402470
sub dword [0x4a661c], ebx
add dword [0x4a6618], ebx
cmp dword [0x4a6618], 0x3c00
jle 0x402461
call fcn.00401f74
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0040415c
jmp 0x4024f5
mov edx, dword [eax]
test dl, 2
je 0x402493
and edx, 0x7ffffffc
cmp edx, 4
jge 0x40248e
mov dword [0x4a65c4], 0xb
jmp 0x4024c5
or dword [eax], 1
jmp 0x4024bc
mov eax, edi
cmp dword [eax + 4], 0
je 0x4024a6
cmp dword [eax], 0
je 0x4024a6
cmp dword [eax + 8], 0xc
jge 0x4024b2
mov dword [0x4a65c4], 0xb
jmp 0x4024c5
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401c84
mov edx, ebx
mov eax, esi
call fcn.00401eec
mov eax, dword [0x4a65c4]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4024f5
cmp byte [0x4a604d], 0
je 0x4024ed
push 0x4a65c8
call sub.KERNEL32.DLL_lstrcpyA
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x402a78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046f4
test esi, esi
jne 0x402aae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_LockResource
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004047e4
jmp 0x402acc
call sub.KERNEL32.DLL_LeaveCriticalSection
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040298c
mov edi, eax
test esi, esi
je 0x402acc
cmp dword [ebx], 0
je 0x402acc
dec esi
jmp 0x402ab5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030b4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a3008], 0x8088405
inc edx
mov dword [ebx + 0x4a3008], edx
fld qword [ebx + 0x4a3058]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x403698
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a3010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403730
push 0x80000002
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x403710
xor eax, eax
push ebp
push 0x403709
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40374c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403710
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA
ret
mov ax, word [0x4a3010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a3010], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044d4
Capabilities:
Get common file path

Disassembly:
push ecx
cmp byte [0x4a604c], 0
je 0x404535
cmp word [0x4a6220], 0xd7b2
jne 0x4044fd
cmp dword [0x4a6228], 0
jbe 0x4044fd
mov eax, 0x4a621c
call dword [0x4a6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a3060
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetVersionExA
push eax
call sub.KERNEL32.DLL_GlobalFree
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40455c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetVersionExA
push eax
call sub.KERNEL32.DLL_GlobalFree
pop edx
ret
cmp byte [0x4a3020], 0
jne 0x404551
push 0
push 0x4a3080
push 0x4a3060
push 0
call sub.KERNEL32.DLL_GetSystemDirectoryA
pop edx
ret

Function at 0x405f7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x405fb7
push 0x105
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_LockResource
mov eax, esp
mov dl, 1
call fcn.004061b8
mov esi, eax
mov dword [ebx + 0x10], esi
test esi, esi
jne 0x405fb7
mov eax, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x406000
Capabilities:
Clear file content
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x406194
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
test esi, esi
je 0x406068
push 0x4061a4
push esi
call sub.KERNEL32.DLL_MultiByteToWideChar
mov ebx, eax
test ebx, ebx
je 0x406068
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x406068
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
jmp 0x40618a
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x4060a8
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x40618a
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00405fec
mov esi, eax
cmp byte [esi], 0
je 0x40618a
lea eax, [esi + 1]
call fcn.00405fec
mov esi, eax
cmp byte [esi], 0
je 0x40618a
jmp 0x4060ae
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_ResumeThread
jmp 0x40616d
lea eax, [esi + 1]
call fcn.00405fec
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x40618a
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_ResumeThread
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov esi, eax
cmp esi, 0xffffffff
je 0x40618a
push esi
call sub.KERNEL32.DLL_GlobalSize
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x40618a
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_ResumeThread
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x4060cc
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4061b8
Capabilities:
Clear file content
Extract resource via kernel32 functions
Query or enumerate registry value
Read file on windows
Resume thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_LockResource
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063e8
push 0x80000001
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40623b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063e8
push 0x80000002
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40623b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406404
push 0x80000001
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4062c4
xor eax, eax
push ebp
push 0x4062bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4062a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406424
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4062a2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ResumeThread
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_ReadFile
push eax
call sub.KERNEL32.DLL_LoadResource
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4063de
cmp byte [ebp - 0xd], 0
jne 0x40630b
cmp byte [ebp - 0x12], 0
je 0x4063de
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406324
dec ebx
cmp byte [ebx], 0x2e
je 0x406333
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406323
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406370
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_ResumeThread
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov esi, eax
test esi, esi
jne 0x4063de
cmp byte [ebp - 0xd], 0
je 0x4063de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_ResumeThread
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov esi, eax
test esi, esi
jne 0x4063de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_ResumeThread
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret