joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c482
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000c491
pop dword [ebp - 0x2c]
mov eax, 0x88f4f607
sub eax, 0x78f43176
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3d852
push 0
mov eax, 0x592091d2
add eax, 0xb6e14f92
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x8e1860b7
sub ecx, 0x8e180713
mov esi, eax
mov edx, 0x119c4e3a
sub edx, 0x198103a
add edx, dword [ebp - 0x2c]
mov ebx, 0x4649ba23
add ebx, 0x994d8f11
xor dword [ebp - 0x14], esi
mov edi, dword [edx]
mov dword [ebp - 0x20], 0x3d63b18b
xor edi, ebx
mov dword [esi], edi
add dword [ebp - 0x24], ecx
add esi, 4
add edx, 4
loop 0x1000c4f0
add eax, 0x8e7ff139
sub eax, 0x8e7e97d6
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x1000d4ea
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, 0x84
test esi, esi
lea edx, [esi + 0xc]
cmove edx, eax
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
push 0x50
test esi, esi
lea eax, [esi - 0x28]
pop ecx
cmove eax, ecx
pop esi
cmp dword [eax], 0
je 0x1000d51b
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 8

Function at 0x1000fd3c
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1003e4c0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.1000c482
mov esi, eax
test esi, esi
jne 0x1000fdeb
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000fdc6
lea eax, [esp + 0x28]
push eax
call fcn.1000fd3c
mov esi, eax
test esi, esi
jne 0x1000fdeb
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x100
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x1000fda1
call fcn.1000ce21
push ebx
mov ecx, edi
call fcn.1000d242
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000ce21
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10019a3d
add esp, 0x11c
ret 4
Function at 0x412ff0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413094
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov dword [ebp - 0xc], eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 0x10]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x4130ac
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41309b
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x420c3c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x420ca1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x420c8b
push 3
push 0x420cac
push 0x420cac
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x420cb0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420ca8
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x6f341ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6f341f4b
cmp byte [esi + ebx - 1], 0xa
je 0x6f341f1f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6f343118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x1000d7ac
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x10022df0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x10015f92
call fcn.10013691
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x1000d806
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.100108bc
pop ecx
pop ecx
push ebx
push edi
call fcn.10015081
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000e5f7
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1000d823
call fcn.1000e489
jmp 0x1000d825
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x1000d871
call fcn.1000e7cb
jmp 0x1000d871
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10013502
add ebp, 0x20c
leave
ret

Function at 0x1000d89b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x10022df0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x10015fc2
call fcn.10013691
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x1000d8f5
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.100108bc
pop ecx
pop ecx
push ebx
push edi
call fcn.10015081
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000e5f7
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1000d912
call fcn.1000e489
jmp 0x1000d914
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x1000d960
call fcn.1000e7cb
jmp 0x1000d960
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10013502
add ebp, 0x20c
leave
ret
Function at 0x1000e055
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x10016022
call fcn.10013691
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.10015081
test eax, eax
je 0x1000e080
call fcn.1000e046
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x100173dc
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x1000e0db
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.100108bc
pop ecx
pop ecx
push edi
push esi
call fcn.10015081
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.1000e72f
push eax
push esi
push 0x100197c4
call fcn.100108bc
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x1000e0d4
ret
cmp ebx, edi
je 0x1000e0e6
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x1000e197
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x1000e143
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x1000e09f
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x1000e197
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x1000e197
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x1000e09f
mov eax, esi
call fcn.10013736
ret

Function at 0x1000e4df
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10022df0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.10015081
mov ebx, eax
cmp ebx, esi
je 0x1000e552
lea ecx, [ebp - 0x74]
call fcn.10001ba0
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013502
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000e56a
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.1000e4df
cmp eax, esi
jne 0x1000e59c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x1000e55a
lea ecx, [ebp - 0x74]
call fcn.10001ba0
push dword [ebp - 0x78]
mov ecx, edi
call fcn.1000bfdf
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10001ba0
mov eax, esi
jmp 0x1000e538
Function at 0x1000f85c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x138]
sub esp, 0x1b8
mov eax, dword [0x10022df0]
xor eax, ebp
mov dword [ebp + 0x134], eax
push ebx
push 0x104
xor ebx, ebx
lea eax, [ebp + 0x30]
push ebx
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
lea eax, [ebp + 0x30]
push eax
push ebx
push ebx
push 0x2c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1000f8b7
xor eax, eax
mov ecx, dword [ebp + 0x134]
xor ecx, ebp
pop ebx
call fcn.10013502
add ebp, 0x138
leave
ret
push esi
lea eax, [ebp + 0x30]
push edi
mov dword [ebp + 0x28], 0xf
mov dword [ebp + 0x24], ebx
mov byte [ebp + 0x14], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000f8cc
sub eax, esi
push eax
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x14]
call fcn.10002aab
push str.JavaJava_Updatejucheck.exe
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10015081
add esp, 0xc
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x14]
call fcn.10002786
push 0x22
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x14]
push 0x22
push eax
call fcn.1000fdcd
add esp, 0xc
push eax
lea eax, [ebp - 8]
push eax
call fcn.10015081
add esp, 0xc
push ebx
push esi
lea ecx, [ebp + 0x14]
call fcn.10002786
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_memset
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 0xc], 0x10
stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
mov eax, ecx
jae 0x1000f95e
lea eax, [ebp - 8]
add eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0x10
jae 0x1000f96a
lea ecx, [ebp - 8]
push dword [ebp - 0x29]
mov dword [ebp + 0x20], ebx
push eax
push ecx
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
call fcn.1000fe48
lea eax, [ebp - 0x25]
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 0x25], bl
call fcn.1000fc2a
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x1000f99b
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 0x8000000
push esi
push ebx
push ebx
push dword [ebp + 0x20]
push eax
call fcn.10015081
add esp, 0x28
test eax, eax
jne 0x1000f9e4
xor edi, edi
lea ecx, [ebp + 0x20]
call fcn.1000fabc
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.10002786
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.10002786
mov eax, edi
pop edi
pop esi
jmp 0x1000f8a1
mov edi, esi
jmp 0x1000f9bf
Function at 0x10013502
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022df0]
jne 0x1001350c
repz ret
jmp fcn.10013cd3

Function at 0x10015081
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10015090
pop dword [ebp - 0x2c]
mov eax, 0x64a29487
sub eax, 0x54a143f7
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xa9604958
sub dword [ebp - 0x3c], 0x5b0e040d
mov dword [ebp - 0x38], 0xe38766b7
add dword [ebp - 0x38], 0x4eabe58e
mov dword [ebp - 0x34], 0x133c1136
add dword [ebp - 0x34], 0x391032f8
mov dword [ebp - 0x30], 0xbe15c6ea
add dword [ebp - 0x30], 0x41ea3916
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xd23c100e
add dword [ebp - 0x3c], 0xa2365948
mov dword [ebp - 0x38], 0x48f10fac
add dword [ebp - 0x38], 0xf87b51c9
mov dword [ebp - 0x34], 0xff913127
sub dword [ebp - 0x34], 0x9c21c4bb
mov dword [ebp - 0x30], 0x9c173509
add dword [ebp - 0x30], 0x63e8caf7
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xdbfb017d
sub eax, 0xcbf99055
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bfd8
push 0
call eax
mov ecx, 0x4b9b6129
add ecx, 0xb464f523
xor esi, esi
add esi, eax
mov edx, 0x1002d600
add edx, dword [ebp - 0x2c]
mov ebx, 0xc920b5ac
add ebx, 0xedefa491
mov dword [ebp - 0x14], 0xd2a31c2c
mov edi, dword [edx]
xor edi, ebx
sub dword [ebp - 0x20], ebx
mov dword [esi], edi
add esi, 0x6b41963d
add esi, 0x94be69c7
add edx, 0xdf7cbeb
add edx, 0xf2083419
loop 0x100151a9
add eax, 0xeb903064
sub eax, 0xeb8ee461
mov ebx, eax
add eax, 5
mov ecx, 0x5fa512c5
add ecx, 0xb05aed3b
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40f310
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov dword [0x602470], eax
xor eax, eax
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x60246c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x602470], edx
cmp eax, 0x26f
jl 0x40f320
mov dword [0x585fe0], 0x270
mov esp, ebp
pop ebp
ret

Function at 0x40f360
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0xffffffff
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x602474]
mov ebx, dword [eax*4 + 0x602470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x602aa4]
mov dword [eax*4 + 0x602470], edx
cmp eax, 0xe2
jl 0x40f370
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x602474]
mov ebx, dword [eax*4 + 0x602470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x6020e4]
mov dword [eax*4 + 0x602470], edx
cmp eax, 0x26e
jl 0x40f3c0
mov edx, dword [0x602470]
mov ecx, dword [0x602e2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x602aa0]
mov dword [0x602e2c], eax
mov dword [0x585fe0], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f450
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x585fe0]
add dword [0x585fe0], 1
mov eax, dword [0x601020]
cmp eax, dword [0x585730]
jne 0x40f476
cmp ebx, 0x271
jb 0x40f498
mov eax, dword [0x601020]
call fcn.0040f310
not dword [0x601020]
mov eax, dword [0x601020]
mov dword [0x585730], eax
mov ebx, 0x270
lea esi, [esi]
cmp ebx, 0x270
jne 0x40f4b4
call fcn.0040f360
xor ebx, ebx
mov dword [0x585fe0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x602470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4110e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ax, word [0x585480]
cmp ax, 0xcb
je 0x4111ec
cmp ax, 0xcc
je 0x4111ec
mov edx, dword [0x603070]
test edx, edx
je 0x411115
mov eax, dword [0x602f20]
call edx
mov ebx, eax
jmp 0x41111a
mov ebx, 0x602f24
cmp word [0x602f10], 0
jle 0x411140
mov eax, 0x602ef0
call fcn.004113b0
mov eax, ebx
call fcn.00410c60
mov eax, ebx
call fcn.00410ce0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x411162
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x41115d
mov edx, edi
mov eax, ebx
call fcn.004100b0
jmp 0x411160
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x411148
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x602f10], 0
jle 0x4111ec
mov edx, 0x602e30
mov eax, ebx
call fcn.00410200
mov edi, eax
test edi, edi
je 0x4111bc
mov eax, dword [0x602ec4]
mov dword [edi + 0xc], eax
cmp dword [0x602ec4], 0
je 0x4111b0
mov eax, dword [0x602ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x602ec4], eax
nop
sub word [0x602f10], 1
cmp word [0x602f10], 0
sete bl
mov eax, 0x602ef0
call fcn.004113d0
test bl, bl
je 0x4111ec
mov eax, 0x602ef0
call fcn.004113a0
lea esi, [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00413520
push ebp
push 0x414a20
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x41366a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b7b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x4135cf
mov edx, 0x6022f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x413621
call sub.kernel32.dll_GetLastError
call fcn.00404260
lea eax, [ebp - 0x10]
call fcn.0040a370
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a800
mov edx, dword [ebp - 0x14]
mov ecx, 0x5a3398
lea eax, [ebp - 0x10]
call fcn.0040a6a0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b090
jmp 0x4136b8
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x41363a
cmp eax, ecx
je 0x413644
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b7b0
cmp byte [0x585700], 0
jne 0x4136b8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bcf0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b120
lea esi, [esi]
jmp 0x4136b8
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b7b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x41368e
mov eax, 0x6022f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x585700], 0
jne 0x4136b8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bcf0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b120
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00413520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413b70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x602260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00413d50
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x602260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004037e0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x585500], eax
mov ebx, eax
jmp 0x413d13
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x413bf8
cmp byte [ebx], 0
je 0x413d1c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x413c73
mov al, byte [ebx]
cmp al, 1
jb 0x413c68
sub al, 0x20
jbe 0x413c38
sub al, 2
je 0x413c4c
jmp 0x413c68
mov al, byte [ebp - 0x114]
test al, al
je 0x413c78
add dword [ebp - 0x110], 1
jmp 0x413c70
cmp byte [ebx + 1], 0x22
je 0x413c63
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413c70
add ebx, 1
jmp 0x413c70
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413c28
test dword [ebp - 0x10c], 0xffffffff
je 0x413d0c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00413d50
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x602260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x413d03
mov al, byte [ebx]
cmp al, 1
jb 0x413cf8
sub al, 0x20
jbe 0x413cc8
sub al, 2
je 0x413cdc
jmp 0x413cf8
mov al, byte [ebp - 0x114]
test al, al
je 0x413d08
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x413d00
cmp byte [ebx + 1], 0x22
je 0x413cf3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413d00
add ebx, 1
jmp 0x413d00
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413cb8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x413bfb
mov ebx, dword [ebp - 0x10c]
mov dword [0x602250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x602260
call fcn.00410f10
mov eax, dword [0x602260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428ac0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
call fcn.00408b40
xor eax, eax
push fcn.00428ab0
push ebp
push 0x414a20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00408b70
xor ecx, ecx
mov edx, 1
mov eax, 0x5f8f7c
mov ebx, 0x5f8f7c
call dword [ebx + 0xc4]
mov dword [ebp - 0xc], eax
mov ecx, str.Mozilla_5.0
mov edx, 0x5a8b70
call fcn.005741f0
xor eax, eax
push fcn.00428aa0
push ebp
push 0x414a20
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push 0x428b5d
push ebp
push 0x414da0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00577080
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x428b6f
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00428aa0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00428ab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret