joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd0dd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd0dd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd0dd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd0dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd0dd94
push eax
push esi
call fcn.00d1020b
add esp, 8
pop esi
ret 0x10

Function at 0xd0dda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd0de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd0de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd26320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d0fdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd0ddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd0de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd0dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd0deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd26320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d0fdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd0deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd0de6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd0e000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd0e131
push esi
call fcn.00d11145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d00080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd0e131
push 0
push ebp
call fcn.00d003a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d00260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd0e08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d002f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd0e121
push 0xd26918
push edi
call fcn.00d0f3f0
push eax
push ebx
push esi
call fcn.00d0df60
push 0xd268f8
push edi
call fcn.00d0f3f0
push eax
push ebx
push esi
call fcn.00d0df60
push 0xd268d8
push edi
call fcn.00d0f3f0
push eax
push ebx
push esi
call fcn.00d0df60
push 0xd268c0
push edi
call fcn.00d0f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d0df60
push 0xd268a0
push edi
call fcn.00d0f3f0
push eax
push ebx
push esi
call fcn.00d0df60
push 0xd26888
push edi
call fcn.00d0f3f0
push eax
push ebx
push esi
call fcn.00d0df60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd0f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d0f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d0f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d0f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d0f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd0fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd0fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd2187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd0fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd0fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x405510
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0040465b
xor byte [ebx], al
xlatb
xchg dword [eax - 0x22f5b], eax
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00404639
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040466b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404620
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040465b
jmp 0x68934afc

Function at 0x406480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax - 0x18]
inc ebp
loope 0x406485
invalid
inc dword [ebx + 0x44e90cc4]
add dword [eax], eax
add byte [ebx - 0x6fb43], al
inc dword [0x94850f]
add byte [eax], al
Function at 0x4071b0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x2254
call fcn.0040af90
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2260]
lea eax, [esp + 0x258]
push esi
push edi
push ebp
push 0x4292f8
push 0x1000
push eax
call fcn.00402300
mov ebx, eax
add esp, 0x10
cmp ebx, 0x1000
jge 0x407330
lea eax, [esp + 0x10]
mov esi, 0x1001
push eax
lea eax, [esp + 0x264]
sub esi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407330
mov edx, 0x429304
lea ecx, [esp + 0x3c]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x407256
test ax, ax
je 0x407252
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x407256
add ecx, 4
add edx, 4
test ax, ax
jne 0x407230
xor eax, eax
jmp 0x40725b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407307
mov ecx, 0x429308
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407296
test dx, dx
je 0x407292
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407296
add eax, 4
add ecx, 4
test dx, dx
jne 0x407270
xor eax, eax
jmp 0x40729b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407307
lea eax, [esp + 0x3c]
push eax
push 0x429310
lea eax, [esp + ebx*2 + 0x266]
push esi
push eax
call fcn.00402300
add esp, 0x10
cmp eax, esi
jge 0x407307
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x4072f9
test eax, 0x400
je 0x4072e7
cmp dword [esp + 0x34], 0xa000000c
jne 0x4072e7
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x407307
lea eax, [esp + 0x260]
push eax
call fcn.004071b0
add esp, 4
jmp 0x407307
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407221
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb eax, eax
jmp 0x407333
or eax, 0xffffffff
mov ecx, dword [esp + 0x2260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ac53
add esp, 0x2254
ret
Function at 0x407770
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.0040af90
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
lea ecx, [esp + 0x64]
push 0x1000
push ecx
add eax, 8
push eax
call fcn.00407d60
add esp, 0xc
push 1
push 0x407350
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea eax, [esp + 0x20]
mov dword [esp + 4], 0xc
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.00412a38
push eax
call fcn.0041715f
push eax
call fcn.004156c2
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0x68], eax
call fcn.00412a38
push eax
call fcn.0041715f
push eax
call fcn.004156c2
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0x78], eax
call fcn.00412a38
push eax
call fcn.0041715f
push eax
call fcn.004156c2
add esp, 0x24
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4078bf
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.0040ac53
add esp, 0x2068
ret
push str.Failed_to_create_child_process__n
push 0x42935c
call fcn.00402690
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.0040ac53
add esp, 0x2068
ret

Function at 0x40b7ea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b829
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b829
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b829
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b829
cmp dword [ecx + 0x74], 0xe
jbe 0x40b829
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4132f8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42d770
push esi
call fcn.0041b7ce
pop ecx
pop ecx
test eax, eax
jne 0x413326
xor al, al
jmp 0x4133a3
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00413039
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x413360
push dword [ebp - 0x210]
call fcn.0041256e
xor al, al
jmp 0x4133a1
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x413366
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x413386
push edx
call fcn.0041322f
pop ecx
test al, al
je 0x413351
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x413394
mov bl, 1
push dword [ebp - 0x210]
call fcn.0041256e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ac53
leave
ret
Function at 0x403720
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x1adc01c]
mov ecx, dword [0x1ad8588]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40382d
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x1adc01c], 0x959
jne 0x403813
push 0
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x43c]
push ecx
push 0
push 0
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea edx, [esp + 0x1c]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [esp + 0x83c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402e08
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402e28
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x10]
push edx
call fcn.00403580
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x40743a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444248]
jne 0x407444
repz ret
jmp fcn.0040cbc8

Function at 0x40d6bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409bd5
and dword [ebp - 4], 0
cmp dword [0x44a018], 0
mov ebx, eax
jne 0x40d770
push 0x4024dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d821
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024d0
push edi
call esi
test eax, eax
je 0x40d821
push eax
call fcn.00409b63
mov dword [esp], 0x4024c0
push edi
mov dword [0x44a018], eax
call esi
push eax
call fcn.00409b63
mov dword [esp], 0x4024ac
push edi
mov dword [0x44a01c], eax
call esi
push eax
call fcn.00409b63
mov dword [esp], 0x402490
push edi
mov dword [0x44a020], eax
call esi
push eax
call fcn.00409b63
pop ecx
mov dword [0x44a028], eax
test eax, eax
je 0x40d770
push 0x402478
push edi
call esi
push eax
call fcn.00409b63
pop ecx
mov dword [0x44a024], eax
mov eax, dword [0x44a024]
cmp eax, ebx
je 0x40d7c8
cmp dword [0x44a028], ebx
je 0x40d7c8
push eax
call fcn.00409bde
push dword [0x44a028]
mov esi, eax
call fcn.00409bde
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d7c8
test edi, edi
je 0x40d7c8
call esi
test eax, eax
je 0x40d7bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d7bf
test byte [ebp - 0xc], 1
jne 0x40d7c8
or dword [ebp + 0x10], 0x200000
jmp 0x40d801
mov eax, dword [0x44a01c]
cmp eax, ebx
je 0x40d801
push eax
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d801
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d801
mov eax, dword [0x44a020]
cmp eax, ebx
je 0x40d801
push eax
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d801
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44a018]
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d821
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d823
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10039480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp + 0x14]
cmp dword [eax + 8], ecx
ja 0x10046789
push edi
xor edi, edi
test ecx, ecx
je 0x1003959d
mov eax, dword [ebp + 0x10]
xor edx, edx
push ebx
jmp 0x100394d0
movzx eax, word [eax + edi*2]
mov ebx, eax
and ebx, 0xf7ff
test eax, 0x800
je 0x100467be
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edi, eax
jae 0x10046832
test edx, edx
js 0x10046832
mov ecx, dword [ebp + 8]
sub eax, edi
dec eax
shl eax, 4
add eax, dword [ecx]
movzx ecx, word [eax]
test ebx, 0x4000
jne 0x100467c7
mov edx, 0x400c
cmp cx, dx
je 0x10046804
movzx edx, word [eax]
movzx ecx, bx
xor edx, ecx
test edx, 0xffffbfff
je 0x1003955a
mov ecx, 0xc
cmp cx, bx
je 0x1003955a
cmp word [eax], 0xa
jne 0x1004681b
cmp dword [eax + 8], 0x80020004
jne 0x1004681b
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
test eax, eax
js 0x10039587
cmp word [esi], 0xa
jne 0x10039587
mov byte [esi + 0x11], 1
cmp byte [ebp - 1], 0
je 0x100395a8
mov eax, dword [ebp + 0x10]
inc edi
add esi, 0x18
cmp edi, ecx
jb 0x100394d0
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esi + 0x11], 0
je 0x1003958d
jmp 0x10046846
test byte [0x100e5114], 2
je 0x100467b4
mov eax, dword [0x100e80e8]
push 0x123
push 0x8002000e
push 0x1000ac78
push 0x48c09
push eax
call fcn.100d5b23
add esp, 0x14
mov eax, 0x8002000e
jmp 0x100395a1
mov byte [ebp - 1], 0
jmp 0x100394eb
test ecx, 0x4000
je 0x100467eb
mov edx, 0x400c
cmp cx, dx
jne 0x100467e7
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100467e7
mov eax, ecx
cmp word [eax], dx
je 0x100467d9
mov ecx, edx
jmp 0x100467f9
mov byte [esi + 0x11], 1
mov eax, 0x80020004
mov ecx, 0xa
mov word [esi], cx
mov dword [esi + 8], eax
jmp 0x10039570
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10039529
mov eax, ecx
cmp word [eax], dx
je 0x10046804
jmp 0x10039529
push ebx
push 0
push eax
push esi
mov byte [esi + 0x10], 1
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [ebp - 8], eax
jmp 0x10039573
mov eax, 0xa
mov dword [esi + 8], 0x80020004
mov word [esi], ax
jmp 0x10039583
test byte [0x100e5114], 2
mov dword [ebp - 8], 0x8002000e
je 0x1004687b
mov eax, dword [0x100e80e8]
push 0x174
push 0x8002000e
push 0x1000ac78
push 0x5d009
push eax
call fcn.100d5b23
mov ecx, dword [ebp + 0x14]
add esp, 0x14
mov edx, dword [ebp - 8]
jmp 0x1003958d
Function at 0x1003fcd5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100e4a78]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x118], 0
cmp dword [0x100e52cc], 0
jne 0x1003fd23
lea eax, [ebp - 0x118]
push eax
push ecx
lea ecx, [ebp - 0x114]
call fcn.1003fe19
pop ecx
pop ecx
test eax, eax
jne 0x10050025
push 1
call fcn.1003fd70
call fcn.1003fd31
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10041550
leave
ret
cmp dword [0x100e5114], 0
lea eax, [ebp - 0x114]
mov dword [0x100e4a68], eax
mov byte [ebp - 7], 0
jne 0x10050049
mov eax, 0xfff
push eax
push eax
call fcn.100d5780
mov ecx, 0x100e4a80
call fcn.100d54c3
cmp dword [0x100e4008], 0x100d57b0
jne 0x1005008a
cmp dword [ebp - 0x118], 0
je 0x1005008a
push 0x10035ca0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [0x100e4a68]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10035ca8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x100e4a68], 0x10035cc0
jmp 0x1003fd23
Function at 0x10040402
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, dword [0x100e5110]
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0xc], eax
xor ebx, ebx
mov eax, dword [0x100e5110]
cmp dword [eax + 0xc], 0xffffffff
setne bl
call dword [sym.imp.OLEAUT32.dll_ClearCustData]
push 0x1e
mov ecx, eax
shr eax, 0x10
pop edx
cmp ax, dx
jbe 0x10050248
mov al, 1
mov ecx, dword [0x100e5110]
pop esi
mov byte [ecx + 0x14], al
mov eax, ebx
pop ebx
ret
jne 0x10050258
mov eax, 0x10a2
cmp cx, ax
jae 0x1004043c
xor al, al
jmp 0x1004043e

Function at 0x10041ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10041b1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10041b16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10041b20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10041b06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10041bf0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10041c21
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10041c21
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10041c21
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100502d7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100442d6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100e4a78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
sub dword [eax + 4], 1
jne 0x10050350
mov eax, dword [edi]
xor ebx, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10050332
push ecx
push ebx
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [edi]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e6364]
call esi
mov eax, dword [edi]
cmp byte [eax + 0x12], bl
jne 0x10050348
mov eax, dword [0x100e5110]
push ebx
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x10050350
mov dword [eax + 8], ebx
mov eax, dword [edi]
mov dword [eax + 0xc], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret