joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aab8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d000
push 0x42cff8
push str.FlsAlloc
push 0x1e
call fcn.0041a979
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41aaec
push dword [ebp + 8]
mov ecx, esi
call dword [0x42618c]
call esi
jmp 0x41aaf2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ab36
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d010
push 0x42d008
push str.FlsGetValue
push 0x20
call fcn.0041a979
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ab6d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42618c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41c87b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c3a2

Function at 0x41d204
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x433004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41d24f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041d3a3
test al, al
jne 0x41d249
sub edx, 2
cmp edx, edi
jne 0x41d22f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41d271
lea eax, [edi + 2]
cmp edx, eax
je 0x41d271
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041d150
add esp, 0x10
jmp 0x41d36b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041d3a3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d2b4
push dword [ebp - 0x25c]
jmp 0x41d261
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41d2f1
cmp word [ebp - 0x226], 0
je 0x41d312
cmp word [ebp - 0x226], ax
jne 0x41d2f1
cmp word [ebp - 0x224], 0
je 0x41d312
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041d150
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41d35e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41d2cb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41d346
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41d36b
push 0x41cf80
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004224d0
add esp, 0x10
jmp 0x41d33b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040958a
leave
ret
Function at 0x41dc7a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41dd17
push ebx
push esi
call fcn.0041dc43
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b847
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41dcc4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd16
push edi
push eax
call fcn.004198b6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dce4
call fcn.004170be
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd15
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b847
add esp, 0x20
test eax, eax
jne 0x41dd03
push edi
call fcn.004170be
jmp 0x41dd0b
push ebx
call fcn.004170be
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41dd1a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41dd2b
pop esi
ret
push ebx
push edi
push esi
call fcn.0041dc43
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004198b6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41dd53
push ebx
push esi
push edi
call fcn.0040a200
add esp, 0xc
push 0
call fcn.004170be
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x423885
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423801
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4239fd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4239fd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4239ac
jg 0x4238de
test eax, eax
je 0x4239a2
push 1
push 0x1000
call fcn.0041a7e9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423904
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x423999
push 0x8000
push ebx
call fcn.00412e20
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423930
jg 0x42392b
cmp ecx, 0x1000
jb 0x423930
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00419339
add esp, 0x10
cmp eax, 0xffffffff
je 0x423975
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42392b
jl 0x42395c
test ecx, ecx
jne 0x42391d
push dword [ebp - 0xc]
push ebx
call fcn.00412e20
push esi
call fcn.004170be
add esp, 0xc
xor edi, edi
jmp 0x423a0e
cmp byte [edi + 0x24], 0
je 0x42398c
cmp dword [edi + 0x20], 5
jne 0x42398c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423997
mov edi, dword [edi + 0x18]
jmp 0x423999
xor edi, edi
push esi
call fcn.004170be
pop ecx
jmp 0x423a0e
test ecx, ecx
jg 0x42396e
jl 0x4239ac
test eax, eax
jae 0x42396e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004187f4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4239cf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42396e
jmp 0x423a06
push ebx
call fcn.0041419a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42396e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x423a0e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x423a0b
mov edi, dword [edi + 0x18]
jmp 0x423a0e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004187f4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401170
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x405610
push 0x68
push esi
call edi
push 0x64
push 0x405678
push 0x70
push esi
call edi
xor eax, eax
push 0x7f00
push eax
mov dword [0x4031c0], esi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6e
push esi
mov dword [ebp - 0x30], eax
call edi
mov edx, dword [ebp - 0x38]
push 0x6c
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0x6e
mov dword [ebp - 0x24], str.Clariot
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x44], 0x401480
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call fcn.004013f0
add esp, 8
test eax, eax
jne 0x40123d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401293
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea esp, [esp]

Function at 0x4012af
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4012d8
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4012d0
cmp al, 0x22
jne 0x4012c4
cmp byte [esi], 0x22
jne 0x4012e2
inc esi
jmp 0x4012e2
cmp al, 0x20
jle 0x4012e2
inc esi
cmp byte [esi], 0x20
jg 0x4012dc
mov al, byte [esi]
test al, al
je 0x4012ec
cmp al, 0x20
jle 0x4012d5
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401d46
push 0x403004
push section..data
call fcn.00401d2c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40131c
movzx eax, word [ebp - 0x14]
jmp 0x40131f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401d5e
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4013f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4031c0], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401437
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret
Function at 0x40249e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x48b068]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.00402442
jmp 0x4024f6
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040249e
mov esi, eax
test esi, esi
jne 0x40254a
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4024e8
cmp dword [esp + 0xc], esi
je 0x402539
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0040234f
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40255b
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00439b80
mov esp, ebp
pop ebp
ret 4
Function at 0x405935
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x824
mov eax, dword [0x48b068]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, dword [esp + 0x82c]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x838]
push edi
mov edi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x28], al
mov dword [edi], eax
call fcn.00410f8d
mov ebp, eax
mov dword [edi], ebp
test ebp, ebp
jne 0x405988
mov ecx, str.ERROR:_ShutdownEvent_handle_is_NULL
call fcn.0041781b
mov ecx, esi
call fcn.004107b5
test eax, eax
jne 0x4059a1
mov ecx, str.jusched_ERROR:_Could_not_open_Policy_key_for_reading
call fcn.0041781b
push 0xfffffffffffffffd
jmp 0x4059c5
mov ecx, dword [esi]
call fcn.004058b8
xor ecx, ecx
mov dword [edi + 4], eax
push 0xfffffffffffffffe
test ebp, ebp
pop esi
cmovne esi, ecx
test eax, eax
jne 0x4059c6
mov ecx, str.jusched_main:_ERROR_creating_registry_watch_event_notifier
call fcn.0041781b
push 0xfffffffffffffffe
pop esi
push str.SunJavaUpdateSchedulerMutex
xor ebp, ebp
push 1
push ebp
mov dword [ebx], ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx], eax
test eax, eax
jne 0x405a31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.0043c110
add esp, 0xc
lea eax, [esp + 0x30]
cmp esi, 0xb7
jne 0x405a15
push str.Error:_Scheduler_Mutex_already_exists_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x405a25
push esi
push str.Error:_Error_creating_scheduler_mutex:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.0041781b
or esi, 0xffffffff
test esi, esi
je 0x405a52
push dword [ebx]
mov ecx, edi
call fcn.00405906
pop ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
call fcn.00417362
mov ecx, dword [esp + 0x830]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439b80
add esp, 0x824
ret
Function at 0x407200
Capabilities:
Create thread

Disassembly:
sub esp, 0x12c
mov eax, dword [0x48b068]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [esp + 0x134]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebp, ebp
push edi
xor edi, edi
mov dword [ebx + 0xc], 0xbc2
mov eax, dword [0x48d634]
inc ebp
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x18], eax
call esi
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x20], eax
call esi
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x38], eax
call fcn.00410f8d
mov dword [ebx + 0x3c], eax
lea edi, [esp + 0x20]
xor eax, eax
stosd dword es:[edi], eax
push ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
lea eax, [esp + 0x20]
push edi
push edi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.SunJavaUpdateRecheckUpdateEvent
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0xc
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push edi
push eax
call esi
push dword [ebx + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebx + 0x40], eax
call esi
push dword [ebx + 0x24]
call esi
push dword [ebx + 0x38]
call esi
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push 0x407826
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4072e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 0x20]
call esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebx + 0x54]
mov edi, 0x104
push edi
push eax
push 0x7b
push dword [ebx + 0x18]
call esi
push edi
lea eax, [esp + 0x38]
push eax
push 0x7c
push dword [ebx + 0x18]
call esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x407336
lea eax, [esp + 0x34]
push eax
lea eax, [ebx + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x138]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439b80
add esp, 0x12c
ret 4
Function at 0x40a2c2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40a2e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ae12
jmp 0x40a39e
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40a30b
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40a30d
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40a392
jg 0x40a322
test esi, esi
je 0x40a392
test ecx, ecx
jl 0x40a36b
jg 0x40a32c
test eax, eax
je 0x40a36b
cmp edi, ecx
jg 0x40a340
jl 0x40a336
cmp esi, eax
jae 0x40a340
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0043bb90
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40a36e
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40a392
jg 0x40a378
test esi, esi
je 0x40a392
cmp dword [ebx + 0x4c], 0
je 0x40a392
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.00443cdc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a3a7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40a3ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040aeee
jmp 0x40a49d
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40a3f0
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40a3f2
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40a491
jg 0x40a40f
test esi, esi
je 0x40a491
test ecx, ecx
jl 0x40a45c
jg 0x40a419
test eax, eax
je 0x40a45c
cmp ebx, ecx
jg 0x40a42d
jl 0x40a423
cmp esi, eax
jae 0x40a42d
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0043bb90
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40a463
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40a491
jg 0x40a46d
test esi, esi
je 0x40a491
cmp dword [edi + 0x4c], 0
je 0x40a491
mov ecx, edi
call fcn.0040b3b2
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004442d2
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b3fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48b068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40b47f
cmp byte [esi + 0x3d], 0
je 0x40b47f
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40b451
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40b455
sub eax, 1
je 0x40b459
dec eax
sub eax, 1
je 0x40b47f
xor al, al
jmp 0x40b481
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40b476
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00443cdc
add esp, 0x10
cmp edi, eax
jne 0x40b451
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40b481
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00439b80
leave
ret
Function at 0x40ce35
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebx, ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x10], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x10], edi
mov esi, edi
cmp edi, ebp
jge 0x40ce8e
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebx
lea eax, [ecx - 0x30]
push eax
call fcn.00407ba0
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebx
add eax, ebx
push eax
call fcn.0040cd83
mov edi, esi
cmp esi, ebp
jl 0x40ce58
mov eax, dword [esp + 0x1c]
cmp esi, ebp
jne 0x40cead
test al, 1
jne 0x40cead
imul eax, eax, 0x30
imul ecx, edi, 0x30
add eax, 0xffffffd0
add eax, ebx
add ecx, ebx
push eax
call fcn.0040cd83
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x10], edi
jge 0x40cedf
push dword [esp + 0x20]
lea esi, [edi - 1]
sar esi, 1
imul ebp, esi, 0x30
add ebp, ebx
mov ecx, ebp
call fcn.00407ba0
test al, al
je 0x40cedf
imul ecx, edi, 0x30
push ebp
add ecx, ebx
call fcn.0040cd83
mov edi, esi
cmp dword [esp + 0x10], esi
jl 0x40ceb3
push dword [esp + 0x20]
imul ecx, edi, 0x30
add ecx, ebx
call fcn.0040cd83
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x410a87
Capabilities:
Delete registry key

Disassembly:
push 0x38
mov eax, 0x45fd2a
call fcn.0043a465
mov dword [ebp - 0x14], edx
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x30], bl
test edi, edi
jne 0x410aef
test esi, esi
jne 0x410acf
push 0x2001f
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
lea ecx, [ebp - 0x44]
call fcn.0041732b
mov edi, dword [ebp - 0x3c]
jmp 0x410ae4
mov ecx, str.SetJavaUpdateStringKey_was_called_with_a_NULL_value_for_the_key__so_defaulting_to_trying_jucheck_key
call fcn.0041781b
lea ecx, [ebp - 0x10]
call fcn.004107f4
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x410aef
mov dword [ebp - 0x18], 1
push ecx
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
call fcn.00411578
mov dword [ebp - 4], ebx
mov eax, edi
mov dword [ebp - 0x40], eax
test esi, esi
je 0x410b29
push esi
mov dword [ebp - 0x28], 1
call fcn.00441ed0
pop ecx
push dword [ebp + 8]
inc eax
lea ecx, [ebp - 0x24]
add eax, esi
push eax
push esi
call fcn.00417433
mov eax, dword [ebp - 0x40]
test edi, edi
je 0x410b6e
test esi, esi
jne 0x410b3d
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x410b67
push esi
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp - 0x24]
call fcn.0043b610
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x14]
call fcn.00417411
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x18], 0
je 0x410b7c
lea ecx, [ebp - 0x44]
call fcn.00417362
lea ecx, [ebp - 0x24]
call fcn.004115b2
mov eax, ebx
call fcn.0043a42e
ret