joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409668
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x40966c
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x409673
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4096ab
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4096af
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x409dd4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x410028], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x409e1f
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x430ef0], ax
xor eax, eax
mov word [0x430ef2], ax
mov dword [0x410028], 0x430ef0
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ccd8
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x410018
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40a19e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x42ae80]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42bf94], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40a200
mov ecx, dword [0x42454c]
call fcn.004052eb
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40e2f8
push 0
push 0xc2
push edi
call esi
mov byte [0x42bf94], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40a250
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40a29a
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x40e7c8
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40aaf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004012c0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40ab0b
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40ab15
mov byte [eax], 0
test edi, edi
je 0x40abbe
movzx eax, word [edi]
test ax, ax
je 0x40abbe
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40ab4e
cmp dword [ebp + 0xc], 0
je 0x40ab5a
test esi, esi
jne 0x40ab5a
test ebx, ebx
je 0x40ab4a
mov byte [ebx], 1
mov esi, edx
jmp 0x40ab69
cmp ax, 0xd
je 0x40ab7c
cmp ax, 0xa
je 0x40ab7e
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40ab74
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40ab2e
jmp 0x40ab7e
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40ab7e
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40abb9
mov word [ebx], ax
test esi, esi
je 0x40abb9
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ccae
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40abc0
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x40ac05
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0040ddce
cmp byte [0x42bf95], 0
jne 0x40ac93
push 6
push dword [0x410014]
lea eax, [ebp - 0x820]
push eax
call fcn.0040752d
push eax
call fcn.0040d96b
test eax, eax
jne 0x40ac93
push 0x40e848
call fcn.0040ddbb
lea eax, [ebp - 0x820]
push eax
call fcn.004099da
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.004096fc
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40ad5e
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x42ae71], 1
cmp dword [0x42ae80], ebx
je 0x40ad86
push 0x7d
call fcn.00409469
push eax
push 2
push dword [0x42ae80]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x42ae80]
mov dword [0x42ae74], ebx
mov byte [0x42ae70], 1
cmp eax, ebx
je 0x40ade7
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42bfa4], ebx
jne 0x40adb5
cmp byte [0x42bf94], bl
je 0x40adbd
cmp dword [0x42ae78], ebx
jne 0x40addf
push ebx
push 1
push 0x111
push dword [0x42ae80]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40addf
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409d95
cmp dword [0x42ae80], ebx
jne 0x40add3
cmp byte [0x42ae88], bl
pop ebx
je 0x40adf5
jmp fcn.0040ac05
ret

Function at 0x40ae31
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x42ae90], bl
je 0x40aeb1
cmp word [0x424550], bx
je 0x40aeb1
push esi
push 0x424550
lea esi, [ebp - 0x808]
call fcn.0040adf6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40aeb1
push dword [ebp + 8]
call fcn.004099da
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4
Function at 0x40aeb6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004012c0
cmp byte [0x42ae90], 0
je 0x40af5d
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040adf6
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40af5d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40af54
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40af38
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040ccae
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40b085
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x42ae6e], 0
mov eax, dword [ebp + 0xc]
mov dword [0x42ad60], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42ad64], eax
mov eax, dword [ebp + 0x14]
mov dword [0x42ad58], eax
je 0x40b0b5
xor eax, eax
inc eax
jmp 0x40b0de
cmp byte [0x42ae6f], 0
je 0x40b0c3
push 2
pop eax
jmp 0x40b0de
push dword [ebp + 8]
push 0x40a36e
push dword [0x42ae80]
push str.REPLACEFILEDLG
push dword [0x42ad5c]
call esi
dec eax
je 0x40b130
dec eax
je 0x40b142
dec eax
je 0x40b129
dec eax
jne 0x40b10d
push dword [ebp + 8]
push 0x40a6ba
push dword [0x42ae80]
push str.RENAMEDLG
push dword [0x42ad5c]
call esi
test eax, eax
je 0x40b08f
mov al, 0x52
jmp 0x40b13d
dec eax
je 0x40b11e
dec eax
mov al, 0x4e
jne 0x40b13d
mov byte [0x42ae6f], 1
jmp 0x40b13d
mov byte [0x42ae72], 1
mov al, 0x43
jmp 0x40b13d
mov byte [0x42ae6e], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40b13d
Function at 0x40c99e
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040d034
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x430f08
call fcn.0040da68
mov esi, 0x5800
push esi
push ebx
mov edi, 0x425558
push edi
call fcn.004096fc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ca4c
push eax
call fcn.0040a9cb
cmp byte [0x42ae91], bl
je 0x40ca3e
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ca33
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ca2a
push esi
push eax
push edi
call fcn.00409729
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ca4c
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x424d58
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x42ad5c], edi
mov dword [0x42ae68], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x42ae68]
mov dword [0x424d54], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x424d50], eax
call fcn.0040de3e
push esi
mov ecx, 0x42bfc4
call fcn.00409452
lea ecx, [ebp - 0x5c]
call fcn.0040529a
lea ecx, [ebp - 0x34]
call fcn.0040529a
push 0x64
call fcn.0040a09e
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040a09e
push ebx
push 0x40c17e
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x42454c], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x424548], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x424548], ebx
mov dword [0x42454c], ebx
call fcn.004052bc
lea ecx, [ebp - 0x5c]
call fcn.004052bc
lea ecx, [ebp - 0xc]
call fcn.0040de98
cmp byte [0x42ae88], bl
je 0x40cb2b
call fcn.0040ac05
push 0x100
push ebx
push 0x42ad68
call fcn.004096fc
cmp dword [0x42bfa4], ebx
jbe 0x40cb4e
push dword [0x42bf98]
call fcn.004094fe
push dword [0x424d54]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x424d50]
cmp eax, ebx
je 0x40cb68
push eax
call esi
cmp dword [0x42bfb8], ebx
jne 0x40cb87
cmp byte [0x42ae72], bl
je 0x40cb87
push 0xff
mov ecx, 0x42bfb8
call fcn.004019b2
mov eax, dword [0x42bfb0]
mov byte [0x42ae72], 1
cmp eax, ebx
je 0x40cb9d
push eax
call fcn.0040abc6
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x42bfac]
cmp eax, ebx
ja 0x40cbb1
mov eax, dword [0x42bfb8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d3ba
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x4224ac]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4100d0]
mov ecx, dword [0x4224b4]
mov dword [0x4224ac], eax
movzx eax, al
add eax, dword [0x4224b0]
imul eax, eax, 0x8088405
inc eax
mov dword [0x4224b0], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4100d0]
mov eax, dword [esp + 4]
mov dword [0x4224b4], ecx
ret 4

Function at 0x40d44d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040d414
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409729
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040d39a
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040d3ba
inc esi
cmp esi, 0xc
jl 0x40d46c
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x411b48]
test byte [eax + 0x40], 2
movzx eax, byte [0x421bc7]
jne 0x40d4a7
movzx eax, byte [0x421bcf]
movzx ecx, cx
cmp ecx, eax
je 0x40d4b3
or eax, 0xffffffff
jmp 0x40d4f8
mov ecx, dword [0x421b60]
mov eax, ecx
cdq
cmp edx, dword [0x410924]
push edi
jl 0x40d4d5
mov edx, dword [0x410920]
jg 0x40d4d1
cmp eax, edx
jbe 0x40d4d5
mov edi, edx
jmp 0x40d4d7
mov edi, ecx
mov esi, dword [0x421b58]
jmp 0x40d4f1
dec edi
call fcn.0040d39a
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040d3ba
inc esi
test edi, edi
jne 0x40d4df
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40dce3
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x40ebf0
push 1
xor ebx, ebx
push ebx
push 0x40eca0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40ddb4
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40ec90
push eax
call dword [ecx]
test eax, eax
jl 0x40ddab
cmp byte [ebp + 8], bl
je 0x40dd36
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40dd53
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40dd65
push 0x40e2f8
jmp 0x40dd68
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40dd7d
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40dd8e
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40dda2
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c
Function at 0x40ddce
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x100042e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10004339
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10004339
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000432a
cmp esi, edx
jae 0x10004339
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10004318
cmp esi, edx
jae 0x10004339
cmp word [esi], 0
je 0x10004339
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100123c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063301
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x10083180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
jne 0x100125c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1003cef0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10084a3c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call edi
push str.PluginBasic.tpi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001257e
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call edi
push str.UtilsLDSBasic.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001257e
call fcn.100230b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100125c0
push 0x55
push str.d:jenkins.jenkinsworkspacelib_common_arctrl_arctrlpullcheck_scriptactivation.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10006b80
push 3
push 0x1006771c
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10006b80
mov byte [ebp - 4], 1
call fcn.100230b0
mov edi, eax
lea ecx, [ebp - 0x2e0]
push 0x142
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10004a70
mov esi, eax
push str.basic.tpi_not_find
push esi
mov byte [ebp - 4], 2
call fcn.100056f0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2e0]
call fcn.100057b0
lea ecx, [ebp - 0x230]
call fcn.100053b0
lea ecx, [ebp - 0x248]
call fcn.100053b0
jmp 0x100125c0
lea eax, [ebp - 0x218]
push eax
call fcn.1001a020
add esp, 4
test eax, eax
je 0x100125c0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100125c0
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100125c0
call eax
mov dword [esi], eax
test eax, eax
je 0x100125c0
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100242ed
mov esp, ebp
pop ebp
ret
Function at 0x10014050
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
call fcn.10008b50
mov ecx, eax
call fcn.10005c30
push dword [eax]
push 0xffffffffffffffff
push 0x10069850
push str.three_end
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 4]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10014098
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100143e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063601
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x10083180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x244], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001445f
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.1003cef0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10014466
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100145fe
call fcn.100035a0
mov ecx, eax
test ecx, ecx
je 0x1001461a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov eax, str.explorer.exe
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
test eax, 0xffff0000
jne 0x100144a7
movzx eax, ax
push eax
call fcn.10006260
jmp 0x100144b1
push str.explorer.exe
call fcn.100150c0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.10015210
mov dword [ebp - 0x24c], eax
mov esi, dword [ebp - 0x240]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
nop dword [eax]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1004a1ef
add esp, 8
test eax, eax
jne 0x10014595
push dword [ebp - 0x234]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1001458f
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
jne 0x10014552
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x10014595
lea eax, [ebp - 0x254]
push eax
call fcn.10013fe0
mov ecx, dword [ebp - 0x244]
add esp, 4
push dword [ebp - 0x244]
mov dword [ecx], eax
lea eax, [ebp - 0x274]
push ecx
push 0
push eax
lea ecx, [ebp - 0x24c]
call fcn.10013d80
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x10014595
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100144f0
push ebx
call edi
cmp dword [ebp - 0x248], 0
jbe 0x100145d0
mov eax, dword [ebp - 0x24c]
mov ebx, 1
mov ecx, dword [ebp - 0x244]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
jmp 0x100145d2
xor ebx, ebx
lea ecx, [ebp - 0x24c]
call fcn.10013ee0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100145fc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100242ed
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003320
int3