joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401206
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.Mig1
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030c0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401325
push 1
push dword [0x4030c0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Gendalf
push str.Mig1
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030c8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4030c8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401325
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401308
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418d68
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4911ba
call fcn.0047a3e2
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x418e58
cmp byte [esi + 0x49], bl
je 0x418e58
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x418d9d
xor al, al
jmp 0x418e5a
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040f05b
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x418dfb
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x418e00
dec eax
je 0x418e04
dec eax
dec eax
je 0x418e54
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040152e
mov al, bl
jmp 0x418e5a
mov edx, dword [ebp - 0x2c]
jmp 0x418dc6
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x418e10
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x418e36
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x418e23
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00476588
add esp, 0x10
cmp edi, eax
jne 0x418de9
cmp byte [esi + 0x49], 0
je 0x418e54
test edi, edi
jne 0x418db8
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040e5e1
jmp 0x418db8
mov bl, 1
jmp 0x418deb
mov al, 1
call fcn.0047a465
ret

Function at 0x41b6c1
Capabilities:
Create bits job

Disassembly:
push 0x1c
mov eax, 0x4929af
call fcn.0047a379
xor ebx, ebx
cmp byte [esi + 0x8c], bl
jne 0x41b7a8
push ebx
push ebx
mov byte [esi + 0x8c], 1
call dword [0x49e69c]
mov edi, eax
cmp edi, ebx
jl 0x41b7a8
push ebx
push ebx
push ebx
push 3
push 2
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [0x49e678]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jge 0x41b785
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], 0x4a594c
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0041add3
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push str.Downloader_BITS_::InitializeBITS::CoInitializeSecurity_:_Error__0x_X____s
call fcn.00419636
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0041adad
mov edi, dword [ebp - 0x14]
cmp dword [edi - 4], 1
jle 0x41b776
push dword [edi - 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.0041943b
mov edi, dword [ebp - 0x14]
push edi
call dword [0x49e0e8]
lea eax, [edi - 0x10]
call fcn.00404bb1
lea edi, [esi + 8]
push edi
push 0x4a5960
push 4
push ebx
push 0x4a5950
call dword [0x49e694]
test eax, eax
jns 0x41b7a8
mov dword [edi], ebx
call dword [0x49e68c]
xor eax, eax
cmp dword [esi + 8], ebx
setne al
call fcn.0047a451
ret
Function at 0x43dfdf
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4911ba
call fcn.0047a3e2
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x43e0d6
cmp byte [esi + 0x4a], bl
je 0x43e0d6
mov eax, dword [esi]
mov edi, 0xffff
push edi
mov ecx, esi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x43e01b
xor al, al
jmp 0x43e0d8
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040f05b
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x43e079
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x43e07e
dec eax
je 0x43e082
dec eax
dec eax
je 0x43e0d2
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040152e
mov al, bl
jmp 0x43e0d8
mov edx, dword [ebp - 0x2c]
jmp 0x43e044
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x43e08e
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x43e0b4
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x43e0a1
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00476588
add esp, 0x10
cmp edi, eax
jne 0x43e067
cmp byte [esi + 0x4a], 0
je 0x43e0d2
test edi, edi
jne 0x43e036
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040e5e1
jmp 0x43e036
mov bl, 1
jmp 0x43e069
mov al, 1
call fcn.0047a465
ret
Function at 0x448480
Capabilities:
Check http status code

Disassembly:
push 0x58
mov eax, 0x492013
call fcn.0047a3e2
mov eax, dword [ebp + 8]
xor esi, esi
push 7
mov dword [ebp - 0x64], eax
pop eax
xor ecx, ecx
mov dword [ebp - 0x5c], 0x1770
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x50]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x60], esp
push edx
lea edi, [ebp - 0x54]
call fcn.0040a927
sub esp, 0x1c
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.APNPIP
call fcn.0040a94f
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00448657
mov edi, eax
cmp edi, esi
je 0x448524
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040bffa
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bffa
mov eax, edi
jmp 0x448633
mov edi, dword [0x49e5b4]
push 4
lea eax, [ebp - 0x5c]
push eax
push 2
push dword [ebp - 0x50]
call edi
test eax, eax
jne 0x44854e
call dword [0x49e36c]
push dword [ebp - 0x54]
mov edi, eax
call dword [0x49e5a8]
jmp 0x448507
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d1dd
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x448569
lea eax, [ebp - 0x2c]
push esi
push 0x4000000
push esi
push esi
push esi
push eax
push esi
push dword [ebp - 0x50]
call dword [0x49e5ac]
mov ebx, eax
mov dword [ebp - 0x58], ebx
cmp ebx, esi
je 0x4485f0
push 4
lea eax, [ebp - 0x5c]
push eax
push 5
push ebx
call edi
push 4
lea eax, [ebp - 0x5c]
push eax
push 6
push ebx
call edi
push esi
push esi
push esi
push esi
push ebx
call dword [0x49e5b8]
test eax, eax
je 0x4485f0
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x60], 4
call dword [0x49e5b0]
test eax, eax
je 0x4485f0
cmp dword [ebp - 0x4c], 0xc8
je 0x4485e0
cmp dword [ebp - 0x4c], 0xc9
jne 0x4485f0
push dword [ebp - 0x64]
lea edi, [ebp - 0x58]
call fcn.0044887f
mov ebx, dword [ebp - 0x58]
jmp 0x4485f6
call dword [0x49e36c]
mov edi, dword [0x49e5a8]
mov dword [ebp - 0x4c], eax
cmp ebx, esi
je 0x448606
push ebx
call edi
cmp dword [ebp - 0x50], esi
je 0x448610
push dword [ebp - 0x50]
call edi
cmp dword [ebp - 0x54], esi
je 0x44861a
push dword [ebp - 0x54]
call edi
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040bffa
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bffa
mov eax, dword [ebp - 0x4c]
call fcn.0047a465
ret 4
Function at 0x401611
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401620
pop dword [ebp - 0x50]
mov eax, 0x401620
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x51ad2
push 0
mov eax, 0xae1c1a1d
sub eax, 0xadd76761
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xe2377b38
sub ecx, 0xe2372c0c
mov edx, eax
mov ebx, 0x1122caa0
add ebx, 0xef25b360
add ebx, dword [ebp - 0x50]
mov edi, 0x162384e6
add edi, 0x9ad34845
xor dword [ebp - 0x20], 0xdfd615cb
mov esi, dword [ebx]
mov dword [ebp - 0x44], 0xeeff22d4
sub esi, edi
add dword [ebp - 0x20], 0x3e324357
mov dword [edx], esi
add edx, 0xba1a3290
add edx, 0x45e5cd74
add ebx, 0xc8cd8430
add ebx, 0x37327bd4
loop 0x40167a
add eax, 0xa84c361f
sub eax, 0xa84b069c
mov ebx, eax
add eax, 0xd9de0d5f
sub eax, 0xd9de0d5a
mov ecx, 0x1ccf40a4
add ecx, 0xe370bf5c
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x7023058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.070231a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x702307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x702306a
add dl, dl
jne 0x7023089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70230dc
xor eax, eax
add dl, dl
jne 0x7023096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x702317d
add dl, dl
jne 0x70230a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70230b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70230bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70230c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x70230d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7023075
mov eax, 1
add dl, dl
jne 0x70230ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70230f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70230e1
sub eax, ebx
mov ebx, 1
jne 0x7023128
mov ecx, 1
add dl, dl
jne 0x702310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7023119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7023105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7023075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x702313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x702314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7023136
cmp eax, 0x7d00
jae 0x702316d
cmp eax, 0x500
jb 0x7023168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7023075
cmp eax, 0x7f
ja 0x7023170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7023075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x702319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7023075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x75c8b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x219000]
lea eax, [edi + 0x289610]
push dword [eax]
mov dword [eax], 0xa0d41aac
push eax
push edi
or ebp, 0xffffffff
jmp 0x75c8e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x75c8e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x75c8d8
mov eax, 1
add ebx, ebx
jne 0x75c8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x75c90c
jne 0x75c92b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x75c92b
dec eax
add ebx, ebx
jne 0x75c918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x75c8f0
add ebx, ebx
jne 0x75c927
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x75c97d
xor ecx, ecx
sub eax, 3
jb 0x75c943
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x75c9b2
sar eax, 1
mov ebp, eax
jmp 0x75c94e
add ebx, ebx
jne 0x75c94e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x75c91c
inc ecx
add ebx, ebx
jne 0x75c95c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x75c91c
add ebx, ebx
jne 0x75c969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x75c95e
jne 0x75c97a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x75c95e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x75c99c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x75c98e
jmp 0x75c8de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x75c99c
add edi, ecx
jmp 0x75c8de
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xe752
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x75c9be
cmp byte [edi], 0x9e
jne 0x75c9be
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 0x75c9c3
lea edi, [esi + 0x359000]
mov eax, dword [edi]
or eax, eax
je 0x75ca3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36167c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x361814]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x75c9f0
mov ecx, edi
jns 0x75ca1f
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 + 0x36181c]
or eax, eax
je 0x75ca35
mov dword [ebx], eax
add ebx, 4
jmp 0x75ca0d
call dword [esi + 0x361818]
mov ebp, dword [esi + 0x361820]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
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 0x75ca6f
sub esp, 0xffffff80
jmp 0x54dac8
Function at 0x10018500
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100fd640]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp word [0x100fddb8], 0
push ebx
jne 0x10018722
push esi
push 0x11c
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
push str._I__OS_Version_
push 0
push 3
mov esi, eax
call fcn.100532b0
add esp, 0xc
test esi, esi
pop esi
je 0x10018706
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
cmp eax, 2
jne 0x100186f1
cmp ecx, 4
jbe 0x100186f1
mov eax, dword [esp + 0xc]
mov ebx, 1
cmp ecx, 6
jb 0x10018628
test eax, eax
jne 0x100185de
cmp byte [esp + 0x11e], bl
jne 0x100185bc
push str.OS_VISTA_n
push eax
push 3
call fcn.100532b0
add esp, 0xc
mov word [0x100fddb8], bx
jmp 0x10018722
push str.OS_WINSERV_2008_n
push 0
push 3
call fcn.100532b0
mov edx, 2
add esp, 0xc
mov word [0x100fddb8], dx
jmp 0x10018722
cmp eax, ebx
jb 0x10018628
cmp byte [esp + 0x11e], bl
jne 0x10018606
push str.OS_WINDOWS7_or_newer_n
push 0
push 3
call fcn.100532b0
add esp, 0xc
mov eax, 0x20
jmp 0x1001871c
push str.OS_WINSERV_2008R2_or_newer_n
push 0
push 3
call fcn.100532b0
mov ecx, 0x40
add esp, 0xc
mov word [0x100fddb8], cx
jmp 0x10018722
cmp ecx, 5
jne 0x100186d0
cmp eax, 2
jne 0x1001867c
cmp byte [esp + 0x11e], bl
jne 0x10018661
push str.OS_WINXP_64_n
push 0
push 3
call fcn.100532b0
mov edx, 8
add esp, 0xc
mov word [0x100fddb8], dx
jmp 0x10018722
push str.OS_WINSERV_2003_n
push 0
push 3
call fcn.100532b0
add esp, 0xc
mov eax, 0x10
jmp 0x1001871c
cmp eax, ebx
jne 0x100186d0
push str.OS_WINXP
push 0
push 3
call fcn.100532b0
add esp, 0xc
test dword [esp + 0x11c], 0x200
mov ecx, 4
mov word [0x100fddb8], cx
je 0x100186bd
push str.Home_n
push 0
push 3
call fcn.100532b0
add esp, 0xc
jmp 0x10018722
push str.Pro_n
push 0
push 3
call fcn.100532b0
add esp, 0xc
jmp 0x10018722
push eax
push ecx
push str.OS_UNKNOWN:_dwMajorVersion_d_dwMinorVersion_d_n
push 0
push 3
call fcn.100532b0
mov edx, 0xff80
add esp, 0x14
mov word [0x100fddb8], dx
jmp 0x10018722
push ecx
push eax
push str.OS_UNKNOWN:_dwPlatformId_d_dwMajorVersion_d_n
push 0
push 3
call fcn.100532b0
add esp, 0x14
jmp 0x10018717
push str.OS_UNKNOWN:_GetVersionEx_failed_n
push 0
push 3
call fcn.100532b0
add esp, 0xc
mov eax, 0xff80
mov word [0x100fddb8], ax
movzx ecx, word [esp + 0x128]
movzx eax, word [0x100fddb8]
and eax, ecx
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
call fcn.100b4c22
add esp, 0x120
ret
Function at 0x10018890
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push str.J2D_D3D_RASTERIZER
call dword [sym.imp.MSVCR100.dll_getenv]
mov esi, eax
add esp, 4
mov ebx, 1
test esi, esi
je 0x10018979
push edi
push str._W__D3DPPLM::SelectDeviceType:
push 0
push 2
call fcn.100532b0
mov edi, dword [sym.imp.MSVCR100.dll_strncmp]
push 3
push 0x100ca9ec
push esi
call edi
add esp, 0x18
test eax, eax
je 0x10018951
push 3
push 0x100ba4a4
push esi
call edi
add esp, 0xc
test eax, eax
je 0x10018951
push 3
push 0x100ca9e8
push esi
call edi
add esp, 0xc
test eax, eax
je 0x10018941
push 3
push 0x100ca9e4
push esi
call edi
add esp, 0xc
test eax, eax
je 0x10018941
push 3
push 0x100ca9e0
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x1001892d
push str.nullref_rasterizer_selected
push eax
push 2
call fcn.100532b0
mov ebx, 4
jmp 0x10018964
push esi
push str.unknown_rasterizer:__s__only__refhalnul__supported__hal_selected_instead
push 0
push 2
call fcn.100532b0
add esp, 0x10
jmp 0x10018967
push str.hal_rasterizer_selected
push 0
push 2
call fcn.100532b0
jmp 0x10018964
push str.ref_rasterizer_selected
push 0
push 2
call fcn.100532b0
mov ebx, 2
add esp, 0xc
push 0x100c9da4
push 0
push 2
call fcn.100532b0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x10019290
Capabilities:
Check os version

Disassembly:
push esi
mov esi, dword [sym.imp.kernel32.dll_GetVersion]
call esi
cmp al, 5
ja 0x100192ac
call esi
cmp al, 5
jne 0x100192ba
call esi
shr eax, 8
cmp al, 1
jb 0x100192ba
push 0x52
call fcn.10018500
add esp, 4
test eax, eax
je 0x100192e5
push str.D3DPPLM::CheckOSVersion:_Windows_2000_or_earlier__or_a_server__OS_detected__failed
push 1
push 1
call fcn.100532b0
add esp, 0xc
cmp dword [0x100fddb4], 0
je 0x100192e9
push str.__OS_check_overridden_via_J2D_D3D_NO_HWCHECK
push 1
push 2
call fcn.100532b0
add esp, 0xc
xor eax, eax
pop esi
ret
mov eax, 0x80004005
pop esi
ret
Function at 0x1004b3b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push str.OGLFuncs_InitPlatformFuncs
inc ebx
push ebx
push 3
call fcn.100532b0
mov eax, dword [0x100fdf58]
add esp, 0xc
test eax, eax
jne 0x1004b3e7
push str.OGLFuncs_InitPlatformFuncs:_library_not_yet_initialized
push ebx
push ebx
call fcn.100532b0
add esp, 0xc
xor al, al
pop ebx
ret
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push edi
mov edi, str.wglCreateContext
push edi
push eax
call esi
mov dword [0x10100fe4], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglDeleteContext
push edi
push dword [0x100fdf58]
call esi
mov dword [0x10100f84], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglMakeCurrent
push edi
push dword [0x100fdf58]
call esi
mov dword [0x101010b8], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglGetCurrentContext
push edi
push dword [0x100fdf58]
call esi
mov dword [0x101010e0], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglGetCurrentDC
push edi
push dword [0x100fdf58]
call esi
mov dword [0x101010dc], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglGetProcAddress
push edi
push dword [0x100fdf58]
call esi
mov dword [0x101010f4], eax
test eax, eax
je 0x1004b48f
mov edi, str.wglShareLists
push edi
push dword [0x100fdf58]
call esi
mov dword [0x10100f68], eax
test eax, eax
jne 0x1004b49e
push edi
push ebx
push ebx
call fcn.100532b0
add esp, 0xc
xor al, al
jmp 0x1004b4a0
mov al, bl
pop edi
pop esi
pop ebx
ret