joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590ff9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e5ff8
push 0x5e5ff0
push str.FlsSetValue
push 0x22
call fcn.00590d64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x591033
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5b4a78]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x59286f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6199a8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5928af
cmp byte [ebx], 0xa
jne 0x5928af
or byte [edi + eax + 0x28], 4
jmp 0x5928b4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x5929b3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x592996
inc eax
cmp dl, 0xd
je 0x5928e0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x592906
cmp eax, ecx
jae 0x592914
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x5928c8
jmp 0x5929b3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x592991
cmp dword [ebp - 0x10], 0
je 0x592991
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6199a8]
test byte [eax + edi + 0x28], 0x48
je 0x59296b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x592956
mov byte [esi], dl
jmp 0x592967
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6199a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5929b3
cmp byte [ebp - 1], 0xa
jne 0x59297a
cmp esi, ebx
jne 0x59297a
mov byte [esi], 0xa
jmp 0x5929b2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00592811
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5929b3
mov byte [esi], 0xd
jmp 0x5929b2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6199a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5929b0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5929b3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5929bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x6199a8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x592a02
cmp word [ebx], dx
jne 0x592a02
or byte [eax + edi + 0x28], 4
jmp 0x592a07
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x592b6a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x592b4a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x592a48
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x592a7e
cmp eax, edx
jae 0x592a8c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x592a23
jmp 0x592b6a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x592b45
cmp dword [ebp - 0x18], 0
je 0x592b45
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6199a8]
test byte [eax + edi + 0x28], 0x48
je 0x592b1b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x592adf
mov word [esi], cx
jmp 0x592b16
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6199a8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x6199a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6199a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x592b6a
pop eax
cmp word [ebp - 4], ax
jne 0x592b2b
cmp esi, ebx
jne 0x592b2b
mov word [esi], ax
jmp 0x592b67
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00592811
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x592b6a
push 0xd
pop eax
jmp 0x592b26
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6199a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x592b64
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x592b6a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x598376
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 0x598413
push ebx
push esi
call fcn.0059833f
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.00593986
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5983c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x598412
push edi
push eax
call fcn.00591653
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5983e0
call fcn.00590778
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x598411
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00593986
add esp, 0x20
test eax, eax
jne 0x5983ff
push edi
call fcn.00590778
jmp 0x598407
push ebx
call fcn.00590778
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 0x598416
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x598427
pop esi
ret
push ebx
push edi
push esi
call fcn.0059833f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00591653
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x59844f
push ebx
push esi
push edi
call fcn.00578420
add esp, 0xc
push 0
call fcn.00590778
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x59881f
Capabilities:
Set environment variable

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

Function at 0x59ac23
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0059048d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59ac92
cmp esi, dword [ebp - 4]
je 0x59ac8d
cmp dword [ebp + 0xc], 0
je 0x59ac8d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x59ac6a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0059a775
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x59ac94
xor eax, eax
inc eax
jmp 0x59ac94
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x59acf9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x60fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0059048d
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0059048d
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x59ad70
cmp word [ecx], dx
je 0x59ad70
mov eax, dword [0x5e6874]
push edi
dec eax
push eax
push 0x5e6760
call fcn.0059ac98
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x59ade3
cmp word [eax], dx
je 0x59ade3
mov eax, dword [edi]
test eax, eax
je 0x59ad94
cmp word [eax], dx
je 0x59ad94
lea eax, [ebp - 0x10]
push eax
call fcn.0059a67b
jmp 0x59ad9d
lea eax, [ebp - 0x10]
push eax
call fcn.0059a716
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x59ae0d
mov eax, dword [0x5e675c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5e6450
call fcn.0059ac98
add esp, 0xc
test al, al
je 0x59ae0d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x59add8
cmp word [eax], di
je 0x59add8
lea eax, [ebp - 0x10]
push eax
call fcn.0059a67b
pop ecx
jmp 0x59ae0f
lea eax, [ebp - 0x10]
push eax
call fcn.0059a716
jmp 0x59add5
mov eax, dword [edi]
test eax, eax
je 0x59adfa
cmp word [eax], dx
je 0x59adfa
lea eax, [ebp - 0x10]
push eax
call fcn.0059a630
pop ecx
jmp 0x59ae0d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x59aed8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0059ab1d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x59aed8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x59aed8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x59aed8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x59ae65
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00591139
test ebx, ebx
je 0x59aed3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00591139
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59aed8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59aed8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00589bec
add esp, 0x10
xor eax, eax
inc eax
jmp 0x59aeda
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005742be
leave
ret
Function at 0x59f5de
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0059f55a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x59f74d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x59f74d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x59f702
jg 0x59f63a
test eax, eax
je 0x59f6f8
push 1
push 0x1000
call fcn.0059086e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x59f65d
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x59f6ef
push 0x8000
push ebx
call fcn.0058c97a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x59f686
jg 0x59f681
cmp ecx, 0x1000
jb 0x59f686
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00596ad5
add esp, 0x10
cmp eax, 0xffffffff
je 0x59f6cb
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 0x59f681
jl 0x59f6b2
test ecx, ecx
jne 0x59f673
push dword [ebp - 0xc]
push ebx
call fcn.0058c97a
push esi
call fcn.00590778
add esp, 0xc
xor ebx, ebx
jmp 0x59f75b
cmp byte [edi + 0x24], 0
je 0x59f6e2
cmp dword [edi + 0x20], 5
jne 0x59f6e2
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x59f6ed
mov ebx, dword [edi + 0x18]
jmp 0x59f6ef
xor ebx, ebx
push esi
call fcn.00590778
pop ecx
jmp 0x59f75b
test ecx, ecx
jg 0x59f6c4
jl 0x59f702
test eax, eax
jae 0x59f6c4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00592811
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x59f722
cmp byte [edi + 0x1c], 0
je 0x59f6c4
jmp 0x59f753
push ebx
call fcn.0058b677
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x59f6c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x59f75b
cmp byte [edi + 0x1c], 0
je 0x59f758
mov ebx, dword [edi + 0x18]
jmp 0x59f75b
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00592811
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5a02f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a031d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a031d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xb4b166
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xb45140]
jne 0xb4b170
repz ret
jmp fcn.00b4b4af

Function at 0xb51328
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xb45140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00b4c976
and dword [ebp - 0x14], 0
cmp dword [0xb48b2c], 0
mov dword [ebp - 0x18], eax
jne 0xb513db
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0xb51483
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0xb51483
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xb48b2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xb48b30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xb48b34], eax
call edi
push eax
call esi
mov dword [0xb48b3c], eax
test eax, eax
je 0xb513db
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xb48b38], eax
mov eax, dword [0xb48b38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0xb51434
cmp dword [0xb48b3c], ecx
je 0xb51434
push eax
call esi
push dword [0xb48b3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0xb51434
test ebx, ebx
je 0xb51434
call edi
test eax, eax
je 0xb5142b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0xb5142b
test byte [ebp - 8], 1
jne 0xb51434
or dword [ebp + 0x10], 0x200000
jmp 0xb51467
mov eax, dword [0xb48b30]
cmp eax, dword [ebp - 0x18]
je 0xb51467
push eax
call esi
test eax, eax
je 0xb51467
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0xb51467
mov eax, dword [0xb48b34]
cmp eax, dword [ebp - 0x18]
je 0xb51467
push eax
call esi
test eax, eax
je 0xb51467
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xb48b2c]
call esi
test eax, eax
je 0xb51483
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0xb51485
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00b4b166
leave
ret
Function at 0x49a3e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7e000]
push edi
jmp 0x49a3fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49a401
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49a3f0
mov eax, 1
add ebx, ebx
jne 0x49a413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49a424
jne 0x49a443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49a443
dec eax
add ebx, ebx
jne 0x49a430
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x49a408
add ebx, ebx
jne 0x49a43f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x49a495
xor ecx, ecx
sub eax, 3
jb 0x49a45b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49a4ca
sar eax, 1
mov ebp, eax
jmp 0x49a466
add ebx, ebx
jne 0x49a466
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49a434
inc ecx
add ebx, ebx
jne 0x49a474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49a434
add ebx, ebx
jne 0x49a481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49a476
jne 0x49a492
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49a476
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49a4b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49a4a6
jmp 0x49a3f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49a4b4
add edi, ecx
jmp 0x49a3f6
pop esi
mov edi, esi
mov ecx, 0x6d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49a4d2
cmp byte [edi], 0xa
jne 0x49a4d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x49a4d7
lea edi, [esi + 0x96000]
mov eax, dword [edi]
or eax, eax
je 0x49a54f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa76c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa7870]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49a504
mov ecx, edi
jns 0x49a533
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa7878]
or eax, eax
je 0x49a549
mov dword [ebx], eax
add ebx, 4
jmp 0x49a521
call dword [esi + 0xa7874]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x49a580
cmp al, 0xef
ja 0x49a573
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x49a555
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x49a562
mov ebp, dword [esi + 0xa787c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x49a5b4
sub esp, 0xffffff80
jmp 0x41c7f0
Function at 0x410048
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestArrayUtils.exe_gMozillaPoisonSize], eax
call fcn.0040c46f
pop ecx
mov ecx, dword [sym.TestArrayUtils.exe_gMozillaPoisonSize]
mov dword [sym.TestArrayUtils.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410080
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestArrayUtils.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401214
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401210
lea ebx, [ebx]
cmp esi, eax
jae 0x401214
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jb 0x40121a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40534f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x405397
call fcn.0040783e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x405397
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4053da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4053c3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4053c3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4053d7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x406683
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4066a7
cmp dword [edi + 0x54], 0
jne 0x4066a7
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040783e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00406644
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40ccf3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40cd3a
call fcn.0040783e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40cd3a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40cd56
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040c86d
mov esi, eax
test edi, edi
je 0x40cd54
test ebx, ebx
je 0x40cd54
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d5f2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x431898
call fcn.0041f8e8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40d617
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40d65d
lea ecx, [ebp - 0x10]
call fcn.004017e0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406792
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401270
mov eax, esi
call fcn.0041f9c0
ret 8

Function at 0x41f188
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441578]
jne 0x41f192
repz ret
jmp fcn.00424a9c