joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456728
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x456756
mov eax, ebx
call fcn.004571cc
cmp dword [ebx + 0x3c], 0
je 0x45674f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4567c7
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4567b9
cmp dword [ebx + 8], 0
je 0x456778
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x45678a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4567b9
cmp dword [ebx + 8], 0
je 0x45676b
cmp eax, 3
je 0x45679d
dec eax
jne 0x45676b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45676b
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x45676b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4567e5
cmp dword [ebx + 0x10], 0xcc
je 0x4567e5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004567f0
pop ebx
ret
Function at 0x4743ec
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
xor edx, edx
mov ecx, edx
mov edi, dword [esi + 0x154]
test edi, edi
je 0x474422
test dl, dl
jne 0x47440c
test byte [edi + 0x70], 0x10
setne dl
test cl, cl
jne 0x474417
test byte [edi + 0x71], 0x10
setne cl
test cl, dl
jne 0x474422
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x474401
test dl, dl
jne 0x474433
test byte [esi + 0xb8], 0x10
jne 0x474433
xor eax, eax
jmp 0x474435
mov al, 1
test cl, cl
jne 0x474446
test byte [esi + 0xb9], 0x10
jne 0x474446
xor ebx, ebx
jmp 0x474448
mov bl, 1
mov byte [esp], bl
mov edi, dword [esi + 0x154]
test edi, edi
je 0x474519
mov ebp, dword [edi + 0x70]
mov ebx, ebp
and ebx, 0x1f
sub ebx, 2
je 0x47446d
sub ebx, 2
je 0x47448d
jmp 0x4744ab
test al, al
jne 0x474484
or ebp, 0x400000
or ebp, 0x200000
mov dword [edi + 0x70], ebp
mov dl, 1
jmp 0x4744ab
and dword [edi + 0x70], 0xff9fffff
jmp 0x4744ab
test al, al
je 0x4744a4
or ebp, 0x400000
or ebp, 0x200000
mov dword [edi + 0x70], ebp
mov dl, 1
jmp 0x4744ab
and dword [edi + 0x70], 0xff9fffff
mov ebx, dword [edi + 0x70]
and ebx, 0x1f00
sub ebx, 0x200
je 0x4744c6
sub ebx, 0x200
je 0x4744eb
jmp 0x47450e
cmp byte [esp], 0
jne 0x4744e2
mov ecx, dword [edi + 0x70]
or ecx, 0x40000000
or ecx, 0x20000000
mov dword [edi + 0x70], ecx
mov cl, 1
jmp 0x47450e
and dword [edi + 0x70], 0x9fffffff
jmp 0x47450e
cmp byte [esp], 0
je 0x474507
mov ecx, dword [edi + 0x70]
or ecx, 0x40000000
or ecx, 0x20000000
mov dword [edi + 0x70], ecx
mov cl, 1
jmp 0x47450e
and dword [edi + 0x70], 0x9fffffff
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x474459
test dl, dl
je 0x474537
mov edx, dword [esi + 0xb8]
or edx, 0x400000
or edx, 0x100000
mov dword [esi + 0xb8], edx
jmp 0x474541
and dword [esi + 0xb8], 0xffafffff
mov edx, dword [esi + 0xb8]
mov ebx, edx
and ebx, 0x1f
sub ebx, 2
je 0x474558
sub ebx, 2
je 0x474573
jmp 0x47458c
test al, al
jne 0x47456a
or edx, 0x20
or edx, 0x40
mov dword [esi + 0xb8], edx
jmp 0x47458c
and dword [esi + 0xb8], 0xffffff9f
jmp 0x47458c
test al, al
je 0x474585
or edx, 0x20
or edx, 0x40
mov dword [esi + 0xb8], edx
jmp 0x47458c
and dword [esi + 0xb8], 0xffffff9f
test cl, cl
je 0x4745a8
mov eax, dword [esi + 0xb8]
or eax, 0x40000000
or eax, 0x10000000
mov dword [esi + 0xb8], eax
jmp 0x4745b2
and dword [esi + 0xb8], 0xafffffff
mov eax, dword [esi + 0xb8]
mov edx, eax
and edx, 0x1f00
sub edx, 0x200
je 0x4745d2
sub edx, 0x200
je 0x4745f6
jmp 0x474618
cmp byte [esp], 0
jne 0x4745ea
or eax, 0x2000
or eax, 0x4000
mov dword [esi + 0xb8], eax
jmp 0x474618
and dword [esi + 0xb8], 0xffff9fff
jmp 0x474618
cmp byte [esp], 0
je 0x47460e
or eax, 0x2000
or eax, 0x4000
mov dword [esi + 0xb8], eax
jmp 0x474618
and dword [esi + 0xb8], 0xffff9fff
mov edi, dword [esi + 0x144]
mov eax, edi
call fcn.0046a4cc
mov ebx, dword [edi + 0x20]
test ebx, ebx
jle 0x474643
dec ebx
mov edx, ebx
mov eax, edi
call fcn.0046ac40
mov edx, dword [eax]
mov eax, esi
call fcn.004740e8
test ebx, ebx
jne 0x47462c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x474c68
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
xor edx, edx
mov ecx, edx
mov edi, dword [esi + 0x154]
test edi, edi
je 0x474ca4
test dl, dl
jne 0x474c8b
test byte [edi + 0x80], 0x10
setne dl
test cl, cl
jne 0x474c99
test byte [edi + 0x81], 0x10
setne cl
test cl, dl
jne 0x474ca4
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x474c7d
test dl, dl
jne 0x474cb5
test byte [esi + 0xc8], 0x10
jne 0x474cb5
xor eax, eax
jmp 0x474cb7
mov al, 1
test cl, cl
jne 0x474cc8
test byte [esi + 0xc9], 0x10
jne 0x474cc8
xor ebx, ebx
jmp 0x474cca
mov bl, 1
mov byte [esp], bl
mov edi, dword [esi + 0x154]
test edi, edi
je 0x474dbf
mov ebp, dword [edi + 0x80]
mov ebx, ebp
and ebx, 0x1f
sub ebx, 2
je 0x474cf2
sub ebx, 2
je 0x474d18
jmp 0x474d3c
test al, al
jne 0x474d0c
or ebp, 0x400000
or ebp, 0x200000
mov dword [edi + 0x80], ebp
mov dl, 1
jmp 0x474d3c
and dword [edi + 0x80], 0xff9fffff
jmp 0x474d3c
test al, al
je 0x474d32
or ebp, 0x400000
or ebp, 0x200000
mov dword [edi + 0x80], ebp
mov dl, 1
jmp 0x474d3c
and dword [edi + 0x80], 0xff9fffff
mov ebx, dword [edi + 0x80]
and ebx, 0x1f00
sub ebx, 0x200
je 0x474d5a
sub ebx, 0x200
je 0x474d88
jmp 0x474db4
cmp byte [esp], 0
jne 0x474d7c
mov ecx, dword [edi + 0x80]
or ecx, 0x40000000
or ecx, 0x20000000
mov dword [edi + 0x80], ecx
mov cl, 1
jmp 0x474db4
and dword [edi + 0x80], 0x9fffffff
jmp 0x474db4
cmp byte [esp], 0
je 0x474daa
mov ecx, dword [edi + 0x80]
or ecx, 0x40000000
or ecx, 0x20000000
mov dword [edi + 0x80], ecx
mov cl, 1
jmp 0x474db4
and dword [edi + 0x80], 0x9fffffff
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x474cdb
test dl, dl
je 0x474ddd
mov edx, dword [esi + 0xc8]
or edx, 0x400000
or edx, 0x100000
mov dword [esi + 0xc8], edx
jmp 0x474de7
and dword [esi + 0xc8], 0xffafffff
mov edx, dword [esi + 0xc8]
mov ebx, edx
and ebx, 0x1f
sub ebx, 2
je 0x474dfe
sub ebx, 2
je 0x474e19
jmp 0x474e32
test al, al
jne 0x474e10
or edx, 0x20
or edx, 0x40
mov dword [esi + 0xc8], edx
jmp 0x474e32
and dword [esi + 0xc8], 0xffffff9f
jmp 0x474e32
test al, al
je 0x474e2b
or edx, 0x20
or edx, 0x40
mov dword [esi + 0xc8], edx
jmp 0x474e32
and dword [esi + 0xc8], 0xffffff9f
test cl, cl
je 0x474e4e
mov eax, dword [esi + 0xc8]
or eax, 0x40000000
or eax, 0x10000000
mov dword [esi + 0xc8], eax
jmp 0x474e58
and dword [esi + 0xc8], 0xafffffff
mov eax, dword [esi + 0xc8]
mov edx, eax
and edx, 0x1f00
sub edx, 0x200
je 0x474e78
sub edx, 0x200
je 0x474e9c
jmp 0x474ebe
cmp byte [esp], 0
jne 0x474e90
or eax, 0x2000
or eax, 0x4000
mov dword [esi + 0xc8], eax
jmp 0x474ebe
and dword [esi + 0xc8], 0xffff9fff
jmp 0x474ebe
cmp byte [esp], 0
je 0x474eb4
or eax, 0x2000
or eax, 0x4000
mov dword [esi + 0xc8], eax
jmp 0x474ebe
and dword [esi + 0xc8], 0xffff9fff
mov edi, dword [esi + 0x148]
mov eax, edi
call fcn.0046a4cc
mov ebx, dword [edi + 0x20]
test ebx, ebx
jle 0x474ee9
dec ebx
mov edx, ebx
mov eax, edi
call fcn.0046ac40
mov edx, dword [eax]
mov eax, esi
call fcn.00474958
test ebx, ebx
jne 0x474ed2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x475428
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
xor edx, edx
mov ecx, edx
mov edi, dword [esi + 0x154]
test edi, edi
je 0x475464
test dl, dl
jne 0x47544b
test byte [edi + 0x8c], 0x10
setne dl
test cl, cl
jne 0x475459
test byte [edi + 0x8d], 0x10
setne cl
test cl, dl
jne 0x475464
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x47543d
test dl, dl
jne 0x475475
test byte [esi + 0xd4], 0x10
jne 0x475475
xor eax, eax
jmp 0x475477
mov al, 1
test cl, cl
jne 0x475488
test byte [esi + 0xd5], 0x10
jne 0x475488
xor ebx, ebx
jmp 0x47548a
mov bl, 1
mov byte [esp], bl
mov edi, dword [esi + 0x154]
test edi, edi
je 0x47557f
mov ebp, dword [edi + 0x8c]
mov ebx, ebp
and ebx, 0x1f
sub ebx, 2
je 0x4754b2
sub ebx, 2
je 0x4754d8
jmp 0x4754fc
test al, al
jne 0x4754cc
or ebp, 0x400000
or ebp, 0x200000
mov dword [edi + 0x8c], ebp
mov dl, 1
jmp 0x4754fc
and dword [edi + 0x8c], 0xff9fffff
jmp 0x4754fc
test al, al
je 0x4754f2
or ebp, 0x400000
or ebp, 0x200000
mov dword [edi + 0x8c], ebp
mov dl, 1
jmp 0x4754fc
and dword [edi + 0x8c], 0xff9fffff
mov ebx, dword [edi + 0x8c]
and ebx, 0x1f00
sub ebx, 0x200
je 0x47551a
sub ebx, 0x200
je 0x475548
jmp 0x475574
cmp byte [esp], 0
jne 0x47553c
mov ecx, dword [edi + 0x8c]
or ecx, 0x40000000
or ecx, 0x20000000
mov dword [edi + 0x8c], ecx
mov cl, 1
jmp 0x475574
and dword [edi + 0x8c], 0x9fffffff
jmp 0x475574
cmp byte [esp], 0
je 0x47556a
mov ecx, dword [edi + 0x8c]
or ecx, 0x40000000
or ecx, 0x20000000
mov dword [edi + 0x8c], ecx
mov cl, 1
jmp 0x475574
and dword [edi + 0x8c], 0x9fffffff
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x47549b
test dl, dl
je 0x47559d
mov edx, dword [esi + 0xd4]
or edx, 0x400000
or edx, 0x100000
mov dword [esi + 0xd4], edx
jmp 0x4755a7
and dword [esi + 0xd4], 0xffafffff
mov edx, dword [esi + 0xd4]
mov ebx, edx
and ebx, 0x1f
sub ebx, 2
je 0x4755be
sub ebx, 2
je 0x4755d9
jmp 0x4755f2
test al, al
jne 0x4755d0
or edx, 0x20
or edx, 0x40
mov dword [esi + 0xd4], edx
jmp 0x4755f2
and dword [esi + 0xd4], 0xffffff9f
jmp 0x4755f2
test al, al
je 0x4755eb
or edx, 0x20
or edx, 0x40
mov dword [esi + 0xd4], edx
jmp 0x4755f2
and dword [esi + 0xd4], 0xffffff9f
test cl, cl
je 0x47560e
mov eax, dword [esi + 0xd4]
or eax, 0x40000000
or eax, 0x10000000
mov dword [esi + 0xd4], eax
jmp 0x475618
and dword [esi + 0xd4], 0xafffffff
mov eax, dword [esi + 0xd4]
mov edx, eax
and edx, 0x1f00
sub edx, 0x200
je 0x475638
sub edx, 0x200
je 0x47565c
jmp 0x47567e
cmp byte [esp], 0
jne 0x475650
or eax, 0x2000
or eax, 0x4000
mov dword [esi + 0xd4], eax
jmp 0x47567e
and dword [esi + 0xd4], 0xffff9fff
jmp 0x47567e
cmp byte [esp], 0
je 0x475674
or eax, 0x2000
or eax, 0x4000
mov dword [esi + 0xd4], eax
jmp 0x47567e
and dword [esi + 0xd4], 0xffff9fff
mov edi, dword [esi + 0x14c]
mov eax, edi
call fcn.0046a4cc
mov ebx, dword [edi + 0x20]
test ebx, ebx
jle 0x4756a9
dec ebx
mov edx, ebx
mov eax, edi
call fcn.0046ac40
mov edx, dword [eax]
mov eax, esi
call fcn.00475118
test ebx, ebx
jne 0x475692
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47fd54
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
call sub.kernel32.dll_GetTickCount
mov dword [0x4a7adc], eax
mov byte [0x4a7ac0], 0
jmp 0x47fda8
cmp byte [0x4ae2b9], 2
je 0x47fd86
mov eax, dword [ebp + 4]
call fcn.00405804
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x47fd8e
mov eax, dword [ebp + 4]
call fcn.0047fc1c
mov edi, dword [ebx + 8]
mov esi, edi
mov eax, dword [edi + 0xc]
mov dword [ebx + 8], eax
lea eax, [esi + 4]
call fcn.00405374
mov eax, esi
call fcn.00404344
mov ebp, dword [ebx + 8]
test ebp, ebp
jne 0x47fd6d
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x480900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x480ab0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp + 0xc]
call fcn.004053c8
xor edx, edx
push ebp
push 0x480a60
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x40c]
mov eax, edi
call fcn.0048083c
mov edx, dword [ebp - 0x40c]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.0040a548
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
xor edx, edx
push ebp
push 0x480a4f
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
je 0x4809a2
call fcn.00404d10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x480a92
lea eax, [ebp - 0x210]
mov ecx, 0xff
mov edx, dword [ebp - 4]
call fcn.0040a548
lea ebx, [ebp - 0x405]
mov dword [ebp - 8], 0x1f4
mov byte [ebx], 0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4809ef
mov edx, esi
mov eax, ebx
call fcn.0040a614
jmp 0x480a32
cmp eax, 0xea
jne 0x480a32
mov eax, dword [ebp - 8]
call fcn.00402ec4
mov ebx, eax
mov byte [ebx], 0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x480a2b
mov edx, esi
mov eax, ebx
call fcn.0040a614
mov eax, ebx
call fcn.00402ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480a56
cmp dword [ebp - 0xc], 0
je 0x480a4e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480ab7
lea eax, [ebp - 0x410]
mov edx, 2
call fcn.00405398
ret
Function at 0x48454c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x484655
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
push 0x484668
call sub.wininet.dll_InternetOpenA
mov esi, eax
push 0
push 0x200
push 0
push 0
mov eax, ebx
call fcn.00405804
push eax
push esi
call sub.wininet.dll_InternetOpenUrlA
mov edi, eax
test edi, edi
jne 0x4845a7
xor ebx, ebx
jmp 0x484639
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x201
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20d]
push eax
push 0x13
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
jne 0x4845d2
xor ebx, ebx
jmp 0x484633
lea eax, [ebp - 4]
lea edx, [ebp - 0x20d]
mov ecx, 0x201
call fcn.004055e4
mov eax, dword [ebp - 4]
mov edx, 0x48467c
call fcn.0040579c
jne 0x4845f8
mov bl, 1
jmp 0x484633
mov eax, dword [ebp - 4]
mov edx, 0x484688
call fcn.0040579c
jne 0x48460b
mov bl, 1
jmp 0x484633
mov eax, dword [ebp - 4]
mov edx, 0x484694
call fcn.0040579c
jne 0x48461e
xor ebx, ebx
jmp 0x484633
mov eax, dword [ebp - 4]
mov edx, 0x4846a0
call fcn.0040579c
jne 0x484631
xor ebx, ebx
jmp 0x484633
xor ebx, ebx
push edi
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48465c
lea eax, [ebp - 4]
call fcn.00405374
ret

Function at 0x4863fc
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x486505
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
push 0x486518
call sub.wininet.dll_InternetOpenA
mov esi, eax
push 0
push 0x200
push 0
push 0
mov eax, ebx
call fcn.00405804
push eax
push esi
call sub.wininet.dll_InternetOpenUrlA
mov edi, eax
test edi, edi
jne 0x486457
xor ebx, ebx
jmp 0x4864e9
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x201
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20d]
push eax
push 0x13
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
jne 0x486482
xor ebx, ebx
jmp 0x4864e3
lea eax, [ebp - 4]
lea edx, [ebp - 0x20d]
mov ecx, 0x201
call fcn.004055e4
mov eax, dword [ebp - 4]
mov edx, 0x48652c
call fcn.0040579c
jne 0x4864a8
mov bl, 1
jmp 0x4864e3
mov eax, dword [ebp - 4]
mov edx, 0x486538
call fcn.0040579c
jne 0x4864bb
mov bl, 1
jmp 0x4864e3
mov eax, dword [ebp - 4]
mov edx, 0x486544
call fcn.0040579c
jne 0x4864ce
xor ebx, ebx
jmp 0x4864e3
mov eax, dword [ebp - 4]
mov edx, 0x486550
call fcn.0040579c
jne 0x4864e1
xor ebx, ebx
jmp 0x4864e3
xor ebx, ebx
push edi
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48650c
lea eax, [ebp - 4]
call fcn.00405374
ret
Function at 0x48be3c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x48bf2a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48be6f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48be79
xor eax, eax
push ebp
push 0x48befd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, 0x4a7cec
call fcn.0042020c
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x48bf40
call fcn.0040568c
mov eax, dword [ebp - 0x10]
call fcn.00405804
push eax
push 0x80000000
call sub.advapi32.dll_RegDeleteKeyA
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, 0x48bf50
call fcn.0040568c
mov eax, dword [ebp - 0x14]
call fcn.00405804
push eax
push 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
lea eax, [ebp - 0xc]
call fcn.004299ac
cmp word [ebp - 0xc], 9
jb 0x48bef3
mov eax, 0x4a7cec
call fcn.0048aa28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48bf07
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bf31
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405398
lea eax, [ebp - 4]
call fcn.00405374
ret
Function at 0x406c04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040956c
test esi, esi
jne 0x406c3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004096f4
jmp 0x406c58
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406ae8
mov edi, eax
test esi, esi
je 0x406c58
cmp dword [ebx], 0
je 0x406c58
dec esi
jmp 0x406c41
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x66f008], 0x8088405
inc edx
mov dword [ebx + 0x66f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4082cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004086b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408456
test edi, edi
je 0x408456
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408371
cmp edi, 0xffffffff
je 0x408331
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408331
mov byte [esp], 0
jmp 0x408456
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408371
test ebx, ebx
jne 0x408363
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408363
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408456
lea eax, [esp + 0xc]
call fcn.00407fac
dec ebp
test ebp, ebp
jg 0x408316
cmp edi, 0xffffffff
je 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408394
mov byte [esp], 0
jmp 0x408456
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4082da
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408396
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004084c4
mov edx, eax
mov ebx, dword [0x6798fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4083fa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4083f8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4083fa
xor edi, edi
cmp byte [esp], 0
je 0x408420
mov ebx, dword [esi]
test bl, 1
jne 0x408436
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408400
mov byte [esp + 1], 1
jmp 0x408436
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408420
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4083ad
cmp byte [esp], 0
je 0x408456
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4091fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x67905c], 0
je 0x409263
cmp word [0x679348], 0xd7b2
jne 0x409225
cmp dword [0x679350], 0
jbe 0x409225
mov eax, 0x679344
call dword [0x679360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409290
call fcn.00409de0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x66f032], 0
jne 0x40927f
push 0
push 0x66f9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40942c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x66f034], 0
je 0x409457
mov edx, edi
mov eax, esi
call dword [0x66f034]
mov ebx, eax
jmp 0x409468
mov eax, 8
call fcn.004067ec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x67905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4093f4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409498
mov eax, ebx
call fcn.00406808
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bcc4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40be29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040956c
cmp si, word [0x66fa08]
jb 0x40bd5c
cmp si, word [0x66fc08]
ja 0x40bd5c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bd5c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x66fa08]
jae 0x40bd36
mov edi, ebx
dec edi
jmp 0x40bd57
cmp si, word [ebx*8 + 0x66fa08]
jbe 0x40bd46
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bd57
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x66fa0c]
call fcn.0040bbe4
jmp 0x40bd5c
cmp edi, dword [ebp - 8]
jae 0x40bd20
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40be0b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40be0b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x160]
push 0x40be44
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x164]
push 0x40be54
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be30
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004095cc
ret