joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c8c3
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call ebx
mov edi, dword [esp + 0x38]
mov ebp, eax
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push edi
call dword [ecx + 0x48]
test eax, eax
js 0x40c8fa
cmp dword [esp + 0x10], 0
jne 0x40c942
call ebx
sub eax, ebp
cmp eax, 0x7d0
ja 0x40c942
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c8e4
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c8e4
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [eax + 0x48]
mov ebx, eax
test ebx, ebx
js 0x40c9b0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40c9a8
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x4254fc
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x40c99a
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
js 0x40c990
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
test ebx, ebx
js 0x40c9b0
test ecx, ecx
jne 0x40ca01
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x40ca01
cmp dword [esi + 0x18], ebp
jne 0x40ca01
cmp dword [esi + 0x14], ebp
je 0x40ca01
push dword [esi + 0x14]
mov ecx, esi
call fcn.0040ceec
mov edi, eax
test edi, edi
je 0x40ca01
push 0x204
push ebp
push ebp
push ebp
push ebp
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.004166e0
pop ecx
pop edi
not ebx
pop esi
shr ebx, 0x1f
pop ebp
mov al, bl
pop ebx
add esp, 0x24
ret 8
Function at 0x40d0d1
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x1e], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.0040ce36
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x40d13b
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x424e04
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40d1bd
test ebp, ebp
je 0x40d1d3
cmp dword [ebx + 0x18], esi
jne 0x40d1d3
cmp dword [ebx + 0x14], esi
je 0x40d1d3
push dword [ebx + 0x14]
mov ecx, ebx
call fcn.0040ceec
mov esi, eax
test esi, esi
je 0x40d1d3
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004166e0
pop ecx
jmp 0x40d1d3
test eax, eax
je 0x40d1d3
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x40d459
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x42546c
push 1
push ebx
push 0x42553c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40d52a
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x42552c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40d521
cmp byte [ebp + 8], bl
je 0x40d4ac
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d4c9
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
cmp dword [ebp + 0x1c], ebx
jne 0x40d4db
push 0x424254
jmp 0x40d4de
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d4f3
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d504
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x40d518
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40d5d8
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 0x40da96
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00411430
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d5d8
cmp byte [0x458df2], 0
jne 0x40db2b
push 6
push dword [0x42d038]
lea eax, [ebp - 0x1020]
push eax
call fcn.00403528
push eax
call fcn.00406c43
test eax, eax
jne 0x40db2b
push 0x424270
call fcn.0040d972
lea eax, [ebp - 0x1020]
push eax
call fcn.004166c5
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x101e], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00412450
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esp, ebp
pop ebp
ret
Function at 0x40db87
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x42d04c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40dbd2
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45ae20], ax
xor eax, eax
mov word [0x45ae22], ax
mov dword [0x42d04c], 0x45ae20
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405982
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x42d03c
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40de2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00411430
cmp byte [0x44d708], 0
je 0x40ded5
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0040f1c5
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ded5
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40decc
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40deb0
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00405a62
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x40df81
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00411430
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40df9c
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40dfa9
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40e06c
movzx eax, word [esi]
test ax, ax
je 0x40e06c
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x40dff6
test edi, edi
je 0x40e000
test ebx, ebx
jne 0x40e000
test ecx, ecx
je 0x40dff2
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40e017
cmp eax, 0xd
je 0x40e02a
cmp eax, 0xa
je 0x40e02d
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40e025
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40dfd8
jmp 0x40e02d
mov byte [edx], 1
jmp 0x40e02d
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40e066
mov word [edi], ax
test ebx, ebx
je 0x40e066
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00405a62
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40e06e
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40e079
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x40e0c8
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x40e0d0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41016b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1040
call fcn.00411430
push ebx
push esi
mov esi, dword [esp + 0x1050]
xor ebx, ebx
cmp word [esi], bx
je 0x4103a3
push esi
call fcn.004166c5
pop ecx
cmp eax, 0x7f6
jae 0x4103a3
push edi
push 0x3c
pop edi
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00412450
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x1c0
cmp byte [esp + 0x1058], bl
je 0x4101cb
mov dword [esp + 0x14], 0x5c0
movzx ecx, word [esi]
lea edx, [esi + 2]
push 0x22
pop edi
cmp cx, di
je 0x4101db
mov edx, esi
mov dword [esp + 0x20], edx
mov eax, ebx
push ebp
test cx, cx
je 0x410225
push 0x20
mov ecx, esi
pop ebp
cmp word [ecx], di
jne 0x410206
jmp 0x4101f9
cmp word [esi + eax*2], di
je 0x410202
inc eax
cmp word [esi + eax*2], bx
jne 0x4101f3
jmp 0x410206
mov word [esi + eax*2], bp
cmp word [esi + eax*2], bp
je 0x41037a
cmp word [esi + eax*2 + 2], 0x2f
je 0x410374
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x4101ec
mov eax, dword [esp + 0x28]
test eax, eax
je 0x410232
cmp word [eax], bx
jne 0x41024c
cmp byte [esp + 0x105c], bl
jne 0x41024c
cmp word [0x44e70a], bx
je 0x41024c
mov dword [esp + 0x28], 0x44e70a
push edx
mov dword [esp + 0x34], 1
call fcn.004030ba
mov esi, eax
test esi, esi
je 0x410277
push str..inf
push esi
call fcn.00406c21
test eax, eax
jne 0x410277
mov dword [esp + 0x20], 0x4253d4
push dword [esp + 0x24]
call fcn.00402396
test al, al
je 0x41029f
push 0x800
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x2c]
call fcn.00402e43
lea eax, [esp + 0x50]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4103a1
mov edi, dword [esp + 0x1054]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x44d700], bl
jne 0x4102d8
cmp byte [esp + 0x105c], bl
jne 0x4102d8
cmp byte [0x459e12], bl
je 0x410337
test edi, edi
je 0x4102ed
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4102ed
push ebx
push edi
call ebp
mov bl, 1
push 0x7d0
push dword [esp + 0x50]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0x4c]
call fcn.004105cc
cmp byte [0x459e12], 0
je 0x410337
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x410337
mov eax, dword [esp + 0x10]
add eax, 0x3e8
cmp eax, dword [0x459e14]
jbe 0x410337
mov dword [0x459e14], eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x410354
push str..exe
push esi
call fcn.00406c21
test eax, eax
je 0x41038d
cmp byte [0x44d700], 0
mov al, byte [esp + 0x105c]
je 0x410394
test al, al
jne 0x410394
mov dword [0x459e18], 0x1b58
jmp 0x410394
cmp word [esi + eax*2], bp
jne 0x410380
xor ecx, ecx
mov word [esi + eax*2], cx
inc eax
lea eax, [esi + eax*2]
mov dword [esp + 0x28], eax
jmp 0x410229
mov al, byte [esp + 0x105c]
test bl, bl
je 0x4103a1
test al, al
je 0x4103a1
push 1
push edi
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1040
ret 0xc
Function at 0x4103ae
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4466dc], 0
push 1
push dword [esp + 8]
mov byte [0x4466d0], 1
mov byte [0x4466d1], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.0040112d
cmp dword [0x44d6f0], 0
jne 0x4103ee
cmp byte [0x4466d6], 0
je 0x4103f7
cmp dword [0x4466cc], 0
jne 0x41040a
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x4104dd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411430
cmp byte [0x44d708], 0
je 0x410567
cmp word [0x459e20], 0
je 0x410567
push esi
lea eax, [ebp - 0x1008]
push eax
push 0x459e20
call fcn.0040f1c5
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x410566
push dword [ebp + 8]
call fcn.004166c5
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
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 esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41056d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00411430
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00405839
mov esi, eax
test esi, esi
je 0x4105c5
movzx ecx, word [esi]
push ecx
jmp 0x4105b0
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00405930
test al, al
jne 0x4105a9
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4010e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426733
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x436024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0xc
xor ebx, ebx
push ebx
mov dword [esi], 0x429724
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0xc
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x401040
sub ecx, edi
sub ecx, 0xa
mov byte [edi], 0xb9
mov byte [edi + 5], 0xe9
mov dword [edi + 1], esi
mov dword [edi + 6], ecx
mov dword [esi + 8], edi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], edx
mov dword [esi], 0x429730
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov eax, dword [0x4362a0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4362a0
lea edi, [esi + 0x1c]
call edx
add eax, 0x10
mov dword [edi], eax
mov edx, dword [ebp + 0x10]
cmp edx, ebx
mov byte [ebp - 4], 1
je 0x4011a9
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp + 0xc], ecx
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401190
sub eax, dword [ebp + 0xc]
push edx
sar eax, 1
push edi
mov ebx, eax
call fcn.004016d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4018d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
add esp, 4
lea esi, [esp + 0xc]
call fcn.00414ee0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40191d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0x436270
push 0x4366b4
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x401967
push 0x42973c
push 0x42d7c0
call fcn.00419910
add esp, 8
mov eax, 1
test byte [0x436680], al
jne 0x40198c
or dword [0x436680], eax
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
mov eax, 0x436684
call fcn.00401db0
test eax, eax
je 0x4019de
mov edx, dword [0x436684]
mov ecx, dword [edx + 0x5d4]
call fcn.004136b0
mov ebx, 0x436684
call fcn.00403cb0
call fcn.0040b2f0
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
mov eax, dword [0x4366b4]
push eax
call sub.gdiplus.dll_GdiplusShutdown
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, 2
jmp 0x4019c3
Function at 0x403cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx]
sub esp, 0x20
cmp dword [eax + 0xc], 0
push esi
push edi
je 0x403dec
cmp dword [eax + 8], 0
je 0x403dec
mov ecx, dword [ebx + 4]
mov edx, dword [eax + 0x20]
push 4
lea edi, [ebp - 0x18]
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
call fcn.00401b60
push 8
lea edi, [ebp - 0x20]
call fcn.00401b60
cmp dword [ebp - 0x14], 0
je 0x403d41
cmp dword [ebp - 0x1c], 0
je 0x403d41
mov eax, dword [ebx]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push 4
add eax, 8
push eax
lea edx, [edi + 4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push 4
add eax, 0xc
push eax
lea edx, [edi + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 4], 1
jmp 0x403d47
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, 0x20
mov edx, ebx
call fcn.00402cd0
test eax, eax
mov dword [ebp - 8], eax
jne 0x403d6f
push str.create_mini_dump_fail
push 0x42d7ac
call fcn.00419910
mov eax, dword [ebp - 8]
add esp, 8
push eax
mov ecx, ebx
call fcn.00402a60
mov ecx, ebx
call fcn.00402de0
test eax, eax
jne 0x403d94
push str.create_bug_info_txt_fail
push 0x42d7ac
call fcn.00419910
add esp, 8
mov ecx, 0x60
mov edx, ebx
call fcn.00402cd0
test eax, eax
jne 0x403db6
push str.create_midd_dump_fail
push 0x42d7ac
call fcn.00419910
add esp, 8
cmp dword [ebp - 4], 0
je 0x403e57
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [edi + 4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
add edi, 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x403e57
mov ecx, 0x20
mov edx, ebx
call fcn.00402cd0
mov esi, eax
test esi, esi
jne 0x403e10
push str.create_mini_dump_fail
push 0x42d7ac
call fcn.00419910
add esp, 8
push esi
mov ecx, ebx
call fcn.00402a60
mov ecx, ebx
call fcn.00402de0
test eax, eax
jne 0x403e35
push str.create_bug_info_txt_fail
push 0x42d7ac
call fcn.00419910
add esp, 8
mov ecx, 0x60
mov edx, ebx
call fcn.00402cd0
test eax, eax
jne 0x403e57
push str.create_midd_dump_fail
push 0x42d7ac
call fcn.00419910
add esp, 8
mov eax, dword [ebx]
lea edx, [ebp - 0x10]
push edx
push 0
mov dword [ebp - 0x10], 0
mov ecx, dword [eax + 0x5d4]
push ecx
push 0x403c00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [ebx + 0x28], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403e90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 4], 0
je 0x403ee9
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x403ee9
cmp dword [esp + 4], 0x103
jne 0x403ee9
push str.terminate_crash_process
push 0x42d7ac
call fcn.00419910
mov edx, dword [esi + 4]
add esp, 8
push 0x7b
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret
push str.crash_process_has_exited
push 0x42d7ac
call fcn.00419910
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00425b9e
mov ecx, dword [ebp + 8]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 1
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x14], 0
mov edx, dword [eax + 0x5e0]
mov eax, dword [eax + 0x5dc]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x403f9c
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0x10]
push edx
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push str.CBugReportInfo::RestartCrashProcess_Fail_
push str.BugReport
call fcn.00419910
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4